Skip to content

Commit

Permalink
Moving jQuery-core specific resets from QUnit to core.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jul 27, 2010
1 parent 2084e01 commit 646fbea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/data/testrunner.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 646fbea

Please sign in to comment.