mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Fix phantomjs browser tests.
This commit is contained in:
11
test/test.js
11
test/test.js
@@ -116,16 +116,7 @@
|
||||
page.onInitialized = function() {
|
||||
page.evaluate(function() {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
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);
|
||||
QUnit.done(callPhantom);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user