Skip to content

No way to test sensor APIs #9686

Closed
Closed
@foolip

Description

https://w3c.github.io/sensors/
https://w3c.github.io/accelerometer/
https://w3c.github.io/gyroscope/
https://w3c.github.io/orientation-sensor/

These specs and any additional sensor specs cannot be tested in any depth without additional APIs. This was recently discussed in w3c/sensors#257 (comment).

In Chromium there are tests for some of this that need some kind of wpt-side work to be shareable:
https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/sensor/

That'd be either the mojo mocking approach used by Bluetooth and USB, or something else. These APIs are fairly simple (one-way flow of data) so it might not be too hard to define a WebDriver API and wrap it with testdriver.js. @kereliuk FYI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions