jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module
This commit is contained in:
parent
d3d8f3561b
commit
f861c88b1b
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue