Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / deletedatabase-delayed-by-open-and-versionchange-expected.txt
blob4d2c84ce640afd830bedd2c3089c929ce1003dfe
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)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 sawVersionChange = false
12 upgradeTransactionComplete = false
13 h = event.target.result
14 indexedDB.deleteDatabase(dbname)
16 onVersionChange():
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
26 onOpenSuccess():
27 h = event.target.result
28 h.close()
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
38 TEST COMPLETE