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 |