diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-11 18:22:52 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-11 18:22:52 +0000 |
commit | 4dd740a5ac61e0996d9ff0093f088b43967bad4f (patch) | |
tree | 92daa0af4d40a2ba7450dc67064513086435b14e /tests/unit/testsuite.js | |
parent | 25d97c77603ee06f5c1a7564eb7e1a8decc3cd40 (diff) | |
download | jquery-ui-4dd740a5ac61e0996d9ff0093f088b43967bad4f.tar.gz jquery-ui-4dd740a5ac61e0996d9ff0093f088b43967bad4f.zip |
inject testswarm agent when the test is run by testswarm
Diffstat (limited to 'tests/unit/testsuite.js')
-rw-r--r-- | tests/unit/testsuite.js | 10 |
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>"); +})(); |