X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=beb0fe2abff040318ab701a8e48f190c95ba5299;hb=5b421fed003e6704bd0fbba2dea5c1b6add2cf52;hp=95a1b6eec808a81aa00acdfb6fee86ac1d4d796e;hpb=db63af106891ceda11eeea3c5ca6d7d39e09d81c;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 95a1b6e..beb0fe2 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1 +1,26 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. + +// jQuery-specific QUnit.reset +(function() { + var reset = QUnit.reset; + var ajaxSettings = jQuery.ajaxSettings + QUnit.reset = function() { + reset.apply(this, arguments); + jQuery.event.global = {}; + jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings); + }; +})(); + +// 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(""); +})();