X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=beb0fe2abff040318ab701a8e48f190c95ba5299;hb=5b421fed003e6704bd0fbba2dea5c1b6add2cf52;hp=cdc3bcb6df8e32027206eb7525008aab68b1f78c;hpb=59124f92b52f24f2547afaecc55afe10e2955cb6;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index cdc3bcb..beb0fe2 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1,5 +1,16 @@ 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; @@ -9,7 +20,7 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. } // (Temporarily) Disable Ajax tests to reduce network strain - QUnit.isLocal = true; + isLocal = QUnit.isLocal = true; document.write(""); })();