blob: b5d2e5123df203336d0e5125d4a111852a3890ff [file] [log] [blame]
Test that an abort in the initial upgradeneeded sets version back to 0
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, 2)
request.onupgradeneeded = upgradeNeeded
request.onerror = onError
upgradeNeeded():
PASS db.version is 2
transaction.abort()
onAbort():
PASS event.target.db.version is 0
PASS request.transaction is non-null.
onError():
PASS event.target.result is undefined
PASS request is event.target
PASS event.target.error.name is "AbortError"
PASS request.transaction is null
PASS successfullyParsed is true
TEST COMPLETE