Bug 1578604: accessible/tests/mochitest/actions/test_general.xul: Don't require the focus event on menulist to be unique. r=eeejay

focusChecker expects a unique focus event.
However, there might still be pending focus events not caught by previous tests.
Therefore, we specify our own checker so we can disable the uniqueness requirement.
This is a little ugly, but it's rather difficult to work around this within this declarative framework without potentially breaking other tests.

Differential Revision: https://phabricator.services.mozilla.com/D44615

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Teh 2019-09-05 20:38:32 +00:00
parent 43953a25a3
commit 0b797e7d2e

View File

@ -86,8 +86,11 @@
{
ID: "menulist_label",
actionName: "click",
targetID: "menulist",
events: FOCUS_EVENT
// focusChecker expects a unique focus event. However, there might
// still be pending focus events not caught by previous tests.
eventSeq: [
new invokerChecker(EVENT_FOCUS, getNode("menulist"))
]
}/*, // XXX: bug 490288
{
ID: "buttonmenu_item",