blob: eb6c3327b689b6e0563b584e21c0dd648110546b [file] [log] [blame]
[Worker] 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".
Starting worker: resources/deletedatabase-delayed-by-open-and-versionchange.js
[Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
[Worker]
[Worker] indexedDB.deleteDatabase(dbname)
[Worker] indexedDB.open(dbname)
[Worker]
[Worker] prepareDatabase():
[Worker] versionChangeComplete = false
[Worker] h = event.target.result
[Worker] blockedCalled = false
[Worker] indexedDB.deleteDatabase(dbname)
[Worker] h.createObjectStore('testObjectStore').put('bar', 'foo')
[Worker]
[Worker] onVersionChange():
PASS [Worker] event.target.version is 1
PASS [Worker] event.oldVersion is 1
PASS [Worker] event.newVersion is null
[Worker]
[Worker] transactionOnComplete():
[Worker] versionChangeComplete = true
[Worker]
[Worker] onOpenSuccess():
PASS [Worker] blockedCalled is true
[Worker] h = event.target.result
[Worker] h.close()
[Worker]
[Worker] deleteDatabaseOnSuccess():
PASS [Worker] versionChangeComplete is true
PASS successfullyParsed is true
TEST COMPLETE