blob: 71e8434e119899f24c167bd90d7315d616cce88c [file] [log] [blame]
Check that transactions that may overlap complete properly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
prepareDatabase():
db = event.target.result
store = db.createObjectStore('store')
store.put('value', 'key')
runParallelTransactions():
db = event.target.result
transaction1 = db.transaction('store', 'readonly')
transaction2 = db.transaction('store', 'readonly')
transaction1GetSuccess = 0
transaction2GetSuccess = 0
onTransactionComplete():
first transaction complete, still waiting...
onTransactionComplete():
PASS transaction1GetSuccess is non-zero.
PASS transaction2GetSuccess is non-zero.
db.close()
PASS successfullyParsed is true
TEST COMPLETE