3 <script src=
"../../resources/js-test.js"></script>
4 <script src=
"resources/shared.js"></script>
9 description("Regression test for WK82678 - don't commit after a blocked event");
11 indexedDBTest(prepareDatabase
, holdConnection
);
12 function prepareDatabase()
14 db
= event
.target
.result
;
15 evalAndLog("db.onversionchange = onVersionChange");
16 evalAndLog("store = db.createObjectStore('store1')");
19 function holdConnection()
22 debug("holdConnection():");
23 debug("holding connection until versionchange event");
25 worker
= startWorker("resources/dont-commit-on-blocked-worker.js");
28 function onVersionChange(e
)
30 // Timing of logging from worker vs. this event is racy, so do not log here.
31 // Don't close within this turn of the event loop, so that worker sees 'blocked'.
32 setTimeout(function() {