git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c3711
)
Clear timeout (prevents freezing of test suite when async tests fail) when start...
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 19 Sep 2006 10:18:57 +0000
(10:18 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 19 Sep 2006 10:18:57 +0000
(10:18 +0000)
build/test/data/testrunner.js
patch
|
blob
|
history
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
a72a1c1
..
db97215
100644
(file)
--- a/
build/test/data/testrunner.js
+++ b/
build/test/data/testrunner.js
@@
-8,6
+8,7
@@
var stats = {
};
var queue = [];
var blocking = false;
+var timeout;
function synchronize(callback) {
queue[queue.length] = callback;
@@
-26,9
+27,11
@@
function process() {
function stop() {
blocking = true;
- setTimeout(start, asyncTimeout * 1000);
+ timeout = setTimeout(start, asyncTimeout * 1000);
}
function start() {
+ if(timeout)
+ clearTimeout(timeout);
blocking = false;
process();
}