From: Jörn Zaefferer Date: Fri, 30 Sep 2011 20:39:49 +0000 (-0400) Subject: Make QUnit work with TestSwarm X-Git-Url: http://git.altlug.ru/?p=qunit.git;a=commitdiff_plain;h=3006fa77db4625c4293c368a8999ddb1abba7f48;hp=167e41f35c49d54c9dda84a074c6e6a89917cd20 Make QUnit work with TestSwarm --- diff --git a/test/index.html b/test/index.html index 64ccfcc..db35cb0 100644 --- a/test/index.html +++ b/test/index.html @@ -7,6 +7,8 @@ + +

QUnit Test Suite

diff --git a/test/swarminject.js b/test/swarminject.js new file mode 100755 index 0000000..db69326 --- /dev/null +++ b/test/swarminject.js @@ -0,0 +1,9 @@ +// load testswarm agent +(function() { + var url = window.location.search; + url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) ); + if ( !url || url.indexOf("http") !== 0 ) { + return; + } + document.write(""); +})();