Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / open-during-transaction-expected.txt
blobadcc77062a1ecbb22586780e5fa851192722bd37
1 Test IndexedDB opening database connections during transactions
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "open-during-transaction.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
9 dbc1.createObjectStore('storeName')
10 database preparation complete
12 starting transaction
13 state = 'starting'
14 trans = dbc1.transaction('storeName', 'readwrite')
15 the transaction is kept alive with a series of puts until opens are complete
17 trying to open the same database
18 openreq2 = indexedDB.open(dbname)
20 trying to open a different database
21 openreq3 = indexedDB.open(dbname + '2')
23 openreq2.onsuccess
24 PASS state is "starting"
25 state = 'open2complete'
27 openreq3.onsuccess
28 PASS state is "open2complete"
29 state = 'open3complete'
31 transaction complete
32 PASS state is "open3complete"
34 PASS successfullyParsed is true
36 TEST COMPLETE