From cef044d82ec0d338b2b69756d3ba08692fb80ae4 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 10 Dec 2012 22:38:50 +0100 Subject: [PATCH] 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. --- test/data/testrunner.js | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- 2.39.5