| OLD | NEW |
| 1 Test that continue() calls against cursors are validated by direction. | 1 Test that continue() calls against cursors are validated by direction. |
| 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-continue-dir.html" | 6 dbname = "cursor-continue-dir.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
| 12 store.put(1,1) | 10 store.put(1,1) |
| 13 store.put(2,2) | 11 store.put(2,2) |
| 14 store.put(3,3) | 12 store.put(3,3) |
| 15 store.put(4,4) | 13 store.put(4,4) |
| 16 store.put(5,5) | 14 store.put(5,5) |
| 17 store.put(6,6) | 15 store.put(6,6) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 PASS cursor.key is 10 | 36 PASS cursor.key is 10 |
| 39 Expecting exception from cursor.continue(11) | 37 Expecting exception from cursor.continue(11) |
| 40 PASS Exception was thrown. | 38 PASS Exception was thrown. |
| 41 PASS code is 0 | 39 PASS code is 0 |
| 42 PASS ename is 'DataError' | 40 PASS ename is 'DataError' |
| 43 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
greater than or equal to this cursor's position. | 41 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
greater than or equal to this cursor's position. |
| 44 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
| 45 | 43 |
| 46 TEST COMPLETE | 44 TEST COMPLETE |
| 47 | 45 |
| OLD | NEW |