aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-12-21 15:23:59 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-12-21 15:23:59 +0000
commit98b1b580c7298c1ced00f9ec4d65452b4d559da7 (patch)
treef26cd06dc0345bbfa2439d4b62c2b308b08f68b9 /build
parenta0d5e89a1e41c8ebb1b629f6089e4f3b2cb24b2c (diff)
downloadjquery-98b1b580c7298c1ced00f9ec4d65452b4d559da7.tar.gz
jquery-98b1b580c7298c1ced00f9ec4d65452b4d559da7.zip
A few corrections to the testsuite to imrove the failure testing
Diffstat (limited to 'build')
-rw-r--r--build/test/data/testrunner.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js
index 86a16d5c0..6da41c3a2 100644
--- a/build/test/data/testrunner.js
+++ b/build/test/data/testrunner.js
@@ -33,12 +33,13 @@ function process() {
}
}
-function stop() {
+function stop(allowFailure) {
_config.blocking = true;
- _config.timeout = setTimeout(function() {
+ var handler = allowFailure ? start : function() {
ok( false, "Test timed out" );
start();
- }, _config.asyncTimeout * 1000);
+ };
+ _config.timeout = setTimeout(handler, _config.asyncTimeout * 1000);
}
function start() {
if(_config.timeout)