// It depends on the platform whether the context menu opens before/after
// mouseup of the secondary mouse button. Therefore, we should ignore
// 2 of `.buttons` of `contextmenu`.
if ((contextMenuEvent?.buttons & ~2) == (1 | 4)) {
break;
}
info(`Retrying due to: ${
!contextMenuEvent ? "no `contextmenu` event" : `unexpected buttons, ${contextMenuEvent.buttons}`
}`);
}
// See above comment for the reason why we ignore 2 of `.buttons` of `contextmenu`.
is(
contextMenuEvent?.buttons & ~2,
(1 | 4), "buttons of contextmenu event should indicate that the primary button and the middle button is pressed"
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.