Add url filter to idb perf tests

This allows you to filter the perf tests with a hashtag. For example, adding '#testCreateAndDeleteDatabase' will run only tests with that name. This is just a debugging thing.

R=ericu@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/10826291

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151841 0039d316-1c4b-4281-b951-d872f2087c98
parent 16712daf
......@@ -97,9 +97,14 @@ function test() {
}
function runNextTest() {
if (currentTest < tests.length) {
var filter = window.location.hash.slice(1);
do {
var test = tests[currentTest++].slice();
var f = test.shift();
} while (currentTest < tests.length &&
filter && f.name != filter)
if (currentTest < tests.length) {
test.push(runNextTest);
f.apply(null, test);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment