aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-08-19 21:09:13 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-19 21:09:13 -0400
commit2b2ca8baa3e220f086f3a5d99c1bb84b5d5bd7c5 (patch)
treef429ab39c9e5bf44f8898d6a4d7bac818279ec27 /test/data
parent488e502b980cfca8a246f55f6c5e0de3858686d6 (diff)
downloadjquery-2b2ca8baa3e220f086f3a5d99c1bb84b5d5bd7c5.tar.gz
jquery-2b2ca8baa3e220f086f3a5d99c1bb84b5d5bd7c5.zip
Don't expect QUnit to clean up jQuery internal data. Close gh-883.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/testrunner.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/data/testrunner.js b/test/data/testrunner.js
index cceacfc12..70bbc88c3 100644
--- a/test/data/testrunner.js
+++ b/test/data/testrunner.js
@@ -136,9 +136,16 @@ function testSubproject( label, url, risTests ) {
ajaxSettings = jQuery.ajaxSettings;
QUnit.reset = function() {
- reset.apply(this, arguments);
+
+ // Ensure jQuery events and data on the fixture are properly removed
+ jQuery("#qunit-fixture").empty();
+
+ // Reset internal jQuery state
jQuery.event.global = {};
- jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
+ jQuery.ajaxSettings = jQuery.extend( {}, ajaxSettings );
+
+ // Let QUnit reset the fixture
+ reset.apply( this, arguments );
};
})();