Closed Bug 1245484 Opened 8 years ago Closed 7 years ago

eslint: Add a warning when synthesizeMouse is used - Please use synthesizeMouseAtCenter or e.g. node.click() if possible

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: miker, Unassigned)

Details

A common error in tests when using synthesizeMouse is failing to correctly calculate the center of a node. We should have an eslint warning saying that it is better to use synthesizeMouseAtCenter or even e.g. node.click() if possible (which works when the element is offscreen).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.