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 1 changed file with 4 additions and 0 deletions.
@@ -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
Copy link

@GarrettS GarrettS commented on 59124f9 Mar 30, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link

@GarrettS GarrettS commented on 59124f9 Mar 30, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try again:

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

@GarrettS
Copy link

@GarrettS GarrettS commented on 59124f9 Mar 30, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's what I meant.

Please sign in to comment.