]> source.dussan.org Git - jquery.git/commitdiff
Make it so that you can filter tests by keyword.
authorJohn Resig <jeresig@gmail.com>
Fri, 31 Aug 2007 05:41:08 +0000 (05:41 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 31 Aug 2007 05:41:08 +0000 (05:41 +0000)
build/test/data/testrunner.js

index 25ffb3f27ba13d14081bb14a1b79877404e28285..69377e45216b48970067d81f551148c103534bc4 100644 (file)
@@ -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() {