NEW272589
device orientation: Consider implementing Automation section from the spec (i.e. WebDriver support)
https://bugs.webkit.org/show_bug.cgi?id=272589
Summary device orientation: Consider implementing Automation section from the spec (i...
Raphael Kubo da Costa (:rakuco)
Reported 2024-04-12 09:05:57 PDT
See https://w3c.github.io/deviceorientation/#automation, which covers some WebDriver endpoints that are helpful for providing fake readings useful for testing the API. We currently use in web-platform-tests, as this is the only way to make sure that this API is reporting the right events in a predictable way that does not depend on actual hardware. To be clear, https://w3c.github.io/deviceorientation/#automation relates to https://w3c.github.io/sensors/#automation since both specs use similar automation concepts and sensors, but special care has been taken to avoid making the Device Orientation spec depend on the Generic Sensors one and on definitions from other sections of the latter. WPT's test_driver already has support for it in https://web-platform-tests.org/writing-tests/testdriver.html#sensors
Attachments
Radar WebKit Bug Importer
Comment 1 2024-04-22 08:55:46 PDT
Note You need to log in before you can comment on or make changes to this bug.