1 Try to call db.close() after upgradeneeded but before the corresponding success event fires
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "intversion-close-between-events.html"
7 indexedDB.deleteDatabase(dbname)
10 request = indexedDB.open(dbname, 7)
13 db = event.target.result
14 PASS event.newVersion is 7
15 db.createObjectStore('objectstore')
16 transaction = event.target.transaction
18 transactionComplete():
19 sawTransactionComplete = true
21 Now try and close the database after oncomplete but before onsuccess.
22 This will not happen in single process ports. In multi-process ports
23 it may and is fine; but flaky crashes would indicate a regression.
25 setTimeout(closeDB, 0)
31 PASS didCallCloseDB is true
32 PASS sawTransactionComplete is true
34 PASS db.objectStoreNames.length is 1
35 PASS successfullyParsed is true