OLD | NEW |
1 Test IndexedDB's cursor update. | 1 Test IndexedDB's cursor update. |
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-update.html" | 6 dbname = "cursor-update.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.transaction | 10 trans = event.target.transaction |
13 PASS trans is non-null. | 11 PASS trans is non-null. |
14 Deleted all object stores. | 12 Deleted all object stores. |
15 objectStore = db.createObjectStore('basicStore') | 13 objectStore = db.createObjectStore('basicStore') |
16 objectStore.add('myValue1', 'myKey1').onerror = unexpectedErrorCallback | 14 objectStore.add('myValue1', 'myKey1').onerror = unexpectedErrorCallback |
17 objectStore.add('myValue2', 'myKey2').onerror = unexpectedErrorCallback | 15 objectStore.add('myValue2', 'myKey2').onerror = unexpectedErrorCallback |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 PASS code is 0 | 230 PASS code is 0 |
233 PASS ename is 'ReadOnlyError' | 231 PASS ename is 'ReadOnlyError' |
234 Exception message: Failed to execute 'update' on 'IDBCursor': The record may not
be updated inside a read-only transaction. | 232 Exception message: Failed to execute 'update' on 'IDBCursor': The record may not
be updated inside a read-only transaction. |
235 cursor.continue() | 233 cursor.continue() |
236 attemptUpdate() | 234 attemptUpdate() |
237 transactionComplete() | 235 transactionComplete() |
238 PASS successfullyParsed is true | 236 PASS successfullyParsed is true |
239 | 237 |
240 TEST COMPLETE | 238 TEST COMPLETE |
241 | 239 |
OLD | NEW |