Commit f861c88b authored by Jörn Zaefferer's avatar Jörn Zaefferer

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

jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module
parent d3d8f356
...@@ -74,7 +74,7 @@ function test(name, callback, nowait) { ...@@ -74,7 +74,7 @@ function test(name, callback, nowait) {
name = _config.currentModule + " module: " + name; name = _config.currentModule + " module: " + name;
var filter = location.search.slice(1); var filter = location.search.slice(1);
if ( filter && encodeURIComponent(name).indexOf(filter) == -1 ) if ( filter && !new RegExp(filter).test(encodeURIComponent(name)) )
return; return;
synchronize(function() { synchronize(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment