Implemented a better error handling for ajax requests. Exceptions caused by dropping connections are now handled, too.

This commit is contained in:
Jörn Zaefferer 2006-12-21 13:35:32 +00:00
parent 0f5292b991
commit 6b8ffe79f4
4 changed files with 63 additions and 53 deletions

View file

@ -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)