blob: 81841255df8c8ce4c6b1ac0e440aa3c77b9190de [file] [log] [blame]
Test that deleteDatabase is blocked on open connections
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;
blockedEventFired = false
indexedDB.open(dbname)
openOnSuccess():
h = event.target.result
indexedDB.deleteDatabase(dbname)
onVersionChange():
PASS event.target.version is 1
PASS event.oldVersion is 1
PASS event.newVersion is null
deleteDatabaseOnBlocked():
blockedEventFired = true
h.close()
deleteDatabaseOnSuccess():
PASS blockedEventFired is true
PASS successfullyParsed is true
TEST COMPLETE