| OLD | NEW |
| 1 Test mutating an IndexedDB's objectstore from a cursor. | 1 Test mutating an IndexedDB's objectstore from a cursor. |
| 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 = "mutating-cursor.html" | 6 dbname = "mutating-cursor.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('store') | 9 objectStore = db.createObjectStore('store') |
| 12 objectStore.add(1, 1).onerror = unexpectedErrorCallback | 10 objectStore.add(1, 1).onerror = unexpectedErrorCallback |
| 13 objectStore.add(2, 2).onerror = unexpectedErrorCallback | 11 objectStore.add(2, 2).onerror = unexpectedErrorCallback |
| 14 objectStore.add(3, 3).onerror = unexpectedErrorCallback | 12 objectStore.add(3, 3).onerror = unexpectedErrorCallback |
| 15 objectStore.add(4, 4).onerror = unexpectedErrorCallback | 13 objectStore.add(4, 4).onerror = unexpectedErrorCallback |
| 16 openForwardCursor() | 14 openForwardCursor() |
| 17 trans = db.transaction(['store'], 'readwrite') | 15 trans = db.transaction(['store'], 'readwrite') |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 PASS cursor.key is cursorSteps | 79 PASS cursor.key is cursorSteps |
| 82 PASS cursor.value is cursorSteps | 80 PASS cursor.value is cursorSteps |
| 83 cursor.continue() | 81 cursor.continue() |
| 84 reverseCursor() | 82 reverseCursor() |
| 85 PASS cursorSteps is 0 | 83 PASS cursorSteps is 0 |
| 86 reverseCursorComplete() | 84 reverseCursorComplete() |
| 87 PASS successfullyParsed is true | 85 PASS successfullyParsed is true |
| 88 | 86 |
| 89 TEST COMPLETE | 87 TEST COMPLETE |
| 90 | 88 |
| OLD | NEW |