Bug 272589
| Summary: | device orientation: Consider implementing Automation section from the spec (i.e. WebDriver support) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Raphael Kubo da Costa (:rakuco) <rakuco> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, gsnedders, inspector-bugzilla-changes, marcosc, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Raphael Kubo da Costa (:rakuco)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/126863747>