X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=dc39bc5b7ab05610336325857b1e141d0d2c2b78;hb=dc886a83f5384dae947ff43cd04e5aa5451f3392;hp=95a1b6eec808a81aa00acdfb6fee86ac1d4d796e;hpb=db63af106891ceda11eeea3c5ca6d7d39e09d81c;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 95a1b6e..dc39bc5 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1 +1,15 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. + +// load testswarm agent +(function() { + var url = window.location.search; + url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) ); + if ( !url || url.indexOf("http") !== 0 ) { + return; + } + + // (Temporarily) Disable Ajax tests to reduce network strain + isLocal = QUnit.isLocal = true; + + document.write(""); +})();