mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +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.evaluate(function() {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var script = document.createElement('script');
|
||||
script.src = '../vendor/qunit-clib/qunit-clib.js';
|
||||
document.head.appendChild(script);
|
||||
QUnit.done(callPhantom);
|
||||
var xhr = new XMLHttpRequest;
|
||||
xhr.open('get', '../vendor/qunit-clib/qunit-clib.js');
|
||||
xhr.onload = function() {
|
||||
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