| Ensure pending open waits for version change transaction to complete. |
| 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) |
| calling open() - callback should wait until VERSION_CHANGE transaction is complete |
| starting work in VERSION_CHANGE transaction |
| self.state = 'VERSION_CHANGE started' |
| store = db.createObjectStore('test-store') |
| Expecting exception from db.transaction('test-store') |
| PASS Exception was thrown. |
| PASS code is DOMException.INVALID_STATE_ERR |
| PASS ename is 'InvalidStateError' |
| Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running. |
| ending work in VERSION_CHANGE transaction |
| self.state = 'VERSION_CHANGE finished' |
| open() callback - this should appear after VERSION_CHANGE transaction ends |
| PASS self.state is "VERSION_CHANGE finished" |
| PASS successfullyParsed is true |