| OLD | NEW |
| 1 Test IndexedDB IDBDatabase internal delete pending flag | 1 Test IndexedDB IDBDatabase internal delete pending flag |
| 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 = "database-deletepending-flag.html" | 6 dbname = "database-deletepending-flag.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname, 5) | 8 indexedDB.open(dbname, 5) |
| 11 connection.createObjectStore('store') | 9 connection.createObjectStore('store') |
| 12 PASS connection.objectStoreNames.length is 1 | 10 PASS connection.objectStoreNames.length is 1 |
| 13 | 11 |
| 14 Issue a delete request against the database - should be blocked by the open conn
ection: | 12 Issue a delete request against the database - should be blocked by the open conn
ection: |
| 15 deleteRequest = indexedDB.deleteDatabase(dbname) | 13 deleteRequest = indexedDB.deleteDatabase(dbname) |
| 16 state = 0 | 14 state = 0 |
| 17 | 15 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 PASS ++state is 4 | 32 PASS ++state is 4 |
| 35 connection2 = openRequest.result | 33 connection2 = openRequest.result |
| 36 connection2 should reference a different database: | 34 connection2 should reference a different database: |
| 37 PASS connection2.version == connection.version is false | 35 PASS connection2.version == connection.version is false |
| 38 PASS connection2.objectStoreNames.length is 0 | 36 PASS connection2.objectStoreNames.length is 0 |
| 39 | 37 |
| 40 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
| 41 | 39 |
| 42 TEST COMPLETE | 40 TEST COMPLETE |
| 43 | 41 |
| OLD | NEW |