mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Handle auto-running of the TestSwarm injection script in the test suite.
This commit is contained in:
parent
b3ccf2f288
commit
b64a51e136
@ -1 +1,11 @@
|
||||
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
|
||||
|
||||
// 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>");
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user