| OLD | NEW |
| 1 Regression test for http://crbug.com/108071 | 1 Regression test for http://crbug.com/108071 |
| 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 = "prefetch-bugfix-108071.html" | 6 dbname = "prefetch-bugfix-108071.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('store', {keyPath: 'id'}) | 9 objectStore = db.createObjectStore('store', {keyPath: 'id'}) |
| 12 | 10 |
| 13 resetObjectStore(): | 11 resetObjectStore(): |
| 14 objectStore.clear() | 12 objectStore.clear() |
| 15 objectStore.add({id: 0, name: "Alpha"}) | 13 objectStore.add({id: 0, name: "Alpha"}) |
| 16 objectStore.add({id: 1, name: "Bravo"}) | 14 objectStore.add({id: 1, name: "Bravo"}) |
| 17 objectStore.add({id: 2, name: "Charlie"}) | 15 objectStore.add({id: 2, name: "Charlie"}) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 0: Alpha | 39 0: Alpha |
| 42 1: Bravo | 40 1: Bravo |
| 43 2: Charlie | 41 2: Charlie |
| 44 3: Delta | 42 3: Delta |
| 45 trans.abort() | 43 trans.abort() |
| 46 PASS Transaction aborted as expected | 44 PASS Transaction aborted as expected |
| 47 PASS successfullyParsed is true | 45 PASS successfullyParsed is true |
| 48 | 46 |
| 49 TEST COMPLETE | 47 TEST COMPLETE |
| 50 | 48 |
| OLD | NEW |