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:
2efd0b4
)
testrunner: refactored url-test-filter, still regex based
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Thu, 24 Apr 2008 20:08:50 +0000
(20:08 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Thu, 24 Apr 2008 20:08:50 +0000
(20:08 +0000)
test/data/testrunner.js
patch
|
blob
|
history
diff --git
a/test/data/testrunner.js
b/test/data/testrunner.js
index
eabcd8e
..
6f42641
100644
(file)
--- a/
test/data/testrunner.js
+++ b/
test/data/testrunner.js
@@
-54,6
+54,11
@@
function start() {
}, 13);
}
+function dontrun(name) {
+ var filter = location.search.slice(1);
+ return filter && !new RegExp(filter).test(encodeURIComponent(name));
+}
+
function runTest() {
_config.blocking = false;
var time = new Date();
@@
-73,8
+78,7
@@
function test(name, callback, nowait) {
if(_config.currentModule)
name = _config.currentModule + " module: " + name;
- var filter = location.search.slice(1);
- if ( filter && !new RegExp(filter).test(encodeURIComponent(name)) )
+ if (dontrun(name))
return;
synchronize(function() {