blob: 11e9e3da6e77787f7677cb0c3c5aec2900732743 [file] [log] [blame]
Ensure that metadata remains correct when an aborted version change is followed by another.
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)
openConnection():
request = indexedDB.open(dbname, 2)
onUpgradeNeeded():
db = request.result
PASS db.version is 2
transaction = request.transaction
request = indexedDB.open(dbname, 3)
transaction.abort()
onError():
PASS db.version is 0
onUpgradeNeeded2():
db = request.result
PASS db.version is 3
onSuccess():
db = request.result
PASS db.version is 3
PASS successfullyParsed is true
TEST COMPLETE