OLD | NEW |
1 Test that IndexedDB objects that have been deleted throw exceptions | 1 Test that IndexedDB objects that have been deleted throw exceptions |
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 = "deleted-objects.html" | 8 dbname = "deleted-objects.html" |
9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
11 | 11 |
12 testStore(): | 12 testStore(): |
13 deletedStore = connection.createObjectStore('deletedStore') | 13 deletedStore = connection.createObjectStore('deletedStore') |
14 connection.deleteObjectStore('deletedStore') | 14 connection.deleteObjectStore('deletedStore') |
15 | 15 |
16 Expecting exception from deletedStore.put(0, 0) | 16 Expecting exception from deletedStore.put(0, 0) |
17 PASS Exception was thrown. | 17 PASS Exception was thrown. |
18 PASS code is DOMException.INVALID_STATE_ERR | 18 PASS code is DOMException.INVALID_STATE_ERR |
19 PASS ename is 'InvalidStateError' | 19 PASS ename is 'InvalidStateError' |
| 20 Exception message: The object store has been deleted. |
20 Expecting exception from deletedStore.add(0, 0) | 21 Expecting exception from deletedStore.add(0, 0) |
21 PASS Exception was thrown. | 22 PASS Exception was thrown. |
22 PASS code is DOMException.INVALID_STATE_ERR | 23 PASS code is DOMException.INVALID_STATE_ERR |
23 PASS ename is 'InvalidStateError' | 24 PASS ename is 'InvalidStateError' |
| 25 Exception message: The object store has been deleted. |
24 Expecting exception from deletedStore.delete(0) | 26 Expecting exception from deletedStore.delete(0) |
25 PASS Exception was thrown. | 27 PASS Exception was thrown. |
26 PASS code is DOMException.INVALID_STATE_ERR | 28 PASS code is DOMException.INVALID_STATE_ERR |
27 PASS ename is 'InvalidStateError' | 29 PASS ename is 'InvalidStateError' |
| 30 Exception message: The object store has been deleted. |
28 Expecting exception from deletedStore.delete(IDBKeyRange.only(0)) | 31 Expecting exception from deletedStore.delete(IDBKeyRange.only(0)) |
29 PASS Exception was thrown. | 32 PASS Exception was thrown. |
30 PASS code is DOMException.INVALID_STATE_ERR | 33 PASS code is DOMException.INVALID_STATE_ERR |
31 PASS ename is 'InvalidStateError' | 34 PASS ename is 'InvalidStateError' |
| 35 Exception message: The object store has been deleted. |
32 Expecting exception from deletedStore.get(0) | 36 Expecting exception from deletedStore.get(0) |
33 PASS Exception was thrown. | 37 PASS Exception was thrown. |
34 PASS code is DOMException.INVALID_STATE_ERR | 38 PASS code is DOMException.INVALID_STATE_ERR |
35 PASS ename is 'InvalidStateError' | 39 PASS ename is 'InvalidStateError' |
| 40 Exception message: The object store has been deleted. |
36 Expecting exception from deletedStore.get(IDBKeyRange.only(0)) | 41 Expecting exception from deletedStore.get(IDBKeyRange.only(0)) |
37 PASS Exception was thrown. | 42 PASS Exception was thrown. |
38 PASS code is DOMException.INVALID_STATE_ERR | 43 PASS code is DOMException.INVALID_STATE_ERR |
39 PASS ename is 'InvalidStateError' | 44 PASS ename is 'InvalidStateError' |
| 45 Exception message: The object store has been deleted. |
40 Expecting exception from deletedStore.clear() | 46 Expecting exception from deletedStore.clear() |
41 PASS Exception was thrown. | 47 PASS Exception was thrown. |
42 PASS code is DOMException.INVALID_STATE_ERR | 48 PASS code is DOMException.INVALID_STATE_ERR |
43 PASS ename is 'InvalidStateError' | 49 PASS ename is 'InvalidStateError' |
| 50 Exception message: The object store has been deleted. |
44 Expecting exception from deletedStore.openCursor() | 51 Expecting exception from deletedStore.openCursor() |
45 PASS Exception was thrown. | 52 PASS Exception was thrown. |
46 PASS code is DOMException.INVALID_STATE_ERR | 53 PASS code is DOMException.INVALID_STATE_ERR |
47 PASS ename is 'InvalidStateError' | 54 PASS ename is 'InvalidStateError' |
| 55 Exception message: The object store has been deleted. |
48 Expecting exception from deletedStore.openCursor(0) | 56 Expecting exception from deletedStore.openCursor(0) |
49 PASS Exception was thrown. | 57 PASS Exception was thrown. |
50 PASS code is DOMException.INVALID_STATE_ERR | 58 PASS code is DOMException.INVALID_STATE_ERR |
51 PASS ename is 'InvalidStateError' | 59 PASS ename is 'InvalidStateError' |
| 60 Exception message: The object store has been deleted. |
52 Expecting exception from deletedStore.openCursor(0, 'next') | 61 Expecting exception from deletedStore.openCursor(0, 'next') |
53 PASS Exception was thrown. | 62 PASS Exception was thrown. |
54 PASS code is DOMException.INVALID_STATE_ERR | 63 PASS code is DOMException.INVALID_STATE_ERR |
55 PASS ename is 'InvalidStateError' | 64 PASS ename is 'InvalidStateError' |
| 65 Exception message: The object store has been deleted. |
56 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0)) | 66 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0)) |
57 PASS Exception was thrown. | 67 PASS Exception was thrown. |
58 PASS code is DOMException.INVALID_STATE_ERR | 68 PASS code is DOMException.INVALID_STATE_ERR |
59 PASS ename is 'InvalidStateError' | 69 PASS ename is 'InvalidStateError' |
| 70 Exception message: The object store has been deleted. |
60 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0), 'next') | 71 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0), 'next') |
61 PASS Exception was thrown. | 72 PASS Exception was thrown. |
62 PASS code is DOMException.INVALID_STATE_ERR | 73 PASS code is DOMException.INVALID_STATE_ERR |
63 PASS ename is 'InvalidStateError' | 74 PASS ename is 'InvalidStateError' |
| 75 Exception message: The object store has been deleted. |
64 Expecting exception from deletedStore.createIndex('name', 'path') | 76 Expecting exception from deletedStore.createIndex('name', 'path') |
65 PASS Exception was thrown. | 77 PASS Exception was thrown. |
66 PASS code is DOMException.INVALID_STATE_ERR | 78 PASS code is DOMException.INVALID_STATE_ERR |
67 PASS ename is 'InvalidStateError' | 79 PASS ename is 'InvalidStateError' |
| 80 Exception message: The object store has been deleted. |
68 Expecting exception from deletedStore.index('name') | 81 Expecting exception from deletedStore.index('name') |
69 PASS Exception was thrown. | 82 PASS Exception was thrown. |
70 PASS code is DOMException.INVALID_STATE_ERR | 83 PASS code is DOMException.INVALID_STATE_ERR |
71 PASS ename is 'InvalidStateError' | 84 PASS ename is 'InvalidStateError' |
| 85 Exception message: The object store has been deleted. |
72 Expecting exception from deletedStore.deleteIndex('name') | 86 Expecting exception from deletedStore.deleteIndex('name') |
73 PASS Exception was thrown. | 87 PASS Exception was thrown. |
74 PASS code is DOMException.INVALID_STATE_ERR | 88 PASS code is DOMException.INVALID_STATE_ERR |
75 PASS ename is 'InvalidStateError' | 89 PASS ename is 'InvalidStateError' |
| 90 Exception message: The object store has been deleted. |
76 Expecting exception from deletedStore.count() | 91 Expecting exception from deletedStore.count() |
77 PASS Exception was thrown. | 92 PASS Exception was thrown. |
78 PASS code is DOMException.INVALID_STATE_ERR | 93 PASS code is DOMException.INVALID_STATE_ERR |
79 PASS ename is 'InvalidStateError' | 94 PASS ename is 'InvalidStateError' |
| 95 Exception message: The object store has been deleted. |
80 Expecting exception from deletedStore.count(0) | 96 Expecting exception from deletedStore.count(0) |
81 PASS Exception was thrown. | 97 PASS Exception was thrown. |
82 PASS code is DOMException.INVALID_STATE_ERR | 98 PASS code is DOMException.INVALID_STATE_ERR |
83 PASS ename is 'InvalidStateError' | 99 PASS ename is 'InvalidStateError' |
| 100 Exception message: The object store has been deleted. |
84 Expecting exception from deletedStore.count(IDBKeyRange.only(0)) | 101 Expecting exception from deletedStore.count(IDBKeyRange.only(0)) |
85 PASS Exception was thrown. | 102 PASS Exception was thrown. |
86 PASS code is DOMException.INVALID_STATE_ERR | 103 PASS code is DOMException.INVALID_STATE_ERR |
87 PASS ename is 'InvalidStateError' | 104 PASS ename is 'InvalidStateError' |
| 105 Exception message: The object store has been deleted. |
88 | 106 |
89 testIndex(): | 107 testIndex(): |
90 store = connection.createObjectStore('store') | 108 store = connection.createObjectStore('store') |
91 deletedIndex = store.createIndex('deletedIndex', 'path') | 109 deletedIndex = store.createIndex('deletedIndex', 'path') |
92 store.deleteIndex('deletedIndex') | 110 store.deleteIndex('deletedIndex') |
93 | 111 |
94 Expecting exception from deletedIndex.openCursor() | 112 Expecting exception from deletedIndex.openCursor() |
95 PASS Exception was thrown. | 113 PASS Exception was thrown. |
96 PASS code is DOMException.INVALID_STATE_ERR | 114 PASS code is DOMException.INVALID_STATE_ERR |
97 PASS ename is 'InvalidStateError' | 115 PASS ename is 'InvalidStateError' |
| 116 Exception message: The index or its object store has been deleted. |
98 Expecting exception from deletedIndex.openCursor(0) | 117 Expecting exception from deletedIndex.openCursor(0) |
99 PASS Exception was thrown. | 118 PASS Exception was thrown. |
100 PASS code is DOMException.INVALID_STATE_ERR | 119 PASS code is DOMException.INVALID_STATE_ERR |
101 PASS ename is 'InvalidStateError' | 120 PASS ename is 'InvalidStateError' |
| 121 Exception message: The index or its object store has been deleted. |
102 Expecting exception from deletedIndex.openCursor(0, 'next') | 122 Expecting exception from deletedIndex.openCursor(0, 'next') |
103 PASS Exception was thrown. | 123 PASS Exception was thrown. |
104 PASS code is DOMException.INVALID_STATE_ERR | 124 PASS code is DOMException.INVALID_STATE_ERR |
105 PASS ename is 'InvalidStateError' | 125 PASS ename is 'InvalidStateError' |
| 126 Exception message: The index or its object store has been deleted. |
106 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0)) | 127 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0)) |
107 PASS Exception was thrown. | 128 PASS Exception was thrown. |
108 PASS code is DOMException.INVALID_STATE_ERR | 129 PASS code is DOMException.INVALID_STATE_ERR |
109 PASS ename is 'InvalidStateError' | 130 PASS ename is 'InvalidStateError' |
| 131 Exception message: The index or its object store has been deleted. |
110 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0), 'next') | 132 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0), 'next') |
111 PASS Exception was thrown. | 133 PASS Exception was thrown. |
112 PASS code is DOMException.INVALID_STATE_ERR | 134 PASS code is DOMException.INVALID_STATE_ERR |
113 PASS ename is 'InvalidStateError' | 135 PASS ename is 'InvalidStateError' |
| 136 Exception message: The index or its object store has been deleted. |
114 Expecting exception from deletedIndex.openKeyCursor() | 137 Expecting exception from deletedIndex.openKeyCursor() |
115 PASS Exception was thrown. | 138 PASS Exception was thrown. |
116 PASS code is DOMException.INVALID_STATE_ERR | 139 PASS code is DOMException.INVALID_STATE_ERR |
117 PASS ename is 'InvalidStateError' | 140 PASS ename is 'InvalidStateError' |
| 141 Exception message: The index or its object store has been deleted. |
118 Expecting exception from deletedIndex.openKeyCursor(0) | 142 Expecting exception from deletedIndex.openKeyCursor(0) |
119 PASS Exception was thrown. | 143 PASS Exception was thrown. |
120 PASS code is DOMException.INVALID_STATE_ERR | 144 PASS code is DOMException.INVALID_STATE_ERR |
121 PASS ename is 'InvalidStateError' | 145 PASS ename is 'InvalidStateError' |
| 146 Exception message: The index or its object store has been deleted. |
122 Expecting exception from deletedIndex.openKeyCursor(0, 'next') | 147 Expecting exception from deletedIndex.openKeyCursor(0, 'next') |
123 PASS Exception was thrown. | 148 PASS Exception was thrown. |
124 PASS code is DOMException.INVALID_STATE_ERR | 149 PASS code is DOMException.INVALID_STATE_ERR |
125 PASS ename is 'InvalidStateError' | 150 PASS ename is 'InvalidStateError' |
| 151 Exception message: The index or its object store has been deleted. |
126 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0)) | 152 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0)) |
127 PASS Exception was thrown. | 153 PASS Exception was thrown. |
128 PASS code is DOMException.INVALID_STATE_ERR | 154 PASS code is DOMException.INVALID_STATE_ERR |
129 PASS ename is 'InvalidStateError' | 155 PASS ename is 'InvalidStateError' |
| 156 Exception message: The index or its object store has been deleted. |
130 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0), 'next') | 157 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0), 'next') |
131 PASS Exception was thrown. | 158 PASS Exception was thrown. |
132 PASS code is DOMException.INVALID_STATE_ERR | 159 PASS code is DOMException.INVALID_STATE_ERR |
133 PASS ename is 'InvalidStateError' | 160 PASS ename is 'InvalidStateError' |
| 161 Exception message: The index or its object store has been deleted. |
134 Expecting exception from deletedIndex.get(0) | 162 Expecting exception from deletedIndex.get(0) |
135 PASS Exception was thrown. | 163 PASS Exception was thrown. |
136 PASS code is DOMException.INVALID_STATE_ERR | 164 PASS code is DOMException.INVALID_STATE_ERR |
137 PASS ename is 'InvalidStateError' | 165 PASS ename is 'InvalidStateError' |
| 166 Exception message: The index or its object store has been deleted. |
138 Expecting exception from deletedIndex.get(IDBKeyRange.only(0)) | 167 Expecting exception from deletedIndex.get(IDBKeyRange.only(0)) |
139 PASS Exception was thrown. | 168 PASS Exception was thrown. |
140 PASS code is DOMException.INVALID_STATE_ERR | 169 PASS code is DOMException.INVALID_STATE_ERR |
141 PASS ename is 'InvalidStateError' | 170 PASS ename is 'InvalidStateError' |
| 171 Exception message: The index or its object store has been deleted. |
142 Expecting exception from deletedIndex.getKey(0) | 172 Expecting exception from deletedIndex.getKey(0) |
143 PASS Exception was thrown. | 173 PASS Exception was thrown. |
144 PASS code is DOMException.INVALID_STATE_ERR | 174 PASS code is DOMException.INVALID_STATE_ERR |
145 PASS ename is 'InvalidStateError' | 175 PASS ename is 'InvalidStateError' |
| 176 Exception message: The index or its object store has been deleted. |
146 Expecting exception from deletedIndex.getKey(IDBKeyRange.only(0)) | 177 Expecting exception from deletedIndex.getKey(IDBKeyRange.only(0)) |
147 PASS Exception was thrown. | 178 PASS Exception was thrown. |
148 PASS code is DOMException.INVALID_STATE_ERR | 179 PASS code is DOMException.INVALID_STATE_ERR |
149 PASS ename is 'InvalidStateError' | 180 PASS ename is 'InvalidStateError' |
| 181 Exception message: The index or its object store has been deleted. |
150 Expecting exception from deletedIndex.count() | 182 Expecting exception from deletedIndex.count() |
151 PASS Exception was thrown. | 183 PASS Exception was thrown. |
152 PASS code is DOMException.INVALID_STATE_ERR | 184 PASS code is DOMException.INVALID_STATE_ERR |
153 PASS ename is 'InvalidStateError' | 185 PASS ename is 'InvalidStateError' |
| 186 Exception message: The index or its object store has been deleted. |
154 Expecting exception from deletedIndex.count(0) | 187 Expecting exception from deletedIndex.count(0) |
155 PASS Exception was thrown. | 188 PASS Exception was thrown. |
156 PASS code is DOMException.INVALID_STATE_ERR | 189 PASS code is DOMException.INVALID_STATE_ERR |
157 PASS ename is 'InvalidStateError' | 190 PASS ename is 'InvalidStateError' |
| 191 Exception message: The index or its object store has been deleted. |
158 Expecting exception from deletedIndex.count(IDBKeyRange.only(0)) | 192 Expecting exception from deletedIndex.count(IDBKeyRange.only(0)) |
159 PASS Exception was thrown. | 193 PASS Exception was thrown. |
160 PASS code is DOMException.INVALID_STATE_ERR | 194 PASS code is DOMException.INVALID_STATE_ERR |
161 PASS ename is 'InvalidStateError' | 195 PASS ename is 'InvalidStateError' |
| 196 Exception message: The index or its object store has been deleted. |
162 | 197 |
163 testTransitiveDeletion(): | 198 testTransitiveDeletion(): |
164 deletedStore = connection.createObjectStore('deletedStore') | 199 deletedStore = connection.createObjectStore('deletedStore') |
165 indexOfDeletedStore = deletedStore.createIndex('index', 'path') | 200 indexOfDeletedStore = deletedStore.createIndex('index', 'path') |
166 connection.deleteObjectStore('deletedStore') | 201 connection.deleteObjectStore('deletedStore') |
167 | 202 |
168 Expecting exception from indexOfDeletedStore.openCursor() | 203 Expecting exception from indexOfDeletedStore.openCursor() |
169 PASS Exception was thrown. | 204 PASS Exception was thrown. |
170 PASS code is DOMException.INVALID_STATE_ERR | 205 PASS code is DOMException.INVALID_STATE_ERR |
171 PASS ename is 'InvalidStateError' | 206 PASS ename is 'InvalidStateError' |
| 207 Exception message: The index or its object store has been deleted. |
172 Expecting exception from indexOfDeletedStore.openCursor(0) | 208 Expecting exception from indexOfDeletedStore.openCursor(0) |
173 PASS Exception was thrown. | 209 PASS Exception was thrown. |
174 PASS code is DOMException.INVALID_STATE_ERR | 210 PASS code is DOMException.INVALID_STATE_ERR |
175 PASS ename is 'InvalidStateError' | 211 PASS ename is 'InvalidStateError' |
| 212 Exception message: The index or its object store has been deleted. |
176 Expecting exception from indexOfDeletedStore.openCursor(0, 'next') | 213 Expecting exception from indexOfDeletedStore.openCursor(0, 'next') |
177 PASS Exception was thrown. | 214 PASS Exception was thrown. |
178 PASS code is DOMException.INVALID_STATE_ERR | 215 PASS code is DOMException.INVALID_STATE_ERR |
179 PASS ename is 'InvalidStateError' | 216 PASS ename is 'InvalidStateError' |
| 217 Exception message: The index or its object store has been deleted. |
180 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0)) | 218 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0)) |
181 PASS Exception was thrown. | 219 PASS Exception was thrown. |
182 PASS code is DOMException.INVALID_STATE_ERR | 220 PASS code is DOMException.INVALID_STATE_ERR |
183 PASS ename is 'InvalidStateError' | 221 PASS ename is 'InvalidStateError' |
| 222 Exception message: The index or its object store has been deleted. |
184 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0), 'ne
xt') | 223 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0), 'ne
xt') |
185 PASS Exception was thrown. | 224 PASS Exception was thrown. |
186 PASS code is DOMException.INVALID_STATE_ERR | 225 PASS code is DOMException.INVALID_STATE_ERR |
187 PASS ename is 'InvalidStateError' | 226 PASS ename is 'InvalidStateError' |
| 227 Exception message: The index or its object store has been deleted. |
188 Expecting exception from indexOfDeletedStore.openKeyCursor() | 228 Expecting exception from indexOfDeletedStore.openKeyCursor() |
189 PASS Exception was thrown. | 229 PASS Exception was thrown. |
190 PASS code is DOMException.INVALID_STATE_ERR | 230 PASS code is DOMException.INVALID_STATE_ERR |
191 PASS ename is 'InvalidStateError' | 231 PASS ename is 'InvalidStateError' |
| 232 Exception message: The index or its object store has been deleted. |
192 Expecting exception from indexOfDeletedStore.openKeyCursor(0) | 233 Expecting exception from indexOfDeletedStore.openKeyCursor(0) |
193 PASS Exception was thrown. | 234 PASS Exception was thrown. |
194 PASS code is DOMException.INVALID_STATE_ERR | 235 PASS code is DOMException.INVALID_STATE_ERR |
195 PASS ename is 'InvalidStateError' | 236 PASS ename is 'InvalidStateError' |
| 237 Exception message: The index or its object store has been deleted. |
196 Expecting exception from indexOfDeletedStore.openKeyCursor(0, 'next') | 238 Expecting exception from indexOfDeletedStore.openKeyCursor(0, 'next') |
197 PASS Exception was thrown. | 239 PASS Exception was thrown. |
198 PASS code is DOMException.INVALID_STATE_ERR | 240 PASS code is DOMException.INVALID_STATE_ERR |
199 PASS ename is 'InvalidStateError' | 241 PASS ename is 'InvalidStateError' |
| 242 Exception message: The index or its object store has been deleted. |
200 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0)) | 243 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0)) |
201 PASS Exception was thrown. | 244 PASS Exception was thrown. |
202 PASS code is DOMException.INVALID_STATE_ERR | 245 PASS code is DOMException.INVALID_STATE_ERR |
203 PASS ename is 'InvalidStateError' | 246 PASS ename is 'InvalidStateError' |
| 247 Exception message: The index or its object store has been deleted. |
204 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0),
'next') | 248 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0),
'next') |
205 PASS Exception was thrown. | 249 PASS Exception was thrown. |
206 PASS code is DOMException.INVALID_STATE_ERR | 250 PASS code is DOMException.INVALID_STATE_ERR |
207 PASS ename is 'InvalidStateError' | 251 PASS ename is 'InvalidStateError' |
| 252 Exception message: The index or its object store has been deleted. |
208 Expecting exception from indexOfDeletedStore.get(0) | 253 Expecting exception from indexOfDeletedStore.get(0) |
209 PASS Exception was thrown. | 254 PASS Exception was thrown. |
210 PASS code is DOMException.INVALID_STATE_ERR | 255 PASS code is DOMException.INVALID_STATE_ERR |
211 PASS ename is 'InvalidStateError' | 256 PASS ename is 'InvalidStateError' |
| 257 Exception message: The index or its object store has been deleted. |
212 Expecting exception from indexOfDeletedStore.get(IDBKeyRange.only(0)) | 258 Expecting exception from indexOfDeletedStore.get(IDBKeyRange.only(0)) |
213 PASS Exception was thrown. | 259 PASS Exception was thrown. |
214 PASS code is DOMException.INVALID_STATE_ERR | 260 PASS code is DOMException.INVALID_STATE_ERR |
215 PASS ename is 'InvalidStateError' | 261 PASS ename is 'InvalidStateError' |
| 262 Exception message: The index or its object store has been deleted. |
216 Expecting exception from indexOfDeletedStore.getKey(0) | 263 Expecting exception from indexOfDeletedStore.getKey(0) |
217 PASS Exception was thrown. | 264 PASS Exception was thrown. |
218 PASS code is DOMException.INVALID_STATE_ERR | 265 PASS code is DOMException.INVALID_STATE_ERR |
219 PASS ename is 'InvalidStateError' | 266 PASS ename is 'InvalidStateError' |
| 267 Exception message: The index or its object store has been deleted. |
220 Expecting exception from indexOfDeletedStore.getKey(IDBKeyRange.only(0)) | 268 Expecting exception from indexOfDeletedStore.getKey(IDBKeyRange.only(0)) |
221 PASS Exception was thrown. | 269 PASS Exception was thrown. |
222 PASS code is DOMException.INVALID_STATE_ERR | 270 PASS code is DOMException.INVALID_STATE_ERR |
223 PASS ename is 'InvalidStateError' | 271 PASS ename is 'InvalidStateError' |
| 272 Exception message: The index or its object store has been deleted. |
224 Expecting exception from indexOfDeletedStore.count() | 273 Expecting exception from indexOfDeletedStore.count() |
225 PASS Exception was thrown. | 274 PASS Exception was thrown. |
226 PASS code is DOMException.INVALID_STATE_ERR | 275 PASS code is DOMException.INVALID_STATE_ERR |
227 PASS ename is 'InvalidStateError' | 276 PASS ename is 'InvalidStateError' |
| 277 Exception message: The index or its object store has been deleted. |
228 Expecting exception from indexOfDeletedStore.count(0) | 278 Expecting exception from indexOfDeletedStore.count(0) |
229 PASS Exception was thrown. | 279 PASS Exception was thrown. |
230 PASS code is DOMException.INVALID_STATE_ERR | 280 PASS code is DOMException.INVALID_STATE_ERR |
231 PASS ename is 'InvalidStateError' | 281 PASS ename is 'InvalidStateError' |
| 282 Exception message: The index or its object store has been deleted. |
232 Expecting exception from indexOfDeletedStore.count(IDBKeyRange.only(0)) | 283 Expecting exception from indexOfDeletedStore.count(IDBKeyRange.only(0)) |
233 PASS Exception was thrown. | 284 PASS Exception was thrown. |
234 PASS code is DOMException.INVALID_STATE_ERR | 285 PASS code is DOMException.INVALID_STATE_ERR |
235 PASS ename is 'InvalidStateError' | 286 PASS ename is 'InvalidStateError' |
| 287 Exception message: The index or its object store has been deleted. |
236 | 288 |
237 testObjectStoreCursor(): | 289 testObjectStoreCursor(): |
238 deletedStore = connection.createObjectStore('deletedStore') | 290 deletedStore = connection.createObjectStore('deletedStore') |
239 deletedStore.put(0, 0) | 291 deletedStore.put(0, 0) |
240 deletedStore.openCursor() | 292 deletedStore.openCursor() |
241 cursor = request.result | 293 cursor = request.result |
242 PASS cursor.key is 0 | 294 PASS cursor.key is 0 |
243 PASS cursor.value is 0 | 295 PASS cursor.value is 0 |
244 connection.deleteObjectStore('deletedStore') | 296 connection.deleteObjectStore('deletedStore') |
245 Expecting exception from cursor.delete() | 297 Expecting exception from cursor.delete() |
246 PASS Exception was thrown. | 298 PASS Exception was thrown. |
247 PASS code is DOMException.INVALID_STATE_ERR | 299 PASS code is DOMException.INVALID_STATE_ERR |
248 PASS ename is 'InvalidStateError' | 300 PASS ename is 'InvalidStateError' |
| 301 Exception message: The cursor's source or effective object store has been delete
d. |
249 Expecting exception from cursor.update(1) | 302 Expecting exception from cursor.update(1) |
250 PASS Exception was thrown. | 303 PASS Exception was thrown. |
251 PASS code is DOMException.INVALID_STATE_ERR | 304 PASS code is DOMException.INVALID_STATE_ERR |
252 PASS ename is 'InvalidStateError' | 305 PASS ename is 'InvalidStateError' |
| 306 Exception message: The cursor's source or effective object store has been delete
d. |
253 Expecting exception from cursor.continue() | 307 Expecting exception from cursor.continue() |
254 PASS Exception was thrown. | 308 PASS Exception was thrown. |
255 PASS code is DOMException.INVALID_STATE_ERR | 309 PASS code is DOMException.INVALID_STATE_ERR |
256 PASS ename is 'InvalidStateError' | 310 PASS ename is 'InvalidStateError' |
| 311 Exception message: The cursor's source or effective object store has been delete
d. |
257 Expecting exception from cursor.advance(1) | 312 Expecting exception from cursor.advance(1) |
258 PASS Exception was thrown. | 313 PASS Exception was thrown. |
259 PASS code is DOMException.INVALID_STATE_ERR | 314 PASS code is DOMException.INVALID_STATE_ERR |
260 PASS ename is 'InvalidStateError' | 315 PASS ename is 'InvalidStateError' |
| 316 Exception message: The cursor's source or effective object store has been delete
d. |
261 | 317 |
262 testIndexCursor(): | 318 testIndexCursor(): |
263 store.put({id: 123}, 0) | 319 store.put({id: 123}, 0) |
264 deletedIndex = store.createIndex('deletedIndex', 'id') | 320 deletedIndex = store.createIndex('deletedIndex', 'id') |
265 deletedIndex.openCursor() | 321 deletedIndex.openCursor() |
266 cursor = request.result | 322 cursor = request.result |
267 PASS cursor.key is 123 | 323 PASS cursor.key is 123 |
268 PASS cursor.primaryKey is 0 | 324 PASS cursor.primaryKey is 0 |
269 store.deleteIndex('deletedIndex') | 325 store.deleteIndex('deletedIndex') |
270 Expecting exception from cursor.delete() | 326 Expecting exception from cursor.delete() |
271 PASS Exception was thrown. | 327 PASS Exception was thrown. |
272 PASS code is DOMException.INVALID_STATE_ERR | 328 PASS code is DOMException.INVALID_STATE_ERR |
273 PASS ename is 'InvalidStateError' | 329 PASS ename is 'InvalidStateError' |
| 330 Exception message: The cursor's source or effective object store has been delete
d. |
274 Expecting exception from cursor.update(1) | 331 Expecting exception from cursor.update(1) |
275 PASS Exception was thrown. | 332 PASS Exception was thrown. |
276 PASS code is DOMException.INVALID_STATE_ERR | 333 PASS code is DOMException.INVALID_STATE_ERR |
277 PASS ename is 'InvalidStateError' | 334 PASS ename is 'InvalidStateError' |
| 335 Exception message: The cursor's source or effective object store has been delete
d. |
278 Expecting exception from cursor.continue() | 336 Expecting exception from cursor.continue() |
279 PASS Exception was thrown. | 337 PASS Exception was thrown. |
280 PASS code is DOMException.INVALID_STATE_ERR | 338 PASS code is DOMException.INVALID_STATE_ERR |
281 PASS ename is 'InvalidStateError' | 339 PASS ename is 'InvalidStateError' |
| 340 Exception message: The cursor's source or effective object store has been delete
d. |
282 Expecting exception from cursor.advance(1) | 341 Expecting exception from cursor.advance(1) |
283 PASS Exception was thrown. | 342 PASS Exception was thrown. |
284 PASS code is DOMException.INVALID_STATE_ERR | 343 PASS code is DOMException.INVALID_STATE_ERR |
285 PASS ename is 'InvalidStateError' | 344 PASS ename is 'InvalidStateError' |
| 345 Exception message: The cursor's source or effective object store has been delete
d. |
286 | 346 |
287 testIndexOfDeletedStoreCursor(): | 347 testIndexOfDeletedStoreCursor(): |
288 deletedStore = connection.createObjectStore('deletedStore') | 348 deletedStore = connection.createObjectStore('deletedStore') |
289 deletedStore.put({id: 123}, 0) | 349 deletedStore.put({id: 123}, 0) |
290 index = deletedStore.createIndex('index', 'id') | 350 index = deletedStore.createIndex('index', 'id') |
291 index.openCursor() | 351 index.openCursor() |
292 cursor = request.result | 352 cursor = request.result |
293 PASS cursor.key is 123 | 353 PASS cursor.key is 123 |
294 PASS cursor.primaryKey is 0 | 354 PASS cursor.primaryKey is 0 |
295 connection.deleteObjectStore('deletedStore') | 355 connection.deleteObjectStore('deletedStore') |
296 Expecting exception from cursor.delete() | 356 Expecting exception from cursor.delete() |
297 PASS Exception was thrown. | 357 PASS Exception was thrown. |
298 PASS code is DOMException.INVALID_STATE_ERR | 358 PASS code is DOMException.INVALID_STATE_ERR |
299 PASS ename is 'InvalidStateError' | 359 PASS ename is 'InvalidStateError' |
| 360 Exception message: The cursor's source or effective object store has been delete
d. |
300 Expecting exception from cursor.update(1) | 361 Expecting exception from cursor.update(1) |
301 PASS Exception was thrown. | 362 PASS Exception was thrown. |
302 PASS code is DOMException.INVALID_STATE_ERR | 363 PASS code is DOMException.INVALID_STATE_ERR |
303 PASS ename is 'InvalidStateError' | 364 PASS ename is 'InvalidStateError' |
| 365 Exception message: The cursor's source or effective object store has been delete
d. |
304 Expecting exception from cursor.continue() | 366 Expecting exception from cursor.continue() |
305 PASS Exception was thrown. | 367 PASS Exception was thrown. |
306 PASS code is DOMException.INVALID_STATE_ERR | 368 PASS code is DOMException.INVALID_STATE_ERR |
307 PASS ename is 'InvalidStateError' | 369 PASS ename is 'InvalidStateError' |
| 370 Exception message: The cursor's source or effective object store has been delete
d. |
308 Expecting exception from cursor.advance(1) | 371 Expecting exception from cursor.advance(1) |
309 PASS Exception was thrown. | 372 PASS Exception was thrown. |
310 PASS code is DOMException.INVALID_STATE_ERR | 373 PASS code is DOMException.INVALID_STATE_ERR |
311 PASS ename is 'InvalidStateError' | 374 PASS ename is 'InvalidStateError' |
| 375 Exception message: The cursor's source or effective object store has been delete
d. |
312 PASS successfullyParsed is true | 376 PASS successfullyParsed is true |
313 | 377 |
314 TEST COMPLETE | 378 TEST COMPLETE |
315 | 379 |
OLD | NEW |