| 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 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
| 7 | |
| 8 dbname = "objectstore-basics.html" | 6 dbname = "objectstore-basics.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 | 9 |
| 12 prepareDatabase(): | 10 prepareDatabase(): |
| 13 store = db.createObjectStore('storeName', null) | 11 store = db.createObjectStore('storeName', null) |
| 14 storeNames = db.objectStoreNames | 12 storeNames = db.objectStoreNames |
| 15 PASS 'name' in store is true | 13 PASS 'name' in store is true |
| 16 PASS 'keyPath' in store is true | 14 PASS 'keyPath' in store is true |
| 17 PASS 'indexNames' in store is true | 15 PASS 'indexNames' in store is true |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 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. |
| 229 Expecting exception from storeWithOutOfLineKeys.add({}, null) | 227 Expecting exception from storeWithOutOfLineKeys.add({}, null) |
| 230 PASS Exception was thrown. | 228 PASS Exception was thrown. |
| 231 PASS code is 0 | 229 PASS code is 0 |
| 232 PASS ename is 'DataError' | 230 PASS ename is 'DataError' |
| 233 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. |
| 234 PASS successfullyParsed is true | 232 PASS successfullyParsed is true |
| 235 | 233 |
| 236 TEST COMPLETE | 234 TEST COMPLETE |
| 237 | 235 |
| OLD | NEW |