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

Unified Diff: LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt

Issue 18590006: Blob support for IDB [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: aaaaaaaand one more nit. Created 6 years, 6 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
Index: LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
diff --git a/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt b/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
index 4b49554add8556b67113902a3963722aaa5302d2..3f0e6db58a0678de968a920f36322705078aeeb0 100644
--- a/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
+++ b/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
@@ -11,15 +11,17 @@ indexedDB.open(dbname)
store = db.createObjectStore('store', {keyPath: 'id'})
store.createIndex('string length', 'string.length')
store.createIndex('array length', 'array.length')
+store.createIndex('blob size', 'blob.size')
+store.createIndex('blob type', 'blob.type')
testKeyPaths():
transaction = db.transaction('store', 'readwrite')
store = transaction.objectStore('store')
-store.put({"id":"id#0","string":"","array":[]})
-store.put({"id":"id#1","string":"xx","array":["x","x","x"]})
-store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"]})
-store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x","x"]})
-store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x","x","x","x","x","x"]})
+store.put({"id":"id#0","string":"","array":[],"blob":{"type":"type 0","size":0}})
+store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"type":"type 1","size":4}})
+store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob":{"type":"type 2","size":8}})
+store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x","x"],"blob":{"type":"type 3","size":12}})
+store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x","x","x","x","x","x"],"blob":{"type":"type 4","size":16}})
request = store.index('string length').openCursor()
PASS cursor.key is cursor.value.string.length
PASS cursor.key is cursor.value.string.length
@@ -32,6 +34,18 @@ PASS cursor.key is cursor.value.array.length
PASS cursor.key is cursor.value.array.length
PASS cursor.key is cursor.value.array.length
PASS cursor.key is cursor.value.array.length
+request = store.index('blob size').openCursor()
+PASS cursor.key is cursor.value.blob.size
+PASS cursor.key is cursor.value.blob.size
+PASS cursor.key is cursor.value.blob.size
+PASS cursor.key is cursor.value.blob.size
+PASS cursor.key is cursor.value.blob.size
+request = store.index('blob type').openCursor()
+PASS cursor.key is cursor.value.blob.type
+PASS cursor.key is cursor.value.blob.type
+PASS cursor.key is cursor.value.blob.type
+PASS cursor.key is cursor.value.blob.type
+PASS cursor.key is cursor.value.blob.type
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/storage/indexeddb/blob-valid-before-commit-expected.txt ('k') | LayoutTests/storage/indexeddb/noblobs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698