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; | |
7 | |
8 dbname = "deleted-objects.html" | 6 dbname = "deleted-objects.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 | 9 |
12 testStore(): | 10 testStore(): |
13 deletedStore = connection.createObjectStore('deletedStore') | 11 deletedStore = connection.createObjectStore('deletedStore') |
14 connection.deleteObjectStore('deletedStore') | 12 connection.deleteObjectStore('deletedStore') |
15 | 13 |
16 Expecting exception from deletedStore.put(0, 0) | 14 Expecting exception from deletedStore.put(0, 0) |
17 PASS Exception was thrown. | 15 PASS Exception was thrown. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 Exception message: Failed to execute 'continue' on 'IDBCursor': The cursor's sou
rce or effective object store has been deleted. | 443 Exception message: Failed to execute 'continue' on 'IDBCursor': The cursor's sou
rce or effective object store has been deleted. |
446 Expecting exception from cursor.advance(1) | 444 Expecting exception from cursor.advance(1) |
447 PASS Exception was thrown. | 445 PASS Exception was thrown. |
448 PASS code is DOMException.INVALID_STATE_ERR | 446 PASS code is DOMException.INVALID_STATE_ERR |
449 PASS ename is 'InvalidStateError' | 447 PASS ename is 'InvalidStateError' |
450 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor's sour
ce or effective object store has been deleted. | 448 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor's sour
ce or effective object store has been deleted. |
451 PASS successfullyParsed is true | 449 PASS successfullyParsed is true |
452 | 450 |
453 TEST COMPLETE | 451 TEST COMPLETE |
454 | 452 |
OLD | NEW |