X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=beb0fe2abff040318ab701a8e48f190c95ba5299;hb=5b421fed003e6704bd0fbba2dea5c1b6add2cf52;hp=a459340759b74a48f5cdc8d819041e206550e165;hpb=b64a51e136a4bcce3d0c2d5292c53d85c2d0e7de;p=jquery.git diff --git a/test/data/testrunner.js b/test/data/testrunner.js index a459340..beb0fe2 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1,5 +1,16 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. +// jQuery-specific QUnit.reset +(function() { + var reset = QUnit.reset; + var ajaxSettings = jQuery.ajaxSettings + QUnit.reset = function() { + reset.apply(this, arguments); + jQuery.event.global = {}; + jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings); + }; +})(); + // load testswarm agent (function() { var url = window.location.search; @@ -7,5 +18,9 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. if ( !url || url.indexOf("http") !== 0 ) { return; } - document.write(""); + + // (Temporarily) Disable Ajax tests to reduce network strain + isLocal = QUnit.isLocal = true; + + document.write(""); })();