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 25ffb3f..69377e4 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() {