| 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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
| 7 | 7 |
| 8 dbname = "cursor-finished.html" | 8 dbname = "cursor-finished.html" |
| 9 | 9 |
| 10 prepareDatabase(): | 10 prepareDatabase(): |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 onCursorSuccess(): | 43 onCursorSuccess(): |
| 44 cursor = event.target.result | 44 cursor = event.target.result |
| 45 PASS cursor is null | 45 PASS cursor is null |
| 46 PASS savedCursor is non-null. | 46 PASS savedCursor is non-null. |
| 47 | 47 |
| 48 Expecting exception from savedCursor.update('value') | 48 Expecting exception from savedCursor.update('value') |
| 49 PASS Exception was thrown. | 49 PASS Exception was thrown. |
| 50 PASS code is DOMException.INVALID_STATE_ERR | 50 PASS code is DOMException.INVALID_STATE_ERR |
| 51 PASS ename is 'InvalidStateError' | 51 PASS ename is 'InvalidStateError' |
| 52 Exception message: The cursor is being iterated or has iterated past its end. |
| 52 Expecting exception from savedCursor.advance(1) | 53 Expecting exception from savedCursor.advance(1) |
| 53 PASS Exception was thrown. | 54 PASS Exception was thrown. |
| 54 PASS code is DOMException.INVALID_STATE_ERR | 55 PASS code is DOMException.INVALID_STATE_ERR |
| 55 PASS ename is 'InvalidStateError' | 56 PASS ename is 'InvalidStateError' |
| 57 Exception message: The cursor is being iterated or has iterated past its end. |
| 56 Expecting exception from savedCursor.continue() | 58 Expecting exception from savedCursor.continue() |
| 57 PASS Exception was thrown. | 59 PASS Exception was thrown. |
| 58 PASS code is DOMException.INVALID_STATE_ERR | 60 PASS code is DOMException.INVALID_STATE_ERR |
| 59 PASS ename is 'InvalidStateError' | 61 PASS ename is 'InvalidStateError' |
| 62 Exception message: The cursor is being iterated or has iterated past its end. |
| 60 Expecting exception from savedCursor.continue('key') | 63 Expecting exception from savedCursor.continue('key') |
| 61 PASS Exception was thrown. | 64 PASS Exception was thrown. |
| 62 PASS code is DOMException.INVALID_STATE_ERR | 65 PASS code is DOMException.INVALID_STATE_ERR |
| 63 PASS ename is 'InvalidStateError' | 66 PASS ename is 'InvalidStateError' |
| 67 Exception message: The cursor is being iterated or has iterated past its end. |
| 64 Expecting exception from savedCursor.delete() | 68 Expecting exception from savedCursor.delete() |
| 65 PASS Exception was thrown. | 69 PASS Exception was thrown. |
| 66 PASS code is DOMException.INVALID_STATE_ERR | 70 PASS code is DOMException.INVALID_STATE_ERR |
| 67 PASS ename is 'InvalidStateError' | 71 PASS ename is 'InvalidStateError' |
| 72 Exception message: The cursor is being iterated or has iterated past its end. |
| 68 | 73 |
| 69 PASS successfullyParsed is true | 74 PASS successfullyParsed is true |
| 70 | 75 |
| 71 TEST COMPLETE | 76 TEST COMPLETE |
| 72 | 77 |
| OLD | NEW |