From 1753ab3d823320da79cccc4041f662f2cfd1e20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 6 May 2008 19:39:58 +0000 Subject: [PATCH] jquery testrunner: reset $.ajaxSettings after each run to prevent sideeffects between tests --- test/data/testrunner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/data/testrunner.js b/test/data/testrunner.js index bdb938c4..0113ae5c 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -81,6 +81,7 @@ function runTest() { _config.blocking = false; var time = new Date(); _config.fixture = document.getElementById('main').innerHTML; + _config.ajaxSettings = $.ajaxSettings; synchronize(function() { time = new Date() - time; $("
").html(['

Tests completed in ', @@ -185,6 +186,7 @@ function expect(asserts) { function reset() { $("#main").html( _config.fixture ); $.event.global = {}; + $.ajaxSettings = $.extend({}, _config.ajaxSettings); } /**