blob: 614390111ac83e73a27950e3a7bac4f13b5611e6 [file] [log] [blame]
This tests some obvious failures that can happen while calling IDBDatabase.deleteObjectStore()
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)
Initial upgrade needed: Old version - 0 New version - 1
Initial upgrade versionchange transaction complete
readwrite put success - about to try to delete an objectstore
Failed to deleteObjectStore without a versionchange transaction - InvalidStateError: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The database is not running a version change transaction.
readwrite transaction complete
Second upgrade needed: Old version - 1 New version - 2
Failed to deleteObjectStore with a non-existent objectstore - NotFoundError: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The specified object store was not found.
Failed to deleteObjectStore with an in-progress versionchange transaction that is inactive - TransactionInactiveError: A request was placed against a transaction which is currently not active, or which is finished.
Second version change transaction complete
PASS successfullyParsed is true
TEST COMPLETE