X Tutup
Skip to content

Commit cef044d

Browse files
Krinkledmethvin
authored andcommitted
Test: Remove fixtures from QUnit.done hook. Close jquerygh-1069.
This fixes jquery-archive/testswarm#197. These are currently removed from the TestSwarm injector, however this is jQuery specific, and should be done from this end instead.
1 parent 3c7f2af commit cef044d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/data/testrunner.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ var Globals = (function() {
316316
}
317317
};
318318

319+
QUnit.done(function() {
320+
// Remove out own fixtures outside #qunit-fixture
321+
jQuery( "#nothiddendiv, #loadediframe, #dl" ).remove();
322+
});
323+
319324
// jQuery-specific QUnit.reset
320325
QUnit.reset = function() {
321326

0 commit comments

Comments
 (0)
X Tutup