From: jeresig Date: Tue, 23 Mar 2010 16:19:47 +0000 (-0400) Subject: Handle auto-running of the TestSwarm injection script in the test suite. X-Git-Tag: 1.4.3rc1~168^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6a50cacd8cd7663650d3ff5557cc20bfcdcd765;p=jquery.git Handle auto-running of the TestSwarm injection script in the test suite. --- diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 95a1b6eec..a45934075 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -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(""); +})();