From 05f6edc903f81993c9862e7cd2e2e92fbefc63e7 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 6 May 2013 20:55:04 +0200 Subject: [PATCH] qunit: Use jQuery.getScript instead of document.write TestSwarm jobs were breaking because this runs after the document is ready, thus causing the page to be blanked by document.write. Change-Id: I5e1c331d72ac364c9cd970a9b085f0b986b26a14 --- tests/qunit/data/testrunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qunit/data/testrunner.js b/tests/qunit/data/testrunner.js index 3f3c8992ee..1a2bfa102d 100644 --- a/tests/qunit/data/testrunner.js +++ b/tests/qunit/data/testrunner.js @@ -50,7 +50,7 @@ // of MediaWiki has actually been configured with the required url to that inject.js // script. By default it is false. if ( QUnit.urlParams.swarmURL && mw.config.get( 'QUnitTestSwarmInjectJSPath' ) ) { - document.write( '' ); + jQuery.getScript( QUnit.fixurl( mw.config.get( 'QUnitTestSwarmInjectJSPath' ) ) ); } /** -- 2.20.1