Skip to content

Commit

Permalink
jquery testrunner: accept regexp to select tests, eg. /test/?^core|^s…
Browse files Browse the repository at this point in the history
…elector to run both core and selector module
  • Loading branch information
jzaefferer committed Apr 22, 2008
1 parent d3d8f35 commit f861c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/data/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f861c88

Please sign in to comment.