Skip to content
Permalink
Browse files

Temporarily disable ajax tests when running in TestSwam.

  • Loading branch information
jeresig committed Mar 24, 2010
1 parent 1ba2df0 commit 59124f92b52f24f2547afaecc55afe10e2955cb6
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/data/testrunner.js
@@ -7,5 +7,9 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
if ( !url || url.indexOf("http") !== 0 ) {
return;
}

// (Temporarily) Disable Ajax tests to reduce network strain
QUnit.isLocal = true;

document.write("<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date).getTime() + "'></scr" + "ipt>");
})();

3 comments on commit 59124f9

@GarrettS

This comment has been minimized.

Copy link

@GarrettS GarrettS replied Mar 30, 2010

Although not directly related, I recommend:

  1. Do not concatenate the opening script tag -- that is totally pointless
  2. Use a backslash to escape the closing script tag.

Example (if it isn't filtered).

   document.write("<script src='http://swarm.jquery.org/js/inject.js?" + (+new Date) + "'><\/script>");
@GarrettS

This comment has been minimized.

Copy link

@GarrettS GarrettS replied Mar 30, 2010

Try again:

document.write("<script src='http://swarm.jquery.org/js/inject.js?" + (+new Date) + "'><\/script>");
@GarrettS

This comment has been minimized.

Copy link

@GarrettS GarrettS replied Mar 30, 2010

Yes, that's what I meant.

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