blob: 70fc7758bbd2e3c0b96db28c5a93562de6023d7b [file] [log] [blame]
Test that deleteDatabase is delayed if a VERSION_CHANGE transaction is running
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():
versionChangeComplete = false
h = event.target.result
blockedCalled = false
indexedDB.deleteDatabase(dbname)
h.createObjectStore('testObjectStore').put('bar', 'foo')
transactionOnComplete():
versionChangeComplete = true
onOpenSuccess():
PASS blockedCalled is false
h = event.target.result
h.close()
deleteDatabaseOnSuccess():
PASS versionChangeComplete is true
PASS successfullyParsed is true
TEST COMPLETE