Skip to content
Permalink
Browse files

Handle auto-running of the TestSwarm injection script in the test suite.

  • Loading branch information
jeresig authored and wycats committed Mar 23, 2010
1 parent b3ccf2f commit b64a51e136a4bcce3d0c2d5292c53d85c2d0e7de
Showing with 10 additions and 0 deletions.
  1. +10 −0 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("<scr" + "ipt src='http://testswarm.com/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
})();

0 comments on commit b64a51e

Please sign in to comment.
You can’t perform that action at this time.