Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / database-deletepending-flag-expected.txt
blob429de7fe2f0af96bb65a600fc9041d89046b4468
1 Test IndexedDB IDBDatabase internal delete pending flag
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "database-deletepending-flag.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname, 5)
9 connection.createObjectStore('store')
10 PASS connection.objectStoreNames.length is 1
12 Issue a delete request against the database - should be blocked by the open connection:
13 deleteRequest = indexedDB.deleteDatabase(dbname)
14 state = 0
16 Open a second connection - should be delayed:
17 openRequest = indexedDB.open(dbname)
19 connection received versionchange event - ignoring.
20 PASS ++state is 1
22 deleteRequest received blocked event.
23 PASS ++state is 2
24 connection.close()
25 deleteRequest should now be unblocked.
27 deleteRequest received success event.
28 PASS ++state is 3
29 openRequest should now be unblocked.
31 PASS openRequest received success event.
32 PASS ++state is 4
33 connection2 = openRequest.result
34 connection2 should reference a different database:
35 PASS connection2.version == connection.version is false
36 PASS connection2.objectStoreNames.length is 0
38 PASS successfullyParsed is true
40 TEST COMPLETE