From 0f9687ce6223fff0b28d8d4299cb6c85f83c14bb Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 8 Sep 2013 15:07:59 -0600 Subject: [PATCH] Revert part of the PhantomJS cleanup. --- test/test.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 7fbc28c58..7d688efb4 100644 --- a/test/test.js +++ b/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); }); }); };