| OLD | NEW |
| 1 Test openCursor/openKeyCursor with raw IDBKeys. | 1 Test openCursor/openKeyCursor with raw IDBKeys. |
| 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 = "opencursor-key.html" | 6 dbname = "opencursor-key.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 PASS cursor.primaryKey is "237-23-7738" | 62 PASS cursor.primaryKey is "237-23-7738" |
| 65 cursor.continue() | 63 cursor.continue() |
| 66 PASS cursor.key is 180 | 64 PASS cursor.key is 180 |
| 67 PASS cursor.primaryKey is "237-23-7742" | 65 PASS cursor.primaryKey is "237-23-7742" |
| 68 cursor.continue() | 66 cursor.continue() |
| 69 PASS cursor is null | 67 PASS cursor is null |
| 70 PASS successfullyParsed is true | 68 PASS successfullyParsed is true |
| 71 | 69 |
| 72 TEST COMPLETE | 70 TEST COMPLETE |
| 73 | 71 |
| OLD | NEW |