blob: 57a3d136538663cf3f98b180e56bc264226a856b [file] [log] [blame]
This tests deleting an index and then aborting the transaction.
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
Count is: 2
Cursor at record: A / 1
Cursor at record: A / 2
Initial upgrade versionchange transaction complete
Second upgrade needed: Old version - 1 New version - 2
Deleted the index
Aborted the transaction
Second upgrade versionchange transaction abort
Third upgrade needed: Old version - 1 New version - 3
Count is: 2
Cursor at record: A / 1
Cursor at record: A / 2
Third upgrade versionchange transaction complete
PASS successfullyParsed is true
TEST COMPLETE