Open Bug 1918061 Opened 1 year ago

[wpt-sync] Sync PR 48098 - Don't pass x, y to test_driver_internal.click

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 48098 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/48098
Details from upstream follow.

James Graham <james@hoppipolla.co.uk> wrote:

Don't pass x, y to test_driver_internal.click

This is because the semantics are supposed to be defined by WebDriver, and that doesn't allow setting the x,y coordinates for the click command (you have to use Actions for that instead). Therefore implementations are expected to compute the coordinates rather than use passed-in values.

By the same argument we could remove the scrollIntoView and initial check, since those just replicate checks WebDriver already does. Since that comes with the possibility of timing changes it isn't included in this change.

You need to log in before you can comment on or make changes to this bug.