Test: Remove fixtures from QUnit.done hook. Close gh-1069.

This fixes jquery/testswarm#197. These are currently removed from
the TestSwarm injector, however this is jQuery specific, and
should be done from this end instead.
This commit is contained in:
Timo Tijhof 2012-12-10 22:38:50 +01:00 committed by Dave Methvin
parent 3c7f2af81d
commit cef044d82e

View File

@ -316,6 +316,11 @@ var Globals = (function() {
}
};
QUnit.done(function() {
// Remove out own fixtures outside #qunit-fixture
jQuery( "#nothiddendiv, #loadediframe, #dl" ).remove();
});
// jQuery-specific QUnit.reset
QUnit.reset = function() {