diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-27 12:50:08 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-27 12:50:08 +0200 |
commit | 646fbea561ce5319d888780c20f0c0f03b8daad3 (patch) | |
tree | 33222fc7c5b7e9b1e08b9effc611840692d29756 /test | |
parent | 2084e01780b57e5becbb00817b883175ef67b0b5 (diff) | |
download | jquery-646fbea561ce5319d888780c20f0c0f03b8daad3.tar.gz jquery-646fbea561ce5319d888780c20f0c0f03b8daad3.zip |
Moving jQuery-core specific resets from QUnit to core.
Diffstat (limited to 'test')
-rw-r--r-- | test/data/testrunner.js | 11 |
1 files changed, 11 insertions, 0 deletions
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; |