From 4dd740a5ac61e0996d9ff0093f088b43967bad4f Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Fri, 11 Sep 2009 18:22:52 +0000 Subject: inject testswarm agent when the test is run by testswarm --- tests/unit/testsuite.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/unit/testsuite.js') 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(""); +})(); -- cgit v1.2.3