| OLD | NEW |
| 1 Test IndexedDB: iterating through index cursors with keys and key ranges | 1 Test IndexedDB: iterating through index cursors with keys and key ranges |
| 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 = "indexes.html" | 6 dbname = "indexes.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore(objectStoreName); | 9 objectStore = db.createObjectStore(objectStoreName); |
| 12 First, add all our data to the object store. | 10 First, add all our data to the object store. |
| 13 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); | 11 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); |
| 14 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); | 12 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); |
| 15 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); | 13 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); |
| 16 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); | 14 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); |
| 17 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); | 15 request = objectStore.add(objectStoreData[i].value, objectStoreData[i].key); |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 PASS cursor.primaryKey is objectStoreDataNameSort[keyIndex].key | 1021 PASS cursor.primaryKey is objectStoreDataNameSort[keyIndex].key |
| 1024 PASS cursor.value.name is objectStoreDataNameSort[keyIndex].value.name | 1022 PASS cursor.value.name is objectStoreDataNameSort[keyIndex].value.name |
| 1025 PASS cursor.value.height is objectStoreDataNameSort[keyIndex].value.height | 1023 PASS cursor.value.height is objectStoreDataNameSort[keyIndex].value.height |
| 1026 PASS cursor.value.weight is objectStoreDataNameSort[keyIndex].value.weight | 1024 PASS cursor.value.weight is objectStoreDataNameSort[keyIndex].value.weight |
| 1027 cursor = event.target.result; | 1025 cursor = event.target.result; |
| 1028 PASS keyIndex is objectStoreDataNameSort.length | 1026 PASS keyIndex is objectStoreDataNameSort.length |
| 1029 PASS successfullyParsed is true | 1027 PASS successfullyParsed is true |
| 1030 | 1028 |
| 1031 TEST COMPLETE | 1029 TEST COMPLETE |
| 1032 | 1030 |
| OLD | NEW |