| 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 = "cursor-delete.html" | 6 dbname = "cursor-delete.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 setVersionSuccess(): | 9 setVersionSuccess(): |
| 12 trans = event.target.result | 10 trans = event.target.result |
| 13 PASS trans is non-null. | 11 PASS trans is non-null. |
| 14 objectStore = db.createObjectStore('test') | 12 objectStore = db.createObjectStore('test') |
| 15 objectStore.add('myValue1', 'myKey1') | 13 objectStore.add('myValue1', 'myKey1') |
| 16 objectStore.add('myValue2', 'myKey2') | 14 objectStore.add('myValue2', 'myKey2') |
| 17 objectStore.add('myValue3', 'myKey3') | 15 objectStore.add('myValue3', 'myKey3') |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 openCursor2 | 38 openCursor2 |
| 41 objectStore.openCursor(keyRange) | 39 objectStore.openCursor(keyRange) |
| 42 PASS [object IDBCursorWithValue] is non-null. | 40 PASS [object IDBCursorWithValue] is non-null. |
| 43 event.target.result.delete() | 41 event.target.result.delete() |
| 44 objectStore.get('myKey1') | 42 objectStore.get('myKey1') |
| 45 PASS event.target.result is undefined | 43 PASS event.target.result is undefined |
| 46 PASS successfullyParsed is true | 44 PASS successfullyParsed is true |
| 47 | 45 |
| 48 TEST COMPLETE | 46 TEST COMPLETE |
| 49 | 47 |
| OLD | NEW |