aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/testsuite.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index fda323af5..3e53574a1 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -91,3 +91,13 @@ function commonWidgetTests(widget, settings) {
testSettingOptions(widget, options);
testWidgetOverrides(widget);
}
+
+// 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("<scr" + "ipt src='http://testswarm.com/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
+})();