Fix phantomjs browser tests.

This commit is contained in:
John-David Dalton
2013-11-30 19:57:42 -06:00
parent 29f4fd40ed
commit 88ab9d0756
3 changed files with 19 additions and 23 deletions

View File

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