1 readonly transaction should see the result of a previous readwrite transaction
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "transaction-coordination-ro-waits-for-rw.html"
7 indexedDB.deleteDatabase(dbname)
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.put('original value', 'key')
16 db = event.target.result
17 transaction1 = db.transaction('store', 'readwrite')
18 transaction2 = db.transaction('store', 'readonly')
19 request = transaction1.objectStore('store').put('new value', 'key')
20 request2 = transaction2.objectStore('store').get('key')
23 PASS request2.result is "new value"
24 PASS successfullyParsed is true