summaryrefslogtreecommitdiff
path: root/src/main/webapp/jquery-ui-1.9pre/tests/unit/swarminject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/jquery-ui-1.9pre/tests/unit/swarminject.js')
-rw-r--r--src/main/webapp/jquery-ui-1.9pre/tests/unit/swarminject.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/webapp/jquery-ui-1.9pre/tests/unit/swarminject.js b/src/main/webapp/jquery-ui-1.9pre/tests/unit/swarminject.js
new file mode 100644
index 0000000..db69326
--- /dev/null
+++ b/src/main/webapp/jquery-ui-1.9pre/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://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
+})();