X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=build%2Ftest%2Fdata%2Ftestrunner.js;h=e6cfc1eb003b3d717b0e181b790b281a7b04b034;hb=21d59e8de607e33c54cf8f7bff2c5f0b7a6c40f9;hp=f0e31e7f03dff5b00a63db00c391ca1adc5a2c9b;hpb=74a8e206231162b005d95b667343678f786ae272;p=jquery.git diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index f0e31e7..e6cfc1e 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -15,10 +15,7 @@ var _config = { $(function() { $('#userAgent').html(navigator.userAgent); - if($.browser.safari) - $("h1").append(" - Disabled for Safari"); - else - runTest(); + runTest(); }); function synchronize(callback) { @@ -67,17 +64,13 @@ function runTest() { } function test(name, callback, nowait) { - // safari seems to have some memory problems, so we need to slow it down - if($.browser.safari && !nowait) { - test("", function() { - stop(); - setTimeout(start, 250); - }, true); - } - if(_config.currentModule) name = _config.currentModule + " module: " + name; + var filter = location.search.slice(1); + if ( filter && encodeURIComponent(name) != filter ) + return; + synchronize(function() { _config.Test = []; try { @@ -123,7 +116,7 @@ function test(name, callback, nowait) { var li = document.createElement("li"); li.className = state; - var b = document.createElement("b"); + var b = document.createElement("strong"); b.innerHTML = name + " (" + bad + ", " + good + ", " + _config.Test.length + ")"; b.onclick = function(){ var n = this.nextSibling; @@ -132,6 +125,13 @@ function test(name, callback, nowait) { else n.style.display = "none"; }; + $(b).dblclick(function(event) { + var target = jQuery(event.target).filter("strong").clone(); + if ( target.length ) { + target.children().remove(); + location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text())); + } + }); li.appendChild( b ); li.appendChild( ol );