| OLD | NEW |
| 1 Test IndexedDB behavior when iterating backwards with and without NO_DUPLICATE | 1 Test IndexedDB behavior when iterating backwards with and without NO_DUPLICATE |
| 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-prev-no-duplicate.html" | 6 dbname = "cursor-prev-no-duplicate.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
| 12 store.createIndex('index', 'sorted') | 10 store.createIndex('index', 'sorted') |
| 13 | 11 |
| 14 populating store... | 12 populating store... |
| 15 trans = db.transaction('store', 'readwrite') | 13 trans = db.transaction('store', 'readwrite') |
| 16 store = trans.objectStore('store'); | 14 store = trans.objectStore('store'); |
| 17 store.put({sorted: 3, value: 111}, 1) | 15 store.put({sorted: 3, value: 111}, 1) |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 99 |
| 102 storeReq = index.openKeyCursor(IDBKeyRange.upperBound(15, false), 'prevunique') | 100 storeReq = index.openKeyCursor(IDBKeyRange.upperBound(15, false), 'prevunique') |
| 103 PASS cursor.key is 10 | 101 PASS cursor.key is 10 |
| 104 PASS cursor.primaryKey is 15 | 102 PASS cursor.primaryKey is 15 |
| 105 DONE | 103 DONE |
| 106 | 104 |
| 107 PASS successfullyParsed is true | 105 PASS successfullyParsed is true |
| 108 | 106 |
| 109 TEST COMPLETE | 107 TEST COMPLETE |
| 110 | 108 |
| OLD | NEW |