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

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: Rebasing issue? Created 6 years, 7 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..d5240889a29667f5c8eb10cdc9aa27ef57b59b42 100644
--- a/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
+++ b/LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt
@@ -11,15 +11,16 @@ 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')
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":"","size":0}})
+store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"type":"","size":4}})
+store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob":{"type":"","size":8}})
+store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x","x"],"blob":{"type":"","size":12}})
+store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x","x","x","x","x","x"],"blob":{"type":"","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 +33,12 @@ 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
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698