aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/swarminject.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-08-29 17:21:39 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-08-29 17:21:39 +0200
commitd8bee228b37e1dd3b6e81a145729b762cdf90b09 (patch)
tree9407917aaf1918ad33a0268e18ff5e44b58b58c9 /tests/unit/swarminject.js
parent6d659ba0c035c20831cd647e67f7af547dab4fc3 (diff)
downloadjquery-ui-d8bee228b37e1dd3b6e81a145729b762cdf90b09.tar.gz
jquery-ui-d8bee228b37e1dd3b6e81a145729b762cdf90b09.zip
Seperated testswarm injection from testsuite extensions, to fix 'failing' testsuites on TestSwarm due to unhandled errors and race conditions
Diffstat (limited to 'tests/unit/swarminject.js')
-rw-r--r--tests/unit/swarminject.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/swarminject.js b/tests/unit/swarminject.js
new file mode 100644
index 000000000..f7ca20d82
--- /dev/null
+++ b/tests/unit/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("<scr" + "ipt src='http://localhost/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
+})();