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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test IndexedDB keyPath with intrinsic properties 1 Test IndexedDB keyPath with intrinsic properties
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "keypath-intrinsic-properties.html" 8 dbname = "keypath-intrinsic-properties.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 store = db.createObjectStore('store', {keyPath: 'id'}) 11 store = db.createObjectStore('store', {keyPath: 'id'})
12 store.createIndex('string length', 'string.length') 12 store.createIndex('string length', 'string.length')
13 store.createIndex('array length', 'array.length') 13 store.createIndex('array length', 'array.length')
14 store.createIndex('blob size', 'blob.size')
14 15
15 testKeyPaths(): 16 testKeyPaths():
16 transaction = db.transaction('store', 'readwrite') 17 transaction = db.transaction('store', 'readwrite')
17 store = transaction.objectStore('store') 18 store = transaction.objectStore('store')
18 store.put({"id":"id#0","string":"","array":[]}) 19 store.put({"id":"id#0","string":"","array":[],"blob":{"type":"","size":0}})
19 store.put({"id":"id#1","string":"xx","array":["x","x","x"]}) 20 store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"type":"","si ze":4}})
20 store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"]}) 21 store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob": {"type":"","size":8}})
21 store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x ","x"]}) 22 store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x ","x"],"blob":{"type":"","size":12}})
22 store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x", "x","x","x","x","x"]}) 23 store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x", "x","x","x","x","x"],"blob":{"type":"","size":16}})
23 request = store.index('string length').openCursor() 24 request = store.index('string length').openCursor()
24 PASS cursor.key is cursor.value.string.length 25 PASS cursor.key is cursor.value.string.length
25 PASS cursor.key is cursor.value.string.length 26 PASS cursor.key is cursor.value.string.length
26 PASS cursor.key is cursor.value.string.length 27 PASS cursor.key is cursor.value.string.length
27 PASS cursor.key is cursor.value.string.length 28 PASS cursor.key is cursor.value.string.length
28 PASS cursor.key is cursor.value.string.length 29 PASS cursor.key is cursor.value.string.length
29 request = store.index('array length').openCursor() 30 request = store.index('array length').openCursor()
30 PASS cursor.key is cursor.value.array.length 31 PASS cursor.key is cursor.value.array.length
31 PASS cursor.key is cursor.value.array.length 32 PASS cursor.key is cursor.value.array.length
32 PASS cursor.key is cursor.value.array.length 33 PASS cursor.key is cursor.value.array.length
33 PASS cursor.key is cursor.value.array.length 34 PASS cursor.key is cursor.value.array.length
34 PASS cursor.key is cursor.value.array.length 35 PASS cursor.key is cursor.value.array.length
36 request = store.index('blob size').openCursor()
37 PASS cursor.key is cursor.value.blob.size
38 PASS cursor.key is cursor.value.blob.size
39 PASS cursor.key is cursor.value.blob.size
40 PASS cursor.key is cursor.value.blob.size
41 PASS cursor.key is cursor.value.blob.size
35 PASS successfullyParsed is true 42 PASS successfullyParsed is true
36 43
37 TEST COMPLETE 44 TEST COMPLETE
38 45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698