Bug 1647666: test_doc_busy.html: Log a11y events to help debug the intermittent timeout. r=MarcoZ

It seems the window location isn't the issue here at all.
Rather, we never get the expected a11y events.
So, let's try to find out what events we *do* get.

Differential Revision: https://phabricator.services.mozilla.com/D81478
This commit is contained in:
James Teh 2020-06-29 05:26:59 +00:00
parent bb33c7f919
commit c598f2c2a3

View File

@ -33,6 +33,7 @@
}
async function doTest() {
EventsLogger.enabled = true;
const busyEvents = waitForOrderedEvents([
[EVENT_STATE_CHANGE, matchDocBusyChange(true)],
[EVENT_STATE_CHANGE, matchDocBusyChange(false)]
@ -55,6 +56,7 @@
synthesizeMouse(getNode("link"), 1, 1, {});
info("Waiting for a11y busy events");
await busyEvents;
EventsLogger.enabled = false;
info("Waiting for download prompt to open");
const downloadWin = await downloadPromptOpened;