diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-12-21 13:35:32 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-12-21 13:35:32 +0000 |
commit | 6b8ffe79f4e616d6179f6b16099e7c25e7ae5cb1 (patch) | |
tree | 9d52cdd553fb59b08e79ceb993bab26c19d79354 /build | |
parent | 0f5292b991ee83ee956766d6a7eab75445dd4dea (diff) | |
download | jquery-6b8ffe79f4e616d6179f6b16099e7c25e7ae5cb1.tar.gz jquery-6b8ffe79f4e616d6179f6b16099e7c25e7ae5cb1.zip |
Implemented a better error handling for ajax requests. Exceptions caused by dropping connections are now handled, too.
Diffstat (limited to 'build')
-rw-r--r-- | build/test/data/testrunner.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 3888ad9bd..86a16d5c0 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -35,7 +35,10 @@ function process() { function stop() { _config.blocking = true; - _config.timeout = setTimeout(start, _config.asyncTimeout * 1000); + _config.timeout = setTimeout(function() { + ok( false, "Test timed out" ); + start(); + }, _config.asyncTimeout * 1000); } function start() { if(_config.timeout) |