Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / cursor-skip-deleted-expected.txt
blob68a1f400a2996d89bf6fd206307842887f72f096
1 Test IndexedDB's cursor skips deleted entries.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "cursor-skip-deleted.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 setVersionSuccess():
10 trans = event.target.transaction
11 PASS trans is non-null.
12 objectStore = db.createObjectStore('store', {keyPath: 'id'})
13 objectStore.createIndex('nameIndex', 'name')
15 resetObjectStore():
17 basicCursorTest()
18 trans = db.transaction(['store'], 'readwrite')
20 testCursor():
21 trans.objectStore('store').openCursor(IDBKeyRange.lowerBound(0))
22 0: Alpha
23 1: Bravo
24 request = trans.objectStore('store').delete(0)
25 2: Charlie
26 request = trans.objectStore('store').delete(25)
27 3: Delta
28 request = trans.objectStore('store').delete(5)
29 request = trans.objectStore('store').delete(6)
30 request = trans.objectStore('store').delete(7)
31 4: Echo
32 8: India
33 9: Juliet
34 10: Kilo
35 request = trans.objectStore('store').delete(10)
36 11: Lima
37 12: Mike
38 request = trans.objectStore('store').delete(13)
39 14: Oscar
40 15: Papa
41 request = trans.objectStore('store').delete(14)
42 16: Quebec
43 17: Romeo
44 18: Sierra
45 19: Tango
46 20: Uniform
47 request = trans.objectStore('store').delete(17)
48 request = trans.objectStore('store').delete(18)
49 21: Victor
50 22: Whiskey
51 23: X-ray
52 24: Yankee
55 resetObjectStore():
57 reverseCursorTest():
59 testCursor():
60 trans.objectStore('store').openCursor(IDBKeyRange.lowerBound(0), 'prev')
61 25: Zulu
62 24: Yankee
63 request = trans.objectStore('store').delete(25)
64 23: X-ray
65 request = trans.objectStore('store').delete(0)
66 22: Whiskey
67 request = trans.objectStore('store').delete(20)
68 request = trans.objectStore('store').delete(19)
69 request = trans.objectStore('store').delete(18)
70 21: Victor
71 17: Romeo
72 16: Quebec
73 15: Papa
74 request = trans.objectStore('store').delete(15)
75 14: Oscar
76 13: November
77 request = trans.objectStore('store').delete(12)
78 11: Lima
79 10: Kilo
80 request = trans.objectStore('store').delete(11)
81 9: Juliet
82 8: India
83 7: Hotel
84 6: Golf
85 5: Foxtrot
86 request = trans.objectStore('store').delete(7)
87 request = trans.objectStore('store').delete(8)
88 4: Echo
89 3: Delta
90 2: Charlie
91 1: Bravo
94 resetObjectStore():
96 indexCursorTest():
98 testCursor():
99 trans.objectStore('store').index('nameIndex').openCursor(IDBKeyRange.lowerBound('Alpha'))
100 0: Alpha
101 1: Bravo
102 request = trans.objectStore('store').delete(0)
103 2: Charlie
104 request = trans.objectStore('store').delete(25)
105 3: Delta
106 request = trans.objectStore('store').delete(5)
107 request = trans.objectStore('store').delete(6)
108 request = trans.objectStore('store').delete(7)
109 4: Echo
110 8: India
111 9: Juliet
112 10: Kilo
113 request = trans.objectStore('store').delete(10)
114 11: Lima
115 12: Mike
116 request = trans.objectStore('store').delete(13)
117 14: Oscar
118 15: Papa
119 request = trans.objectStore('store').delete(14)
120 16: Quebec
121 17: Romeo
122 18: Sierra
123 19: Tango
124 20: Uniform
125 request = trans.objectStore('store').delete(17)
126 request = trans.objectStore('store').delete(18)
127 21: Victor
128 22: Whiskey
129 23: X-ray
130 24: Yankee
132 transactionComplete():
133 PASS successfullyParsed is true
135 TEST COMPLETE