Skip to content
Permalink
Browse files
Moving jQuery-core specific resets from QUnit to core.
  • Loading branch information
jzaefferer committed Jul 27, 2010
1 parent 2084e01 commit 646fbea561ce5319d888780c20f0c0f03b8daad3
Showing with 11 additions and 0 deletions.
  1. +11 −0 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;

1 comment on commit 646fbea

@jzaefferer

This comment has been minimized.

Copy link
Member Author

@jzaefferer jzaefferer commented on 646fbea Jul 28, 2010

This doesn't yet work as intended, causing various failures in the testsuite. I'm looking into it.

Please sign in to comment.