X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Ftestrunner.js;h=beb0fe2abff040318ab701a8e48f190c95ba5299;hb=bbd3f4f3fe66fc4ce6c6db31a17a1c04037323be;hp=a459340759b74a48f5cdc8d819041e206550e165;hpb=f6a50cacd8cd7663650d3ff5557cc20bfcdcd765;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("");
})();