Temporarily disable ajax tests when running in TestSwam.
authorjeresig <jeresig@gmail.com>
Wed, 24 Mar 2010 20:04:10 +0000 (16:04 -0400)
committerwycats <wycats@gmail.com>
Sun, 20 Jun 2010 05:29:48 +0000 (22:29 -0700)
test/data/testrunner.js

index a0eb362..cdc3bcb 100644 (file)
@@ -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>");
 })();