Skip to content

Commit

Permalink
QUnit: Remove obsolete issue workaround
Browse files Browse the repository at this point in the history
Since qunitjs/qunit#1250 was merged this should no longer be needed
  • Loading branch information
Turbo87 committed Dec 8, 2018
1 parent 7cb936d commit 6f39e16
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,25 +183,7 @@
}
});

// work around https://github.com/qunitjs/qunit/issues/1224
QUnit.testStart(function() {
var existingFixture = document.getElementById('qunit-fixture');

// create a new pristine fixture element
var newFixture = document.createElement('div');
newFixture.setAttribute('id', 'qunit-fixture');

// replace the old (possibly mutated fixture) with the new pristine one
existingFixture.parentNode.replaceChild(newFixture, existingFixture);
});

QUnit.testDone(function(results) {
var oldFixture = document.getElementById('qunit-fixture');
var parent = oldFixture.parentElement;
var newFixture = document.createElement('div');
newFixture.id = 'qunit-fixture';
parent.replaceChild(newFixture, oldFixture);

testsTotal++;

if (results.failed) {
Expand Down

0 comments on commit 6f39e16

Please sign in to comment.