diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-05-06 19:39:58 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-05-06 19:39:58 +0000 |
commit | 1753ab3d823320da79cccc4041f662f2cfd1e20d (patch) | |
tree | 1eab6ca59d346f68b606c698b07e1b5f94071176 /test/data | |
parent | ba48be3ada51aee683ce5992c5f00a8458f385f8 (diff) | |
download | jquery-1753ab3d823320da79cccc4041f662f2cfd1e20d.tar.gz jquery-1753ab3d823320da79cccc4041f662f2cfd1e20d.zip |
jquery testrunner: reset $.ajaxSettings after each run to prevent sideeffects between tests
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/testrunner.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/data/testrunner.js b/test/data/testrunner.js index bdb938c40..0113ae5c8 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; $("<div>").html(['<p class="result">Tests completed in ', @@ -185,6 +186,7 @@ function expect(asserts) { function reset() { $("#main").html( _config.fixture ); $.event.global = {}; + $.ajaxSettings = $.extend({}, _config.ajaxSettings); } /** |