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

testrunner: refactored url-test-filter, still regex based

parent 2efd0b4c
...@@ -54,6 +54,11 @@ function start() { ...@@ -54,6 +54,11 @@ function start() {
}, 13); }, 13);
} }
function dontrun(name) {
var filter = location.search.slice(1);
return filter && !new RegExp(filter).test(encodeURIComponent(name));
}
function runTest() { function runTest() {
_config.blocking = false; _config.blocking = false;
var time = new Date(); var time = new Date();
...@@ -73,8 +78,7 @@ function test(name, callback, nowait) { ...@@ -73,8 +78,7 @@ function test(name, callback, nowait) {
if(_config.currentModule) if(_config.currentModule)
name = _config.currentModule + " module: " + name; name = _config.currentModule + " module: " + name;
var filter = location.search.slice(1); if (dontrun(name))
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