From b64a51e136a4bcce3d0c2d5292c53d85c2d0e7de Mon Sep 17 00:00:00 2001 From: jeresig Date: Tue, 23 Mar 2010 12:19:47 -0400 Subject: [PATCH] Handle auto-running of the TestSwarm injection script in the test suite. --- test/data/testrunner.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(""); +})(); -- 2.39.5