Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / keypath-intrinsic-properties-expected.txt
blob8589f0d6a8407e2ca41d814fef780dc3dfb38889
1 Test IndexedDB keyPath with intrinsic properties
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "keypath-intrinsic-properties.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 store = db.createObjectStore('store', {keyPath: 'id'})
10 store.createIndex('string length', 'string.length')
11 store.createIndex('array length', 'array.length')
12 store.createIndex('blob size', 'blob.size')
13 store.createIndex('blob type', 'blob.type')
15 testKeyPaths():
16 transaction = db.transaction('store', 'readwrite')
17 store = transaction.objectStore('store')
18 store.put({"id":"id#0","string":"","array":[],"blob":{"size":0,"type":"type 0"}})
19 store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"size":4,"type":"type 1"}})
20 store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob":{"size":8,"type":"type 2"}})
21 store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x","x"],"blob":{"size":12,"type":"type 3"}})
22 store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x","x","x","x","x","x"],"blob":{"size":16,"type":"type 4"}})
23 request = store.index('string length').openCursor()
24 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
27 PASS cursor.key is cursor.value.string.length
28 PASS cursor.key is cursor.value.string.length
29 request = store.index('array length').openCursor()
30 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
33 PASS cursor.key is cursor.value.array.length
34 PASS cursor.key is cursor.value.array.length
35 request = store.index('blob size').openCursor()
36 PASS cursor.key is cursor.value.blob.size
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 request = store.index('blob type').openCursor()
42 PASS cursor.key is cursor.value.blob.type
43 PASS cursor.key is cursor.value.blob.type
44 PASS cursor.key is cursor.value.blob.type
45 PASS cursor.key is cursor.value.blob.type
46 PASS cursor.key is cursor.value.blob.type
47 PASS successfullyParsed is true
49 TEST COMPLETE