| OLD | NEW |
| 1 Test IndexedDB cursor behavior | 1 Test IndexedDB cursor behavior |
| 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 = "cursors.html" | 6 dbname = "cursors.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 db.createObjectStore('autoIncrement', { autoIncrement: true }); | 9 db.createObjectStore('autoIncrement', { autoIncrement: true }); |
| 12 request = objectStore.openCursor(); | 10 request = objectStore.openCursor(); |
| 13 PASS event.target.result is null | 11 PASS event.target.result is null |
| 14 db.createObjectStore('autoIncrementKeyPath', { keyPath: 'foo', autoIncrement: tr
ue }); | 12 db.createObjectStore('autoIncrementKeyPath', { keyPath: 'foo', autoIncrement: tr
ue }); |
| 15 request = objectStore.openCursor(); | 13 request = objectStore.openCursor(); |
| 16 PASS event.target.result is null | 14 PASS event.target.result is null |
| 17 db.createObjectStore('keyPath', { keyPath: 'foo' }); | 15 db.createObjectStore('keyPath', { keyPath: 'foo' }); |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 PASS cursor.key is sortedKeys[keyIndex] | 598 PASS cursor.key is sortedKeys[keyIndex] |
| 601 PASS cursor.primaryKey is sortedKeys[keyIndex] | 599 PASS cursor.primaryKey is sortedKeys[keyIndex] |
| 602 PASS cursor.value is 'foo' | 600 PASS cursor.value is 'foo' |
| 603 keyIndex--; | 601 keyIndex--; |
| 604 cursor = event.target.result; | 602 cursor = event.target.result; |
| 605 PASS keyIndex is -1 | 603 PASS keyIndex is -1 |
| 606 PASS successfullyParsed is true | 604 PASS successfullyParsed is true |
| 607 | 605 |
| 608 TEST COMPLETE | 606 TEST COMPLETE |
| 609 | 607 |
| OLD | NEW |