From: John Resig Date: Fri, 31 Aug 2007 05:41:08 +0000 (+0000) Subject: Make it so that you can filter tests by keyword. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=fbd2b066a71c8c2371e11f7f6b201a9000b564e4 Make it so that you can filter tests by keyword. --- diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 25ffb3f..69377e4 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -74,7 +74,7 @@ function test(name, callback, nowait) { name = _config.currentModule + " module: " + name; var filter = location.search.slice(1); - if ( filter && encodeURIComponent(name) != filter ) + if ( filter && encodeURIComponent(name).indexOf(filter) == -1 ) return; synchronize(function() {