| OLD | NEW |
| 1 Ensure cursor calls behave as expected after cursor has run to the end. | 1 Ensure cursor calls behave as expected after cursor has run to the end. |
| 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 = "cursor-finished.html" | 6 dbname = "cursor-finished.html" |
| 9 | 7 |
| 10 prepareDatabase(): | 8 prepareDatabase(): |
| 11 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 12 | 10 |
| 13 onDeleteSuccess(): | 11 onDeleteSuccess(): |
| 14 indexedDB.open(dbname, 1) | 12 indexedDB.open(dbname, 1) |
| 15 | 13 |
| 16 onUpgradeNeeded(): | 14 onUpgradeNeeded(): |
| 17 db = event.target.result | 15 db = event.target.result |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 Expecting exception from savedCursor.delete() | 66 Expecting exception from savedCursor.delete() |
| 69 PASS Exception was thrown. | 67 PASS Exception was thrown. |
| 70 PASS code is DOMException.INVALID_STATE_ERR | 68 PASS code is DOMException.INVALID_STATE_ERR |
| 71 PASS ename is 'InvalidStateError' | 69 PASS ename is 'InvalidStateError' |
| 72 Exception message: Failed to execute 'delete' on 'IDBCursor': The cursor is bein
g iterated or has iterated past its end. | 70 Exception message: Failed to execute 'delete' on 'IDBCursor': The cursor is bein
g iterated or has iterated past its end. |
| 73 | 71 |
| 74 PASS successfullyParsed is true | 72 PASS successfullyParsed is true |
| 75 | 73 |
| 76 TEST COMPLETE | 74 TEST COMPLETE |
| 77 | 75 |
| OLD | NEW |