| OLD | NEW |
| 1 Test IndexedDB IDBDatabase internal closePending flag | 1 Test IndexedDB IDBDatabase internal closePending 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-closepending-flag.html" | 6 dbname = "database-closepending-flag.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = connection.createObjectStore('store') | 9 store = connection.createObjectStore('store') |
| 12 | 10 |
| 13 First, verify that the database connection is not closed: | 11 First, verify that the database connection is not closed: |
| 14 PASS transaction = connection.transaction('store') did not throw exception. | 12 PASS transaction = connection.transaction('store') did not throw exception. |
| 15 | 13 |
| 16 Database closing steps | 14 Database closing steps |
| 17 "1. Set the internal closePending flag of connection to true." | 15 "1. Set the internal closePending flag of connection to true." |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 transaction = connection.transaction('store') | 67 transaction = connection.transaction('store') |
| 70 connection.close() | 68 connection.close() |
| 71 closePending is set, but active transaction will keep connection from closing | 69 closePending is set, but active transaction will keep connection from closing |
| 72 request = indexedDB.deleteDatabase(dbname) | 70 request = indexedDB.deleteDatabase(dbname) |
| 73 'blocked' event fired, letting transaction complete and connection close | 71 'blocked' event fired, letting transaction complete and connection close |
| 74 PASS versionChangeWasFired is false | 72 PASS versionChangeWasFired is false |
| 75 PASS successfullyParsed is true | 73 PASS successfullyParsed is true |
| 76 | 74 |
| 77 TEST COMPLETE | 75 TEST COMPLETE |
| 78 | 76 |
| OLD | NEW |