Skip to content

Commit 68f372f

Browse files
committed
chore: Work around for additional windows opened by the newer PhantomJS
1 parent d5b36d8 commit 68f372f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/vendor/runner.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171

7272
function addLogging() {
7373
window.document.addEventListener('DOMContentLoaded', function() {
74+
// Ignore other browser windows like "about:blank", which may get opened too.
75+
if (typeof QUnit === 'undefined') {
76+
return;
77+
}
78+
7479
var current_test_assertions = [];
7580

7681
QUnit.log(function(details) {

0 commit comments

Comments
 (0)