1 Check that read-only transactions don't starve read-write transactions.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "transaction-starvation.html"
7 indexedDB.deleteDatabase(dbname)
11 db = event.target.result
12 db.createObjectStore('store')
15 db = event.target.result
17 readWriteTransactionStarted = false
18 readWriteTransactionComplete = false
20 startReadOnlyTransaction():
21 transaction = db.transaction('store', 'readonly')
22 store = transaction.objectStore('store')
23 Keep the transaction alive with an endless series of gets
25 startReadWriteTransaction():
26 transaction = db.transaction('store', 'readwrite')
27 readWriteTransactionStarted = true
29 readWriteTransactionComplete():
30 PASS Transaction wasn't starved
31 readWriteTransactionComplete = true
32 PASS successfullyParsed is true