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-Tag: 1.2~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fbd2b066a71c8c2371e11f7f6b201a9000b564e4;p=jquery.git 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 25ffb3f27..69377e452 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() {