Skip to content

Commit 9dfeb50

Browse files
Fix potential crashes when running the entire test suite in IE6-7.
1 parent 0bb13f3 commit 9dfeb50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test.new/static/js/test_helpers.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,13 @@
240240
if (CONSOLE_GROUP_SUPPORTED) {
241241
console.group('Suite:', suite);
242242
} else if (CONSOLE_LOG_SUPPORTED) {
243-
console.log('Suite:', suite);
243+
console.log('Suite: ', suite);
244244
}
245245

246-
if (this.currentFixtures && this.currentFixtures.parentNode) {
247-
this.currentFixtures.remove();
246+
// Calling `remove` on this node has been known to crash the tests in
247+
// IE6-7.
248+
if (this.currentFixtures) {
249+
$('current_fixtures').update();
248250
}
249251

250252
if (this.fixtures[suite]) {

0 commit comments

Comments
 (0)