| OLD | NEW |
| 1 Ensure deleteDatabase() can run concurrently with transactions in other database
s | 1 Ensure deleteDatabase() can run concurrently with transactions in other database
s |
| 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 = "deletedatabase-transaction.html" | 6 dbname = "deletedatabase-transaction.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 db.createObjectStore('store') | 9 db.createObjectStore('store') |
| 12 | 10 |
| 13 Start a transaction against the first database: | 11 Start a transaction against the first database: |
| 14 trans = db.transaction('store', 'readonly') | 12 trans = db.transaction('store', 'readonly') |
| 15 trans.objectStore('store').get(0) | 13 trans.objectStore('store').get(0) |
| 16 | 14 |
| 17 Delete a different database: | 15 Delete a different database: |
| 18 dbname2 = dbname + '2' | 16 dbname2 = dbname + '2' |
| 19 indexedDB.deleteDatabase(dbname2) | 17 indexedDB.deleteDatabase(dbname2) |
| 20 PASS success event was fired at delete request | 18 PASS success event was fired at delete request |
| 21 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
| 22 | 20 |
| 23 TEST COMPLETE | 21 TEST COMPLETE |
| 24 | 22 |
| OLD | NEW |