| OLD | NEW |
| 1 Test IndexedDB: iterating backwards through an index, skipping duplicates | 1 Test IndexedDB: iterating backwards through an index, skipping duplicates |
| 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 = "index-prev-no-duplicate.html" | 6 dbname = "index-prev-no-duplicate.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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 cursor.continue(); | 164 cursor.continue(); |
| 167 keyIndex--; | 165 keyIndex--; |
| 168 cursor = event.target.result; | 166 cursor = event.target.result; |
| 169 => Entering with keyIndex = -1 | 167 => Entering with keyIndex = -1 |
| 170 No cursor: null | 168 No cursor: null |
| 171 PASS keyIndex is -1 | 169 PASS keyIndex is -1 |
| 172 PASS successfullyParsed is true | 170 PASS successfullyParsed is true |
| 173 | 171 |
| 174 TEST COMPLETE | 172 TEST COMPLETE |
| 175 | 173 |
| OLD | NEW |