]> source.dussan.org Git - jquery.git/commitdiff
Moving jQuery-core specific resets from QUnit to core.
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 27 Jul 2010 10:50:08 +0000 (12:50 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 27 Jul 2010 10:50:08 +0000 (12:50 +0200)
test/data/testrunner.js

index dc39bc5b7ab05610336325857b1e141d0d2c2b78..beb0fe2abff040318ab701a8e48f190c95ba5299 100644 (file)
@@ -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;