From f861c88b1bb8f9c0bf37ec86cb12a3f7206680c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 22 Apr 2008 22:43:18 +0000 Subject: [PATCH] jquery testrunner: accept regexp to select tests, eg. /test/?^core|^selector to run both core and selector module --- test/data/testrunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/data/testrunner.js b/test/data/testrunner.js index df57e3ac..eabcd8e6 100644 --- a/test/data/testrunner.js +++ b/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).indexOf(filter) == -1 ) + if ( filter && !new RegExp(filter).test(encodeURIComponent(name)) ) return; synchronize(function() {