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:
d3d8f35
)
jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run...
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 22 Apr 2008 22:43:18 +0000
(22:43 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 22 Apr 2008 22:43:18 +0000
(22:43 +0000)
test/data/testrunner.js
patch
|
blob
|
history
diff --git
a/test/data/testrunner.js
b/test/data/testrunner.js
index
df57e3a
..
eabcd8e
100644
(file)
--- a/
test/data/testrunner.js
+++ b/
test/data/testrunner.js
@@
-74,7
+74,7
@@
function test(name, callback, nowait) {
name = _config.currentModule + " module: " + name;
var filter = location.search.slice(1);
- if ( filter && encodeURIComponent(name).indexOf(filter) == -1 )
+ if ( filter && !new RegExp(filter).test(encodeURIComponent(name)) )
return;
synchronize(function() {