jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module

This commit is contained in:
Jörn Zaefferer 2008-04-22 22:43:18 +00:00
parent d3d8f3561b
commit f861c88b1b

View file

@ -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() {