8000 Revert part of the PhantomJS cleanup. · lodash/lodash@0f9687c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f9687c

Browse files
committed
Revert part of the PhantomJS cleanup.
1 parent 1460e46 commit 0f9687c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/test.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,16 @@
6969
page.onInitialized = function() {
7070
page.evaluate(function() {
7171
document.addEventListener('DOMContentLoaded', function() {
72-
var script = document.createElement('script');
73-
script.src = '../vendor/qunit-clib/qunit-clib.js';
74-
document.head.appendChild(script);
75-
QUnit.done(callPhantom);
72+
var xhr = new XMLHttpRequest;
73+
xhr.open('get', '../vendor/qunit-clib/qunit-clib.js');
74+
xhr.onload = function() {
75+
var script = document.createElement('script');
76+
script.text = xhr.responseText;
77+
document.head.appendChild(script);
78+
QUnit.done(callPhantom);
79+
};
80+
81+
xhr.send(null);
7682
});
7783
});
7884
};

0 commit comments

Comments
 (0)
0