git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added .filter("expr",ifCallback,elseCallback) (works for find, not, clone, add, etc.).
[jquery.git]
/
build
/
test
/
data
/
testrunner.js
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
a72a1c1
..
11921f9
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 queue = [];
var blocking = false;
+var timeout;
function synchronize(callback) {
queue[queue.length] = callback;
function synchronize(callback) {
queue[queue.length] = callback;
@@
-26,9
+27,11
@@
function process() {
function stop() {
blocking = true;
function stop() {
blocking = true;
- setTimeout(start, asyncTimeout * 1000);
+ timeout = setTimeout(start, asyncTimeout * 1000);
}
function start() {
}
function start() {
+ if(timeout)
+ clearTimeout(timeout);
blocking = false;
process();
}
blocking = false;
process();
}
@@
-47,8
+50,8
@@
function runTest(tests) {
}
function test(name, callback) {
}
function test(name, callback) {
- Test = [];
synchronize(function() {
synchronize(function() {
+ Test = [];
try {
callback();
} catch(e) {
try {
callback();
} catch(e) {