1 Check that read-only transactions within a database can run in parallel.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "transaction-coordination-within-database.html"
7 indexedDB.deleteDatabase(dbname)
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.put('value', 'key')
15 runParallelTransactions():
16 db = event.target.result
18 transaction1 = db.transaction('store', 'readonly')
19 transaction2 = db.transaction('store', 'readonly')
20 transaction1GetSuccess = false
21 transaction2GetSuccess = false
22 Keep both transactions alive until each has reported at least one successful operation
24 onTransactionComplete():
25 first transaction complete, still waiting...
27 onTransactionComplete():
28 PASS transaction1GetSuccess is true
29 PASS transaction2GetSuccess is true
31 PASS successfullyParsed is true