X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=beb0fe2abff040318ab701a8e48f190c95ba5299;hb=5b421fed003e6704bd0fbba2dea5c1b6add2cf52;hp=dc39bc5b7ab05610336325857b1e141d0d2c2b78;hpb=298c81a8440169f3cbcacb9655ac3fef0a3e6d76;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index dc39bc5..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;