Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: chrome/test/data/indexeddb/perf_test.js

Issue 10826291: Add url filter to idb perf tests (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/perf_test.js
diff --git a/chrome/test/data/indexeddb/perf_test.js b/chrome/test/data/indexeddb/perf_test.js
index 708fc3f625b1286f9defbc7c16abc227357b5c3a..f22c305bf917ac06a4868919d034608c966556b1 100644
--- a/chrome/test/data/indexeddb/perf_test.js
+++ b/chrome/test/data/indexeddb/perf_test.js
@@ -89,9 +89,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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698