| 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 Exception message: Failed to execute 'put' on 'IDBObjectStore': The object store
has been deleted. |
| 21 Expecting exception from deletedStore.add(0, 0) | 21 Expecting exception from deletedStore.add(0, 0) |
| 22 PASS Exception was thrown. | 22 PASS Exception was thrown. |
| 23 PASS code is DOMException.INVALID_STATE_ERR | 23 PASS code is DOMException.INVALID_STATE_ERR |
| 24 PASS ename is 'InvalidStateError' | 24 PASS ename is 'InvalidStateError' |
| 25 Exception message: The object store has been deleted. | 25 Exception message: Failed to execute 'add' on 'IDBObjectStore': The object store
has been deleted. |
| 26 Expecting exception from deletedStore.delete(0) | 26 Expecting exception from deletedStore.delete(0) |
| 27 PASS Exception was thrown. | 27 PASS Exception was thrown. |
| 28 PASS code is DOMException.INVALID_STATE_ERR | 28 PASS code is DOMException.INVALID_STATE_ERR |
| 29 PASS ename is 'InvalidStateError' | 29 PASS ename is 'InvalidStateError' |
| 30 Exception message: The object store has been deleted. | 30 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The object st
ore has been deleted. |
| 31 Expecting exception from deletedStore.delete(IDBKeyRange.only(0)) | 31 Expecting exception from deletedStore.delete(IDBKeyRange.only(0)) |
| 32 PASS Exception was thrown. | 32 PASS Exception was thrown. |
| 33 PASS code is DOMException.INVALID_STATE_ERR | 33 PASS code is DOMException.INVALID_STATE_ERR |
| 34 PASS ename is 'InvalidStateError' | 34 PASS ename is 'InvalidStateError' |
| 35 Exception message: The object store has been deleted. | 35 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The object st
ore has been deleted. |
| 36 Expecting exception from deletedStore.get(0) | 36 Expecting exception from deletedStore.get(0) |
| 37 PASS Exception was thrown. | 37 PASS Exception was thrown. |
| 38 PASS code is DOMException.INVALID_STATE_ERR | 38 PASS code is DOMException.INVALID_STATE_ERR |
| 39 PASS ename is 'InvalidStateError' | 39 PASS ename is 'InvalidStateError' |
| 40 Exception message: The object store has been deleted. | 40 Exception message: Failed to execute 'get' on 'IDBObjectStore': The object store
has been deleted. |
| 41 Expecting exception from deletedStore.get(IDBKeyRange.only(0)) | 41 Expecting exception from deletedStore.get(IDBKeyRange.only(0)) |
| 42 PASS Exception was thrown. | 42 PASS Exception was thrown. |
| 43 PASS code is DOMException.INVALID_STATE_ERR | 43 PASS code is DOMException.INVALID_STATE_ERR |
| 44 PASS ename is 'InvalidStateError' | 44 PASS ename is 'InvalidStateError' |
| 45 Exception message: The object store has been deleted. | 45 Exception message: Failed to execute 'get' on 'IDBObjectStore': The object store
has been deleted. |
| 46 Expecting exception from deletedStore.clear() | 46 Expecting exception from deletedStore.clear() |
| 47 PASS Exception was thrown. | 47 PASS Exception was thrown. |
| 48 PASS code is DOMException.INVALID_STATE_ERR | 48 PASS code is DOMException.INVALID_STATE_ERR |
| 49 PASS ename is 'InvalidStateError' | 49 PASS ename is 'InvalidStateError' |
| 50 Exception message: The object store has been deleted. | 50 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The object sto
re has been deleted. |
| 51 Expecting exception from deletedStore.openCursor() | 51 Expecting exception from deletedStore.openCursor() |
| 52 PASS Exception was thrown. | 52 PASS Exception was thrown. |
| 53 PASS code is DOMException.INVALID_STATE_ERR | 53 PASS code is DOMException.INVALID_STATE_ERR |
| 54 PASS ename is 'InvalidStateError' | 54 PASS ename is 'InvalidStateError' |
| 55 Exception message: The object store has been deleted. | 55 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The objec
t store has been deleted. |
| 56 Expecting exception from deletedStore.openCursor(0) | 56 Expecting exception from deletedStore.openCursor(0) |
| 57 PASS Exception was thrown. | 57 PASS Exception was thrown. |
| 58 PASS code is DOMException.INVALID_STATE_ERR | 58 PASS code is DOMException.INVALID_STATE_ERR |
| 59 PASS ename is 'InvalidStateError' | 59 PASS ename is 'InvalidStateError' |
| 60 Exception message: The object store has been deleted. | 60 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The objec
t store has been deleted. |
| 61 Expecting exception from deletedStore.openCursor(0, 'next') | 61 Expecting exception from deletedStore.openCursor(0, 'next') |
| 62 PASS Exception was thrown. | 62 PASS Exception was thrown. |
| 63 PASS code is DOMException.INVALID_STATE_ERR | 63 PASS code is DOMException.INVALID_STATE_ERR |
| 64 PASS ename is 'InvalidStateError' | 64 PASS ename is 'InvalidStateError' |
| 65 Exception message: The object store has been deleted. | 65 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The objec
t store has been deleted. |
| 66 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0)) | 66 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0)) |
| 67 PASS Exception was thrown. | 67 PASS Exception was thrown. |
| 68 PASS code is DOMException.INVALID_STATE_ERR | 68 PASS code is DOMException.INVALID_STATE_ERR |
| 69 PASS ename is 'InvalidStateError' | 69 PASS ename is 'InvalidStateError' |
| 70 Exception message: The object store has been deleted. | 70 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The objec
t store has been deleted. |
| 71 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0), 'next') | 71 Expecting exception from deletedStore.openCursor(IDBKeyRange.only(0), 'next') |
| 72 PASS Exception was thrown. | 72 PASS Exception was thrown. |
| 73 PASS code is DOMException.INVALID_STATE_ERR | 73 PASS code is DOMException.INVALID_STATE_ERR |
| 74 PASS ename is 'InvalidStateError' | 74 PASS ename is 'InvalidStateError' |
| 75 Exception message: The object store has been deleted. | 75 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The objec
t store has been deleted. |
| 76 Expecting exception from deletedStore.openKeyCursor() | 76 Expecting exception from deletedStore.openKeyCursor() |
| 77 PASS Exception was thrown. | 77 PASS Exception was thrown. |
| 78 PASS code is DOMException.INVALID_STATE_ERR | 78 PASS code is DOMException.INVALID_STATE_ERR |
| 79 PASS ename is 'InvalidStateError' | 79 PASS ename is 'InvalidStateError' |
| 80 Exception message: The object store has been deleted. | 80 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The ob
ject store has been deleted. |
| 81 Expecting exception from deletedStore.openKeyCursor(0) | 81 Expecting exception from deletedStore.openKeyCursor(0) |
| 82 PASS Exception was thrown. | 82 PASS Exception was thrown. |
| 83 PASS code is DOMException.INVALID_STATE_ERR | 83 PASS code is DOMException.INVALID_STATE_ERR |
| 84 PASS ename is 'InvalidStateError' | 84 PASS ename is 'InvalidStateError' |
| 85 Exception message: The object store has been deleted. | 85 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The ob
ject store has been deleted. |
| 86 Expecting exception from deletedStore.openKeyCursor(0, 'next') | 86 Expecting exception from deletedStore.openKeyCursor(0, 'next') |
| 87 PASS Exception was thrown. | 87 PASS Exception was thrown. |
| 88 PASS code is DOMException.INVALID_STATE_ERR | 88 PASS code is DOMException.INVALID_STATE_ERR |
| 89 PASS ename is 'InvalidStateError' | 89 PASS ename is 'InvalidStateError' |
| 90 Exception message: The object store has been deleted. | 90 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The ob
ject store has been deleted. |
| 91 Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0)) | 91 Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0)) |
| 92 PASS Exception was thrown. | 92 PASS Exception was thrown. |
| 93 PASS code is DOMException.INVALID_STATE_ERR | 93 PASS code is DOMException.INVALID_STATE_ERR |
| 94 PASS ename is 'InvalidStateError' | 94 PASS ename is 'InvalidStateError' |
| 95 Exception message: The object store has been deleted. | 95 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The ob
ject store has been deleted. |
| 96 Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0), 'next') | 96 Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0), 'next') |
| 97 PASS Exception was thrown. | 97 PASS Exception was thrown. |
| 98 PASS code is DOMException.INVALID_STATE_ERR | 98 PASS code is DOMException.INVALID_STATE_ERR |
| 99 PASS ename is 'InvalidStateError' | 99 PASS ename is 'InvalidStateError' |
| 100 Exception message: The object store has been deleted. | 100 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The ob
ject store has been deleted. |
| 101 Expecting exception from deletedStore.createIndex('name', 'path') | 101 Expecting exception from deletedStore.createIndex('name', 'path') |
| 102 PASS Exception was thrown. | 102 PASS Exception was thrown. |
| 103 PASS code is DOMException.INVALID_STATE_ERR | 103 PASS code is DOMException.INVALID_STATE_ERR |
| 104 PASS ename is 'InvalidStateError' | 104 PASS ename is 'InvalidStateError' |
| 105 Exception message: The object store has been deleted. | 105 Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The obje
ct store has been deleted. |
| 106 Expecting exception from deletedStore.index('name') | 106 Expecting exception from deletedStore.index('name') |
| 107 PASS Exception was thrown. | 107 PASS Exception was thrown. |
| 108 PASS code is DOMException.INVALID_STATE_ERR | 108 PASS code is DOMException.INVALID_STATE_ERR |
| 109 PASS ename is 'InvalidStateError' | 109 PASS ename is 'InvalidStateError' |
| 110 Exception message: The object store has been deleted. | 110 Exception message: Failed to execute 'index' on 'IDBObjectStore': The object sto
re has been deleted. |
| 111 Expecting exception from deletedStore.deleteIndex('name') | 111 Expecting exception from deletedStore.deleteIndex('name') |
| 112 PASS Exception was thrown. | 112 PASS Exception was thrown. |
| 113 PASS code is DOMException.INVALID_STATE_ERR | 113 PASS code is DOMException.INVALID_STATE_ERR |
| 114 PASS ename is 'InvalidStateError' | 114 PASS ename is 'InvalidStateError' |
| 115 Exception message: The object store has been deleted. | 115 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The obje
ct store has been deleted. |
| 116 Expecting exception from deletedStore.count() | 116 Expecting exception from deletedStore.count() |
| 117 PASS Exception was thrown. | 117 PASS Exception was thrown. |
| 118 PASS code is DOMException.INVALID_STATE_ERR | 118 PASS code is DOMException.INVALID_STATE_ERR |
| 119 PASS ename is 'InvalidStateError' | 119 PASS ename is 'InvalidStateError' |
| 120 Exception message: The object store has been deleted. | 120 Exception message: Failed to execute 'count' on 'IDBObjectStore': The object sto
re has been deleted. |
| 121 Expecting exception from deletedStore.count(0) | 121 Expecting exception from deletedStore.count(0) |
| 122 PASS Exception was thrown. | 122 PASS Exception was thrown. |
| 123 PASS code is DOMException.INVALID_STATE_ERR | 123 PASS code is DOMException.INVALID_STATE_ERR |
| 124 PASS ename is 'InvalidStateError' | 124 PASS ename is 'InvalidStateError' |
| 125 Exception message: The object store has been deleted. | 125 Exception message: Failed to execute 'count' on 'IDBObjectStore': The object sto
re has been deleted. |
| 126 Expecting exception from deletedStore.count(IDBKeyRange.only(0)) | 126 Expecting exception from deletedStore.count(IDBKeyRange.only(0)) |
| 127 PASS Exception was thrown. | 127 PASS Exception was thrown. |
| 128 PASS code is DOMException.INVALID_STATE_ERR | 128 PASS code is DOMException.INVALID_STATE_ERR |
| 129 PASS ename is 'InvalidStateError' | 129 PASS ename is 'InvalidStateError' |
| 130 Exception message: The object store has been deleted. | 130 Exception message: Failed to execute 'count' on 'IDBObjectStore': The object sto
re has been deleted. |
| 131 | 131 |
| 132 testIndex(): | 132 testIndex(): |
| 133 store = connection.createObjectStore('store') | 133 store = connection.createObjectStore('store') |
| 134 deletedIndex = store.createIndex('deletedIndex', 'path') | 134 deletedIndex = store.createIndex('deletedIndex', 'path') |
| 135 store.deleteIndex('deletedIndex') | 135 store.deleteIndex('deletedIndex') |
| 136 | 136 |
| 137 Expecting exception from deletedIndex.openCursor() | 137 Expecting exception from deletedIndex.openCursor() |
| 138 PASS Exception was thrown. | 138 PASS Exception was thrown. |
| 139 PASS code is DOMException.INVALID_STATE_ERR | 139 PASS code is DOMException.INVALID_STATE_ERR |
| 140 PASS ename is 'InvalidStateError' | 140 PASS ename is 'InvalidStateError' |
| 141 Exception message: The index or its object store has been deleted. | 141 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 142 Expecting exception from deletedIndex.openCursor(0) | 142 Expecting exception from deletedIndex.openCursor(0) |
| 143 PASS Exception was thrown. | 143 PASS Exception was thrown. |
| 144 PASS code is DOMException.INVALID_STATE_ERR | 144 PASS code is DOMException.INVALID_STATE_ERR |
| 145 PASS ename is 'InvalidStateError' | 145 PASS ename is 'InvalidStateError' |
| 146 Exception message: The index or its object store has been deleted. | 146 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 147 Expecting exception from deletedIndex.openCursor(0, 'next') | 147 Expecting exception from deletedIndex.openCursor(0, 'next') |
| 148 PASS Exception was thrown. | 148 PASS Exception was thrown. |
| 149 PASS code is DOMException.INVALID_STATE_ERR | 149 PASS code is DOMException.INVALID_STATE_ERR |
| 150 PASS ename is 'InvalidStateError' | 150 PASS ename is 'InvalidStateError' |
| 151 Exception message: The index or its object store has been deleted. | 151 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 152 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0)) | 152 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0)) |
| 153 PASS Exception was thrown. | 153 PASS Exception was thrown. |
| 154 PASS code is DOMException.INVALID_STATE_ERR | 154 PASS code is DOMException.INVALID_STATE_ERR |
| 155 PASS ename is 'InvalidStateError' | 155 PASS ename is 'InvalidStateError' |
| 156 Exception message: The index or its object store has been deleted. | 156 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 157 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0), 'next') | 157 Expecting exception from deletedIndex.openCursor(IDBKeyRange.only(0), 'next') |
| 158 PASS Exception was thrown. | 158 PASS Exception was thrown. |
| 159 PASS code is DOMException.INVALID_STATE_ERR | 159 PASS code is DOMException.INVALID_STATE_ERR |
| 160 PASS ename is 'InvalidStateError' | 160 PASS ename is 'InvalidStateError' |
| 161 Exception message: The index or its object store has been deleted. | 161 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 162 Expecting exception from deletedIndex.openKeyCursor() | 162 Expecting exception from deletedIndex.openKeyCursor() |
| 163 PASS Exception was thrown. | 163 PASS Exception was thrown. |
| 164 PASS code is DOMException.INVALID_STATE_ERR | 164 PASS code is DOMException.INVALID_STATE_ERR |
| 165 PASS ename is 'InvalidStateError' | 165 PASS ename is 'InvalidStateError' |
| 166 Exception message: The index or its object store has been deleted. | 166 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 167 Expecting exception from deletedIndex.openKeyCursor(0) | 167 Expecting exception from deletedIndex.openKeyCursor(0) |
| 168 PASS Exception was thrown. | 168 PASS Exception was thrown. |
| 169 PASS code is DOMException.INVALID_STATE_ERR | 169 PASS code is DOMException.INVALID_STATE_ERR |
| 170 PASS ename is 'InvalidStateError' | 170 PASS ename is 'InvalidStateError' |
| 171 Exception message: The index or its object store has been deleted. | 171 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 172 Expecting exception from deletedIndex.openKeyCursor(0, 'next') | 172 Expecting exception from deletedIndex.openKeyCursor(0, 'next') |
| 173 PASS Exception was thrown. | 173 PASS Exception was thrown. |
| 174 PASS code is DOMException.INVALID_STATE_ERR | 174 PASS code is DOMException.INVALID_STATE_ERR |
| 175 PASS ename is 'InvalidStateError' | 175 PASS ename is 'InvalidStateError' |
| 176 Exception message: The index or its object store has been deleted. | 176 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 177 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0)) | 177 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0)) |
| 178 PASS Exception was thrown. | 178 PASS Exception was thrown. |
| 179 PASS code is DOMException.INVALID_STATE_ERR | 179 PASS code is DOMException.INVALID_STATE_ERR |
| 180 PASS ename is 'InvalidStateError' | 180 PASS ename is 'InvalidStateError' |
| 181 Exception message: The index or its object store has been deleted. | 181 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 182 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0), 'next') | 182 Expecting exception from deletedIndex.openKeyCursor(IDBKeyRange.only(0), 'next') |
| 183 PASS Exception was thrown. | 183 PASS Exception was thrown. |
| 184 PASS code is DOMException.INVALID_STATE_ERR | 184 PASS code is DOMException.INVALID_STATE_ERR |
| 185 PASS ename is 'InvalidStateError' | 185 PASS ename is 'InvalidStateError' |
| 186 Exception message: The index or its object store has been deleted. | 186 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 187 Expecting exception from deletedIndex.get(0) | 187 Expecting exception from deletedIndex.get(0) |
| 188 PASS Exception was thrown. | 188 PASS Exception was thrown. |
| 189 PASS code is DOMException.INVALID_STATE_ERR | 189 PASS code is DOMException.INVALID_STATE_ERR |
| 190 PASS ename is 'InvalidStateError' | 190 PASS ename is 'InvalidStateError' |
| 191 Exception message: The index or its object store has been deleted. | 191 Exception message: Failed to execute 'get' on 'IDBIndex': The index or its objec
t store has been deleted. |
| 192 Expecting exception from deletedIndex.get(IDBKeyRange.only(0)) | 192 Expecting exception from deletedIndex.get(IDBKeyRange.only(0)) |
| 193 PASS Exception was thrown. | 193 PASS Exception was thrown. |
| 194 PASS code is DOMException.INVALID_STATE_ERR | 194 PASS code is DOMException.INVALID_STATE_ERR |
| 195 PASS ename is 'InvalidStateError' | 195 PASS ename is 'InvalidStateError' |
| 196 Exception message: The index or its object store has been deleted. | 196 Exception message: Failed to execute 'get' on 'IDBIndex': The index or its objec
t store has been deleted. |
| 197 Expecting exception from deletedIndex.getKey(0) | 197 Expecting exception from deletedIndex.getKey(0) |
| 198 PASS Exception was thrown. | 198 PASS Exception was thrown. |
| 199 PASS code is DOMException.INVALID_STATE_ERR | 199 PASS code is DOMException.INVALID_STATE_ERR |
| 200 PASS ename is 'InvalidStateError' | 200 PASS ename is 'InvalidStateError' |
| 201 Exception message: The index or its object store has been deleted. | 201 Exception message: Failed to execute 'getKey' on 'IDBIndex': The index or its ob
ject store has been deleted. |
| 202 Expecting exception from deletedIndex.getKey(IDBKeyRange.only(0)) | 202 Expecting exception from deletedIndex.getKey(IDBKeyRange.only(0)) |
| 203 PASS Exception was thrown. | 203 PASS Exception was thrown. |
| 204 PASS code is DOMException.INVALID_STATE_ERR | 204 PASS code is DOMException.INVALID_STATE_ERR |
| 205 PASS ename is 'InvalidStateError' | 205 PASS ename is 'InvalidStateError' |
| 206 Exception message: The index or its object store has been deleted. | 206 Exception message: Failed to execute 'getKey' on 'IDBIndex': The index or its ob
ject store has been deleted. |
| 207 Expecting exception from deletedIndex.count() | 207 Expecting exception from deletedIndex.count() |
| 208 PASS Exception was thrown. | 208 PASS Exception was thrown. |
| 209 PASS code is DOMException.INVALID_STATE_ERR | 209 PASS code is DOMException.INVALID_STATE_ERR |
| 210 PASS ename is 'InvalidStateError' | 210 PASS ename is 'InvalidStateError' |
| 211 Exception message: The index or its object store has been deleted. | 211 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 212 Expecting exception from deletedIndex.count(0) | 212 Expecting exception from deletedIndex.count(0) |
| 213 PASS Exception was thrown. | 213 PASS Exception was thrown. |
| 214 PASS code is DOMException.INVALID_STATE_ERR | 214 PASS code is DOMException.INVALID_STATE_ERR |
| 215 PASS ename is 'InvalidStateError' | 215 PASS ename is 'InvalidStateError' |
| 216 Exception message: The index or its object store has been deleted. | 216 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 217 Expecting exception from deletedIndex.count(IDBKeyRange.only(0)) | 217 Expecting exception from deletedIndex.count(IDBKeyRange.only(0)) |
| 218 PASS Exception was thrown. | 218 PASS Exception was thrown. |
| 219 PASS code is DOMException.INVALID_STATE_ERR | 219 PASS code is DOMException.INVALID_STATE_ERR |
| 220 PASS ename is 'InvalidStateError' | 220 PASS ename is 'InvalidStateError' |
| 221 Exception message: The index or its object store has been deleted. | 221 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 222 | 222 |
| 223 testTransitiveDeletion(): | 223 testTransitiveDeletion(): |
| 224 deletedStore = connection.createObjectStore('deletedStore') | 224 deletedStore = connection.createObjectStore('deletedStore') |
| 225 indexOfDeletedStore = deletedStore.createIndex('index', 'path') | 225 indexOfDeletedStore = deletedStore.createIndex('index', 'path') |
| 226 connection.deleteObjectStore('deletedStore') | 226 connection.deleteObjectStore('deletedStore') |
| 227 | 227 |
| 228 Expecting exception from indexOfDeletedStore.openCursor() | 228 Expecting exception from indexOfDeletedStore.openCursor() |
| 229 PASS Exception was thrown. | 229 PASS Exception was thrown. |
| 230 PASS code is DOMException.INVALID_STATE_ERR | 230 PASS code is DOMException.INVALID_STATE_ERR |
| 231 PASS ename is 'InvalidStateError' | 231 PASS ename is 'InvalidStateError' |
| 232 Exception message: The index or its object store has been deleted. | 232 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 233 Expecting exception from indexOfDeletedStore.openCursor(0) | 233 Expecting exception from indexOfDeletedStore.openCursor(0) |
| 234 PASS Exception was thrown. | 234 PASS Exception was thrown. |
| 235 PASS code is DOMException.INVALID_STATE_ERR | 235 PASS code is DOMException.INVALID_STATE_ERR |
| 236 PASS ename is 'InvalidStateError' | 236 PASS ename is 'InvalidStateError' |
| 237 Exception message: The index or its object store has been deleted. | 237 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 238 Expecting exception from indexOfDeletedStore.openCursor(0, 'next') | 238 Expecting exception from indexOfDeletedStore.openCursor(0, 'next') |
| 239 PASS Exception was thrown. | 239 PASS Exception was thrown. |
| 240 PASS code is DOMException.INVALID_STATE_ERR | 240 PASS code is DOMException.INVALID_STATE_ERR |
| 241 PASS ename is 'InvalidStateError' | 241 PASS ename is 'InvalidStateError' |
| 242 Exception message: The index or its object store has been deleted. | 242 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 243 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0)) | 243 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0)) |
| 244 PASS Exception was thrown. | 244 PASS Exception was thrown. |
| 245 PASS code is DOMException.INVALID_STATE_ERR | 245 PASS code is DOMException.INVALID_STATE_ERR |
| 246 PASS ename is 'InvalidStateError' | 246 PASS ename is 'InvalidStateError' |
| 247 Exception message: The index or its object store has been deleted. | 247 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 248 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0), 'ne
xt') | 248 Expecting exception from indexOfDeletedStore.openCursor(IDBKeyRange.only(0), 'ne
xt') |
| 249 PASS Exception was thrown. | 249 PASS Exception was thrown. |
| 250 PASS code is DOMException.INVALID_STATE_ERR | 250 PASS code is DOMException.INVALID_STATE_ERR |
| 251 PASS ename is 'InvalidStateError' | 251 PASS ename is 'InvalidStateError' |
| 252 Exception message: The index or its object store has been deleted. | 252 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The index or it
s object store has been deleted. |
| 253 Expecting exception from indexOfDeletedStore.openKeyCursor() | 253 Expecting exception from indexOfDeletedStore.openKeyCursor() |
| 254 PASS Exception was thrown. | 254 PASS Exception was thrown. |
| 255 PASS code is DOMException.INVALID_STATE_ERR | 255 PASS code is DOMException.INVALID_STATE_ERR |
| 256 PASS ename is 'InvalidStateError' | 256 PASS ename is 'InvalidStateError' |
| 257 Exception message: The index or its object store has been deleted. | 257 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 258 Expecting exception from indexOfDeletedStore.openKeyCursor(0) | 258 Expecting exception from indexOfDeletedStore.openKeyCursor(0) |
| 259 PASS Exception was thrown. | 259 PASS Exception was thrown. |
| 260 PASS code is DOMException.INVALID_STATE_ERR | 260 PASS code is DOMException.INVALID_STATE_ERR |
| 261 PASS ename is 'InvalidStateError' | 261 PASS ename is 'InvalidStateError' |
| 262 Exception message: The index or its object store has been deleted. | 262 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 263 Expecting exception from indexOfDeletedStore.openKeyCursor(0, 'next') | 263 Expecting exception from indexOfDeletedStore.openKeyCursor(0, 'next') |
| 264 PASS Exception was thrown. | 264 PASS Exception was thrown. |
| 265 PASS code is DOMException.INVALID_STATE_ERR | 265 PASS code is DOMException.INVALID_STATE_ERR |
| 266 PASS ename is 'InvalidStateError' | 266 PASS ename is 'InvalidStateError' |
| 267 Exception message: The index or its object store has been deleted. | 267 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 268 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0)) | 268 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0)) |
| 269 PASS Exception was thrown. | 269 PASS Exception was thrown. |
| 270 PASS code is DOMException.INVALID_STATE_ERR | 270 PASS code is DOMException.INVALID_STATE_ERR |
| 271 PASS ename is 'InvalidStateError' | 271 PASS ename is 'InvalidStateError' |
| 272 Exception message: The index or its object store has been deleted. | 272 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 273 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0),
'next') | 273 Expecting exception from indexOfDeletedStore.openKeyCursor(IDBKeyRange.only(0),
'next') |
| 274 PASS Exception was thrown. | 274 PASS Exception was thrown. |
| 275 PASS code is DOMException.INVALID_STATE_ERR | 275 PASS code is DOMException.INVALID_STATE_ERR |
| 276 PASS ename is 'InvalidStateError' | 276 PASS ename is 'InvalidStateError' |
| 277 Exception message: The index or its object store has been deleted. | 277 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The index or
its object store has been deleted. |
| 278 Expecting exception from indexOfDeletedStore.get(0) | 278 Expecting exception from indexOfDeletedStore.get(0) |
| 279 PASS Exception was thrown. | 279 PASS Exception was thrown. |
| 280 PASS code is DOMException.INVALID_STATE_ERR | 280 PASS code is DOMException.INVALID_STATE_ERR |
| 281 PASS ename is 'InvalidStateError' | 281 PASS ename is 'InvalidStateError' |
| 282 Exception message: The index or its object store has been deleted. | 282 Exception message: Failed to execute 'get' on 'IDBIndex': The index or its objec
t store has been deleted. |
| 283 Expecting exception from indexOfDeletedStore.get(IDBKeyRange.only(0)) | 283 Expecting exception from indexOfDeletedStore.get(IDBKeyRange.only(0)) |
| 284 PASS Exception was thrown. | 284 PASS Exception was thrown. |
| 285 PASS code is DOMException.INVALID_STATE_ERR | 285 PASS code is DOMException.INVALID_STATE_ERR |
| 286 PASS ename is 'InvalidStateError' | 286 PASS ename is 'InvalidStateError' |
| 287 Exception message: The index or its object store has been deleted. | 287 Exception message: Failed to execute 'get' on 'IDBIndex': The index or its objec
t store has been deleted. |
| 288 Expecting exception from indexOfDeletedStore.getKey(0) | 288 Expecting exception from indexOfDeletedStore.getKey(0) |
| 289 PASS Exception was thrown. | 289 PASS Exception was thrown. |
| 290 PASS code is DOMException.INVALID_STATE_ERR | 290 PASS code is DOMException.INVALID_STATE_ERR |
| 291 PASS ename is 'InvalidStateError' | 291 PASS ename is 'InvalidStateError' |
| 292 Exception message: The index or its object store has been deleted. | 292 Exception message: Failed to execute 'getKey' on 'IDBIndex': The index or its ob
ject store has been deleted. |
| 293 Expecting exception from indexOfDeletedStore.getKey(IDBKeyRange.only(0)) | 293 Expecting exception from indexOfDeletedStore.getKey(IDBKeyRange.only(0)) |
| 294 PASS Exception was thrown. | 294 PASS Exception was thrown. |
| 295 PASS code is DOMException.INVALID_STATE_ERR | 295 PASS code is DOMException.INVALID_STATE_ERR |
| 296 PASS ename is 'InvalidStateError' | 296 PASS ename is 'InvalidStateError' |
| 297 Exception message: The index or its object store has been deleted. | 297 Exception message: Failed to execute 'getKey' on 'IDBIndex': The index or its ob
ject store has been deleted. |
| 298 Expecting exception from indexOfDeletedStore.count() | 298 Expecting exception from indexOfDeletedStore.count() |
| 299 PASS Exception was thrown. | 299 PASS Exception was thrown. |
| 300 PASS code is DOMException.INVALID_STATE_ERR | 300 PASS code is DOMException.INVALID_STATE_ERR |
| 301 PASS ename is 'InvalidStateError' | 301 PASS ename is 'InvalidStateError' |
| 302 Exception message: The index or its object store has been deleted. | 302 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 303 Expecting exception from indexOfDeletedStore.count(0) | 303 Expecting exception from indexOfDeletedStore.count(0) |
| 304 PASS Exception was thrown. | 304 PASS Exception was thrown. |
| 305 PASS code is DOMException.INVALID_STATE_ERR | 305 PASS code is DOMException.INVALID_STATE_ERR |
| 306 PASS ename is 'InvalidStateError' | 306 PASS ename is 'InvalidStateError' |
| 307 Exception message: The index or its object store has been deleted. | 307 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 308 Expecting exception from indexOfDeletedStore.count(IDBKeyRange.only(0)) | 308 Expecting exception from indexOfDeletedStore.count(IDBKeyRange.only(0)) |
| 309 PASS Exception was thrown. | 309 PASS Exception was thrown. |
| 310 PASS code is DOMException.INVALID_STATE_ERR | 310 PASS code is DOMException.INVALID_STATE_ERR |
| 311 PASS ename is 'InvalidStateError' | 311 PASS ename is 'InvalidStateError' |
| 312 Exception message: The index or its object store has been deleted. | 312 Exception message: Failed to execute 'count' on 'IDBIndex': The index or its obj
ect store has been deleted. |
| 313 | 313 |
| 314 testObjectStoreCursor(): | 314 testObjectStoreCursor(): |
| 315 deletedStore = connection.createObjectStore('deletedStore') | 315 deletedStore = connection.createObjectStore('deletedStore') |
| 316 deletedStore.put(0, 0) | 316 deletedStore.put(0, 0) |
| 317 deletedStore.openCursor() | 317 deletedStore.openCursor() |
| 318 cursor = request.result | 318 cursor = request.result |
| 319 PASS cursor.key is 0 | 319 PASS cursor.key is 0 |
| 320 PASS cursor.value is 0 | 320 PASS cursor.value is 0 |
| 321 connection.deleteObjectStore('deletedStore') | 321 connection.deleteObjectStore('deletedStore') |
| 322 Expecting exception from cursor.delete() | 322 Expecting exception from cursor.delete() |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 Exception message: Failed to execute 'continue' on 'IDBCursor': The cursor's sou
rce or effective object store has been deleted. | 395 Exception message: Failed to execute 'continue' on 'IDBCursor': The cursor's sou
rce or effective object store has been deleted. |
| 396 Expecting exception from cursor.advance(1) | 396 Expecting exception from cursor.advance(1) |
| 397 PASS Exception was thrown. | 397 PASS Exception was thrown. |
| 398 PASS code is DOMException.INVALID_STATE_ERR | 398 PASS code is DOMException.INVALID_STATE_ERR |
| 399 PASS ename is 'InvalidStateError' | 399 PASS ename is 'InvalidStateError' |
| 400 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor's sour
ce or effective object store has been deleted. | 400 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor's sour
ce or effective object store has been deleted. |
| 401 PASS successfullyParsed is true | 401 PASS successfullyParsed is true |
| 402 | 402 |
| 403 TEST COMPLETE | 403 TEST COMPLETE |
| 404 | 404 |
| OLD | NEW |