Handle auto-running of the TestSwarm injection script in the test suite.
[jquery.git] / test / data / testrunner.js
1 jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
2
3 // load testswarm agent
4 (function() {
5         var url = window.location.search;
6         url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
7         if ( !url || url.indexOf("http") !== 0 ) {
8                 return;
9         }
10         document.write("<scr" + "ipt src='http://testswarm.com/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
11 })();