| OLD | NEW |
| 1 Test the basics of IndexedDB's IDBObjectStore. | 1 Test the basics of IndexedDB's IDBObjectStore. |
| 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 dbname = "objectstore-basics.html" | 6 dbname = "objectstore-basics.html" |
| 7 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 8 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 9 | 9 |
| 10 prepareDatabase(): | 10 prepareDatabase(): |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 store = transaction.objectStore('storeName') | 120 store = transaction.objectStore('storeName') |
| 121 store.get('key') | 121 store.get('key') |
| 122 getSuccess(): | 122 getSuccess(): |
| 123 PASS event.target.result.y is "value" | 123 PASS event.target.result.y is "value" |
| 124 store = event.target.source | 124 store = event.target.source |
| 125 store.get(testDate) | 125 store.get(testDate) |
| 126 getSuccessDateKey(): | 126 getSuccessDateKey(): |
| 127 PASS event.target.result.x is "foo" | 127 PASS event.target.result.x is "foo" |
| 128 store.delete('key') | 128 store.delete('key') |
| 129 removeSuccess(): | 129 removeSuccess(): |
| 130 PASS event.target.result is undefined | 130 FAIL event.target.result should be undefined (of type undefined). Was 1 (of type
number). |
| 131 store.delete('key') | 131 store.delete('key') |
| 132 removeSuccessButNotThere(): | 132 removeSuccessButNotThere(): |
| 133 PASS event.target.result is undefined | 133 FAIL event.target.result should be undefined (of type undefined). Was 0 (of type
number). |
| 134 store = event.target.source | 134 store = event.target.source |
| 135 Passing an invalid key into store.get(). | 135 Passing an invalid key into store.get(). |
| 136 Expecting exception from store.get({}) | 136 Expecting exception from store.get({}) |
| 137 PASS Exception was thrown. | 137 PASS Exception was thrown. |
| 138 PASS code is 0 | 138 PASS code is 0 |
| 139 PASS ename is 'DataError' | 139 PASS ename is 'DataError' |
| 140 Exception message: Failed to execute 'get' on 'IDBObjectStore': The parameter is
not a valid key. | 140 Exception message: Failed to execute 'get' on 'IDBObjectStore': The parameter is
not a valid key. |
| 141 Passing an invalid key into store.delete(). | 141 Passing an invalid key into store.delete(). |
| 142 Expecting exception from store.delete({}) | 142 Expecting exception from store.delete({}) |
| 143 PASS Exception was thrown. | 143 PASS Exception was thrown. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 The key parameter was provided but does not contain a valid key. | 226 The key parameter was provided but does not contain a valid key. |
| 227 Expecting exception from storeWithOutOfLineKeys.add({}, null) | 227 Expecting exception from storeWithOutOfLineKeys.add({}, null) |
| 228 PASS Exception was thrown. | 228 PASS Exception was thrown. |
| 229 PASS code is 0 | 229 PASS code is 0 |
| 230 PASS ename is 'DataError' | 230 PASS ename is 'DataError' |
| 231 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is
not a valid key. | 231 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is
not a valid key. |
| 232 PASS successfullyParsed is true | 232 PASS successfullyParsed is true |
| 233 | 233 |
| 234 TEST COMPLETE | 234 TEST COMPLETE |
| 235 | 235 |
| OLD | NEW |