From: Timo Tijhof Date: Mon, 10 Dec 2012 21:38:50 +0000 (+0100) Subject: Test: Remove fixtures from QUnit.done hook. Close gh-1069. X-Git-Tag: 1.9.0b1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cef044d82ec0d338b2b69756d3ba08692fb80ae4;p=jquery.git 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. --- diff --git a/test/data/testrunner.js b/test/data/testrunner.js index c9888c383..049be6657 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -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() {