| OLD | NEW |
| 1 Test that IndexedDB's cursor key/primaryKey/value properties preserve mutations. | 1 Test that IndexedDB's cursor key/primaryKey/value properties preserve mutations. |
| 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-properties.html" | 6 dbname = "cursor-properties.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname, 1) | 8 indexedDB.open(dbname, 1) |
| 11 | 9 |
| 12 onUpgradeNeeded(): | 10 onUpgradeNeeded(): |
| 13 db = event.target.result | 11 db = event.target.result |
| 14 store = db.createObjectStore('store') | 12 store = db.createObjectStore('store') |
| 15 index = store.createIndex('index', 'id') | 13 index = store.createIndex('index', 'id') |
| 16 store.put({id: ['indexKey']}, ['primaryKey']) | 14 store.put({id: ['indexKey']}, ['primaryKey']) |
| 17 | 15 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 Check read-only: | 53 Check read-only: |
| 56 cursor.value = null | 54 cursor.value = null |
| 57 PASS v === cursor.value is true | 55 PASS v === cursor.value is true |
| 58 Check mutability: | 56 Check mutability: |
| 59 cursor.value.expando = 123 | 57 cursor.value.expando = 123 |
| 60 PASS cursor.value.expando is 123 | 58 PASS cursor.value.expando is 123 |
| 61 PASS successfullyParsed is true | 59 PASS successfullyParsed is true |
| 62 | 60 |
| 63 TEST COMPLETE | 61 TEST COMPLETE |
| 64 | 62 |
| OLD | NEW |