| OLD | NEW |
| 1 Test IndexedDB primary key ordering and readback from cursors. | 1 Test IndexedDB primary key ordering and readback from cursors. |
| 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-primary-key-order.html" | 6 dbname = "cursor-primary-key-order.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 index = store.createIndex('index', 'indexKey') | 10 index = store.createIndex('index', 'indexKey') |
| 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({"indexKey":0,"count":0}, 'c') | 15 store.put({"indexKey":0,"count":0}, 'c') |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 PASS cursor.key is 0 | 81 PASS cursor.key is 0 |
| 84 PASS cursor.primaryKey is 'b' | 82 PASS cursor.primaryKey is 'b' |
| 85 cursor = cursorRequest.result | 83 cursor = cursorRequest.result |
| 86 PASS cursor.key is 0 | 84 PASS cursor.key is 0 |
| 87 PASS cursor.primaryKey is 'c' | 85 PASS cursor.primaryKey is 'c' |
| 88 PASS count is keys.length | 86 PASS count is keys.length |
| 89 PASS successfullyParsed is true | 87 PASS successfullyParsed is true |
| 90 | 88 |
| 91 TEST COMPLETE | 89 TEST COMPLETE |
| 92 | 90 |
| OLD | NEW |