| OLD | NEW |
| 1 Test IndexedDB's webkitIDBObjectStore.clear(). | 1 Test IndexedDB's IDBObjectStore.clear(). |
| 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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
| 7 | 7 |
| 8 dbname = "objectstore-clear.html" | 8 dbname = "objectstore-clear.html" |
| 9 indexedDB.deleteDatabase(dbname) | 9 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('storeName', null) | 11 store = db.createObjectStore('storeName', null) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 23 openKeyCursorSuccess(): | 23 openKeyCursorSuccess(): |
| 24 PASS event.target.result is null | 24 PASS event.target.result is null |
| 25 db.transaction(['otherStoreName']) | 25 db.transaction(['otherStoreName']) |
| 26 otherStore = transaction.objectStore('otherStoreName') | 26 otherStore = transaction.objectStore('otherStoreName') |
| 27 otherStore.get('key') | 27 otherStore.get('key') |
| 28 PASS event.target.result is "value" | 28 PASS event.target.result is "value" |
| 29 PASS successfullyParsed is true | 29 PASS successfullyParsed is true |
| 30 | 30 |
| 31 TEST COMPLETE | 31 TEST COMPLETE |
| 32 | 32 |
| OLD | NEW |