From: jzaefferer Date: Tue, 27 Jul 2010 10:50:08 +0000 (+0200) Subject: Moving jQuery-core specific resets from QUnit to core. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=646fbea561ce5319d888780c20f0c0f03b8daad3;hp=2084e01780b57e5becbb00817b883175ef67b0b5;p=jquery.git Moving jQuery-core specific resets from QUnit to core. --- 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;