| OLD | NEW |
| 1 Test IndexedDB's openCursor. | 1 Test IndexedDB's openCursor. |
| 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 = "open-cursor.html" | 6 dbname = "open-cursor.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('test') | 9 objectStore = db.createObjectStore('test') |
| 12 objectStore.add('myValue', 'myKey') | 10 objectStore.add('myValue', 'myKey') |
| 13 Opening cursor | 11 Opening cursor |
| 14 event.target.source.openCursor(keyRange) | 12 event.target.source.openCursor(keyRange) |
| 15 Cursor opened successfully. | 13 Cursor opened successfully. |
| 16 PASS cursor.direction is "next" | 14 PASS cursor.direction is "next" |
| 17 PASS cursor.key is "myKey" | 15 PASS cursor.key is "myKey" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 43 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
not a valid key. | 41 Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is
not a valid key. |
| 44 | 42 |
| 45 Opening an empty cursor. | 43 Opening an empty cursor. |
| 46 objectStore.openCursor("InexistentKey") | 44 objectStore.openCursor("InexistentKey") |
| 47 Empty cursor opened successfully. | 45 Empty cursor opened successfully. |
| 48 PASS cursor is null | 46 PASS cursor is null |
| 49 PASS successfullyParsed is true | 47 PASS successfullyParsed is true |
| 50 | 48 |
| 51 TEST COMPLETE | 49 TEST COMPLETE |
| 52 | 50 |
| OLD | NEW |