| OLD | NEW |
| 1 Test IndexedDB cursor.advance(). | 1 Test IndexedDB cursor.advance(). |
| 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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
| 7 | 7 |
| 8 indexedDB.open(name) | 8 indexedDB.open(name) |
| 9 openSuccess(): | 9 openSuccess(): |
| 10 db = event.target.result | 10 db = event.target.result |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 cursor.continue() | 129 cursor.continue() |
| 130 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\
":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" | 130 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\
":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" |
| 131 cursor.continue() | 131 cursor.continue() |
| 132 testBadAdvance() | 132 testBadAdvance() |
| 133 trans = db.transaction(objectStoreName, 'readwrite') | 133 trans = db.transaction(objectStoreName, 'readwrite') |
| 134 objectStore = trans.objectStore(objectStoreName) | 134 objectStore = trans.objectStore(objectStoreName) |
| 135 request = objectStore.openCursor() | 135 request = objectStore.openCursor() |
| 136 Expecting TypeError exception from cursor.advance(0) | 136 Expecting TypeError exception from cursor.advance(0) |
| 137 PASS Exception was thrown. | 137 PASS Exception was thrown. |
| 138 PASS cursor.advance(0) threw TypeError: Type error | 138 PASS cursor.advance(0) threw TypeError: Type error |
| 139 Expecting TypeError exception from cursor.advance(-1) |
| 140 PASS Exception was thrown. |
| 141 PASS cursor.advance(-1) threw TypeError: Type error |
| 142 Expecting TypeError exception from cursor.advance(0x20000000000000) |
| 143 PASS Exception was thrown. |
| 144 PASS cursor.advance(0x20000000000000) threw TypeError: Type error |
| 139 testDelete() | 145 testDelete() |
| 140 trans = db.transaction(objectStoreName, 'readwrite') | 146 trans = db.transaction(objectStoreName, 'readwrite') |
| 141 objectStore = trans.objectStore(objectStoreName) | 147 objectStore = trans.objectStore(objectStoreName) |
| 142 request = objectStore.openCursor() | 148 request = objectStore.openCursor() |
| 143 PASS expected is "{\"key\":\"237-23-7732\",\"value\":{\"name\":\"Bob\",\"height\
":60,\"weight\":120},\"primaryKey\":\"237-23-7732\"}" | 149 PASS expected is "{\"key\":\"237-23-7732\",\"value\":{\"name\":\"Bob\",\"height\
":60,\"weight\":120},\"primaryKey\":\"237-23-7732\"}" |
| 144 cursor.advance(1) | 150 cursor.advance(1) |
| 145 PASS expected is "{\"key\":\"237-23-7733\",\"value\":{\"name\":\"Ann\",\"height\
":52,\"weight\":110},\"primaryKey\":\"237-23-7733\"}" | 151 PASS expected is "{\"key\":\"237-23-7733\",\"value\":{\"name\":\"Ann\",\"height\
":52,\"weight\":110},\"primaryKey\":\"237-23-7733\"}" |
| 146 cursor.advance(1) | 152 cursor.advance(1) |
| 147 PASS expected is "{\"key\":\"237-23-7734\",\"value\":{\"name\":\"Ron\",\"height\
":73,\"weight\":180},\"primaryKey\":\"237-23-7734\"}" | 153 PASS expected is "{\"key\":\"237-23-7734\",\"value\":{\"name\":\"Ron\",\"height\
":73,\"weight\":180},\"primaryKey\":\"237-23-7734\"}" |
| 148 cursor.delete() | 154 cursor.delete() |
| 149 PASS expected is "{\"key\":\"237-23-7738\",\"value\":{\"name\":\"Leo\",\"height\
":65,\"weight\":180},\"primaryKey\":\"237-23-7738\"}" | 155 PASS expected is "{\"key\":\"237-23-7738\",\"value\":{\"name\":\"Leo\",\"height\
":65,\"weight\":180},\"primaryKey\":\"237-23-7738\"}" |
| 150 cursor.advance(1) | 156 cursor.advance(1) |
| 151 PASS expected is "{\"key\":\"237-23-7739\",\"value\":{\"name\":\"Jef\",\"height\
":65,\"weight\":120},\"primaryKey\":\"237-23-7739\"}" | 157 PASS expected is "{\"key\":\"237-23-7739\",\"value\":{\"name\":\"Jef\",\"height\
":65,\"weight\":120},\"primaryKey\":\"237-23-7739\"}" |
| 152 cursor.advance(1) | 158 cursor.advance(1) |
| 153 PASS expected is "{\"key\":\"237-23-7740\",\"value\":{\"name\":\"Sam\",\"height\
":71,\"weight\":110},\"primaryKey\":\"237-23-7740\"}" | 159 PASS expected is "{\"key\":\"237-23-7740\",\"value\":{\"name\":\"Sam\",\"height\
":71,\"weight\":110},\"primaryKey\":\"237-23-7740\"}" |
| 154 cursor.advance(1) | 160 cursor.advance(1) |
| 155 PASS expected is "{\"key\":\"237-23-7741\",\"value\":{\"name\":\"Bug\",\"height\
":63,\"weight\":100},\"primaryKey\":\"237-23-7741\"}" | 161 PASS expected is "{\"key\":\"237-23-7741\",\"value\":{\"name\":\"Bug\",\"height\
":63,\"weight\":100},\"primaryKey\":\"237-23-7741\"}" |
| 156 cursor.advance(1) | 162 cursor.advance(1) |
| 157 PASS expected is "{\"key\":\"237-23-7742\",\"value\":{\"name\":\"Tub\",\"height\
":69,\"weight\":180},\"primaryKey\":\"237-23-7742\"}" | 163 PASS expected is "{\"key\":\"237-23-7742\",\"value\":{\"name\":\"Tub\",\"height\
":69,\"weight\":180},\"primaryKey\":\"237-23-7742\"}" |
| 158 cursor.advance(1) | 164 cursor.advance(1) |
| 159 PASS expected is "{\"key\":\"237-23-7743\",\"value\":{\"name\":\"Rug\",\"height\
":77,\"weight\":120},\"primaryKey\":\"237-23-7743\"}" | 165 PASS expected is "{\"key\":\"237-23-7743\",\"value\":{\"name\":\"Rug\",\"height\
":77,\"weight\":120},\"primaryKey\":\"237-23-7743\"}" |
| 160 cursor.advance(1) | 166 cursor.advance(1) |
| 161 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\
":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" | 167 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\
":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" |
| 162 cursor.advance(1) | 168 cursor.advance(1) |
| 163 PASS successfullyParsed is true | 169 PASS successfullyParsed is true |
| 164 | 170 |
| 165 TEST COMPLETE | 171 TEST COMPLETE |
| 166 | 172 |
| OLD | NEW |