]> source.dussan.org Git - jquery.git/commitdiff
Test: Remove fixtures from QUnit.done hook. Close gh-1069.
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 10 Dec 2012 21:38:50 +0000 (22:38 +0100)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 11 Dec 2012 01:45:20 +0000 (20:45 -0500)
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

index c9888c3837b0caef374f8379af27d8642d4798b8..049be66571c4862bd27c3711cc8ac0a36ea09e7e 100644 (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() {