blob: ba96ea651e8c8cc20a98bd5e93cca71360717adf [file] [log] [blame]
Regression test for WK136583 - ensure the versionchange event has the proper name
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)
db.onversionchange = onVersionChange
store = db.createObjectStore('store1')
PASS db.version is 1
request = indexedDB.open(dbname, 2)
db.onversionchange = onVersionChange
onVersionChange():
PASS event.type is "versionchange"
PASS successfullyParsed is true
TEST COMPLETE