mirror of
https://github.com/jquery/jquery.git
synced 2026-02-03 18:14:55 -05:00
Tests: Bring back some of the clean-up logic
This commit is contained in:
@@ -138,8 +138,19 @@ window.moduleTeardown = function() {
|
||||
}
|
||||
};
|
||||
|
||||
QUnit.done(function() {
|
||||
// Remove our own fixtures outside #qunit-fixture
|
||||
supportjQuery( "#qunit ~ *" ).remove();
|
||||
});
|
||||
|
||||
QUnit.testDone(function() {
|
||||
|
||||
// Ensure jQuery events and data on the fixture are properly removed
|
||||
jQuery( "#qunit-fixture" ).empty();
|
||||
// ...even if the jQuery under test has a broken .empty()
|
||||
supportjQuery( "#qunit-fixture" ).empty();
|
||||
|
||||
|
||||
// Reset internal jQuery state
|
||||
jQuery.event.global = {};
|
||||
if ( ajaxSettings ) {
|
||||
|
||||
Reference in New Issue
Block a user