1 Ensure pending open waits for version change transaction to complete.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "version-change-exclusive.html"
7 indexedDB.deleteDatabase(dbname)
9 calling open() - callback should wait until VERSION_CHANGE transaction is complete
10 indexedDB.open(dbname)
12 starting work in VERSION_CHANGE transaction
13 self.state = 'VERSION_CHANGE started'
14 store = db.createObjectStore('test-store')
15 Expecting exception from db.transaction('test-store')
16 PASS Exception was thrown.
17 PASS code is DOMException.INVALID_STATE_ERR
18 PASS ename is 'InvalidStateError'
19 Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running.
40 ending work in VERSION_CHANGE transaction
41 self.state = 'VERSION_CHANGE finished'
42 open() callback - this should appear after VERSION_CHANGE transaction ends
43 PASS self.state is "VERSION_CHANGE finished"
44 PASS successfullyParsed is true