From 3006fa77db4625c4293c368a8999ddb1abba7f48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Fri, 30 Sep 2011 16:39:49 -0400 Subject: [PATCH] Make QUnit work with TestSwarm --- test/index.html | 2 ++ test/swarminject.js | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100755 test/swarminject.js 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(""); +})(); -- 2.11.0