git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run...
[jquery.git]
/
test
/
data
/
testrunner.js
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);
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() {
return;
synchronize(function() {