Open Bug 1918050 Opened 2 months ago

[wpt-sync] Sync PR 48097 - Add lint for test_driver_internal usage

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 48097 into mozilla-central (this bug is closed when the sync is complete).

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

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

Add lint for test_driver_internal usage

We currently have a few tests that try to use test_driver_internal in a way that is unsurprisingly broken:

input-events/input-events-spin-button-click-on-number-input-delete-document.html
input-events/input-events-spin-button-click-on-number-input.html
input-events/input-events-spin-button-click-on-number-input-prevent-default.html

As a result all of these tests are failing on wpt.fyi (although they presumably pass on Chromium infrastructure, due to an incorrect implementation of the test_driver API).

This adds a lint to avoid this happening again in the future (@whimboo is going to actually fix those tests, so this will need to land after that).

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