From 646fbea561ce5319d888780c20f0c0f03b8daad3 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 27 Jul 2010 12:50:08 +0200 Subject: [PATCH] Moving jQuery-core specific resets from QUnit to core. --- test/data/testrunner.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 2.39.5