Revert part of the PhantomJS cleanup.

This commit is contained in:
John-David Dalton
2013-09-08 15:07:59 -06:00
parent 1460e46d1f
commit 0f9687ce62

View File

@@ -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);
});
});
};