Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mousemove_prevent_default_action.tentative.html unnecessarily listens…
… for selectionchange events when asserting dragstart is fired (#42471) Since the two subtests in mousemove_prevent_default_action.tentative.html assert that either a selectionchange or a dragstart event is fired on a cancelled mousemove event by comparing a set of logged events (obtained from respective event listeners) against a static set of expected events, it is important to not listen for events a subtest does not care about, as that may produce an unnecessary test failure. For example, we should not care whether or not a selectionchange event was fired in the second subtest, since we only want to assert that a dragstart event fires from a cancelled mousemove event on a draggable element. These two events are not mutually exclusive in any manner relevant to this WPT. Thus, this commit makes sure we follow the invariant of listening only for selectionchange events, and not also dragstart events, in the first subtest, and similarly listening only for dragstart events, and not also selectionchange events, in the second subtest. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
- Loading branch information