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

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

Issue 10854046: Add cache test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add cache test length variants 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 | chrome/test/data/indexeddb/perf_test.js » ('j') | chrome/test/data/indexeddb/perf_test.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/perf_shared.js
diff --git a/chrome/test/data/indexeddb/perf_shared.js b/chrome/test/data/indexeddb/perf_shared.js
index 0b1e2615591fda67be02b96b2bf6cbf23ae566c0..62767d3b3518e7095e81f6c1e7376bf10eda562b 100644
--- a/chrome/test/data/indexeddb/perf_shared.js
+++ b/chrome/test/data/indexeddb/perf_shared.js
@@ -311,6 +311,19 @@ function putRandomValues(
}
}
+function getSpecificValues(transaction, objectStoreNames, indexName, keys) {
+ for (var i in objectStoreNames) {
+ var os = transaction.objectStore(objectStoreNames[i]);
+ var source = os;
+ if (indexName)
+ source = source.index(indexName);
+ for (var j = 0; j < keys.length; ++j) {
+ var request = source.get(keys[j]);
+ request.onerror = onError;
jsbell 2012/08/09 17:58:18 This doesn't verify that a value was returned (suc
ericu 2012/08/15 17:56:22 Added it in a couple of places.
+ }
+ }
+}
+
// getKey should be deterministic, as we assume that a cursor that starts at
// getKey(X) and runs through getKey(X + K) has exactly K values available.
// This is annoying to guarantee generally when using an index, so we avoid both
« no previous file with comments | « no previous file | chrome/test/data/indexeddb/perf_test.js » ('j') | chrome/test/data/indexeddb/perf_test.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698