1 Test that deleteDatabase is delayed if a VERSION_CHANGE transaction is running
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "deletedatabase-delayed-by-open-and-versionchange.html"
7 indexedDB.deleteDatabase(dbname)
11 sawVersionChange = false
12 upgradeTransactionComplete = false
13 h = event.target.result
14 indexedDB.deleteDatabase(dbname)
17 PASS event.target.version is 1
18 PASS event.oldVersion is 1
19 PASS event.newVersion is null
20 sawVersionChange = true
21 Connection is not closed, so 'blocked' should fire
23 transactionOnComplete():
24 upgradeTransactionComplete = true
27 h = event.target.result
29 Closing too late to prevent the in-flight 'blocked' event
31 deleteDatabaseOnBlocked():
32 PASS sawVersionChange is true
34 deleteDatabaseOnSuccess():
35 PASS upgradeTransactionComplete is true
36 PASS successfullyParsed is true