git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A few corrections to the testsuite to imrove the failure testing
[jquery.git]
/
build
/
test
/
data
/
testrunner.js
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
86a16d5
..
6da41c3
100644
(file)
--- 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.blocking = true;
- _config.timeout = setTimeout(function() {
+ var handler = allowFailure ? start : function() {
ok( false, "Test timed out" );
start();
ok( false, "Test timed out" );
start();
- }, _config.asyncTimeout * 1000);
+ };
+ _config.timeout = setTimeout(handler, _config.asyncTimeout * 1000);
}
function start() {
if(_config.timeout)
}
function start() {
if(_config.timeout)