| OLD | NEW |
| 1 Test IndexedDB's IDBObjectStore.get(IDBKeyRange) method. | 1 Test IndexedDB's IDBObjectStore.get(IDBKeyRange) method. |
| 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 = "get-keyrange.html" | 6 dbname = "get-keyrange.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 db.createObjectStore('someObjectStore') | 9 db.createObjectStore('someObjectStore') |
| 12 objectStore.createIndex('someIndex', 'x') | 10 objectStore.createIndex('someIndex', 'x') |
| 13 objectStore.add({'x': 0 }, 0) | 11 objectStore.add({'x': 0 }, 0) |
| 14 objectStore.add({'x': 1 }, 1) | 12 objectStore.add({'x': 1 }, 1) |
| 15 objectStore.add({'x': 2 }, 2) | 13 objectStore.add({'x': 2 }, 2) |
| 16 objectStore.add({'x': 3 }, 3) | 14 objectStore.add({'x': 3 }, 3) |
| 17 objectStore.add({'x': 4 }, 4) | 15 objectStore.add({'x': 4 }, 4) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 Expecting exception from index.getKey(null) | 82 Expecting exception from index.getKey(null) |
| 85 PASS Exception was thrown. | 83 PASS Exception was thrown. |
| 86 PASS code is 0 | 84 PASS code is 0 |
| 87 PASS ename is 'DataError' | 85 PASS ename is 'DataError' |
| 88 Exception message: Failed to execute 'getKey' on 'IDBIndex': No key or key range
specified. | 86 Exception message: Failed to execute 'getKey' on 'IDBIndex': No key or key range
specified. |
| 89 finishJSTest() | 87 finishJSTest() |
| 90 PASS successfullyParsed is true | 88 PASS successfullyParsed is true |
| 91 | 89 |
| 92 TEST COMPLETE | 90 TEST COMPLETE |
| 93 | 91 |
| OLD | NEW |