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)
9 dbc1.createObjectStore('storeName')
10 database preparation complete
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')
24 PASS state is "starting"
25 state = 'open2complete'
28 PASS state is "open2complete"
29 state = 'open3complete'
32 PASS state is "open3complete"
34 PASS successfullyParsed is true