From: jzaefferer Date: Tue, 27 Jul 2010 10:50:08 +0000 (+0200) Subject: Moving jQuery-core specific resets from QUnit to core. X-Git-Tag: 1.4.3rc1~152 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=646fbea561ce5319d888780c20f0c0f03b8daad3;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 dc39bc5b7..beb0fe2ab 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;