mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Revert part of the PhantomJS cleanup.
This commit is contained in:
14
test/test.js
14
test/test.js
@@ -69,10 +69,16 @@
|
|||||||
page.onInitialized = function() {
|
page.onInitialized = function() {
|
||||||
page.evaluate(function() {
|
page.evaluate(function() {
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
var script = document.createElement('script');
|
var xhr = new XMLHttpRequest;
|
||||||
script.src = '../vendor/qunit-clib/qunit-clib.js';
|
xhr.open('get', '../vendor/qunit-clib/qunit-clib.js');
|
||||||
document.head.appendChild(script);
|
xhr.onload = function() {
|
||||||
QUnit.done(callPhantom);
|
var script = document.createElement('script');
|
||||||
|
script.text = xhr.responseText;
|
||||||
|
document.head.appendChild(script);
|
||||||
|
QUnit.done(callPhantom);
|
||||||
|
};
|
||||||
|
|
||||||
|
xhr.send(null);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user