Make it so that you can filter tests by keyword.

This commit is contained in:
John Resig 2007-08-31 05:41:08 +00:00
parent e3263063e4
commit fbd2b066a7

View file

@ -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) != filter ) if ( filter && encodeURIComponent(name).indexOf(filter) == -1 )
return; return;
synchronize(function() { synchronize(function() {