blob: dbf307d32ee016d793b5657d66d0bea0517f20ea [file] [log] [blame]
This test verifies that: - Opening a new database results in the onupgradeneeded handler being called on the IDBOpenDBRequest. - The versionchange transaction representing the upgrade commits successfully. - After that transaction commits, the onsuccess handler on the original IDBOpenDBRequest is called.
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)
upgradeneeded: old version - 0 new version - 1
[object IDBTransaction]
Version change complete
Got the onsuccess handler as expected.
PASS successfullyParsed is true
TEST COMPLETE