Skip to content

Commit 646fbea

Browse files
committed
Moving jQuery-core specific resets from QUnit to core.
1 parent 2084e01 commit 646fbea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/data/testrunner.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
22

3+
// jQuery-specific QUnit.reset
4+
(function() {
5+
var reset = QUnit.reset;
6+
var ajaxSettings = jQuery.ajaxSettings
7+
QUnit.reset = function() {
8+
reset.apply(this, arguments);
9+
jQuery.event.global = {};
10+
jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
11+
};
12+
})();
13+
314
// load testswarm agent
415
(function() {
516
var url = window.location.search;

0 commit comments

Comments
 (0)