-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensors: Add virtual sensor-related commands to testdriver #41906
sensors: Add virtual sensor-related commands to testdriver #41906
Conversation
a4494a3
to
a09b779
Compare
a09b779
to
143c222
Compare
3e8ef2c
to
0dd2d80
Compare
Spec PR: w3c/sensors#470 The Generic Sensor spec used to have an Automation section, but it leaked implementation-specific details and was not implemented anywhere. The changes above have been implemented in Chromium and there are pending patches there to convert the existing Generic Sensor web tests in WPT to the new virtual sensor model, which entirely removes the dependency on Mojo mocks and makes the tests more interoperable. This PR adds the required infrastructure to manipulate virtual sensors from testdriver. The 4 new commands correspond to the 4 WebDriver extension commands added by the spec PR above. This change was co-authored with @JuhaVainio. Related to web-platform-tests#9686.
0dd2d80
to
fd100e9
Compare
CI was failing because the newly-added I've pushed a new version without that new test, which I intend to land separately later. |
@web-platform-tests/wpt-core-team could someone take a look at this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you! |
This was originally part of web-platform-tests#41906, but these tests are being landed separately because they depend on the corresponding ChromeDriver bits that have since landed. Co-authored with @JuhaVainio, related to web-platform-tests#9686.
Spec PR: w3c/sensors#470
The Generic Sensor spec used to have an Automation section, but it leaked implementation-specific details and was not implemented anywhere. The changes above have been implemented in Chromium and there are pending patches there to convert the existing Generic Sensor web tests in WPT to the new virtual sensor model, which entirely removes the dependency on Mojo mocks and makes the tests more interoperable.
This PR adds the required infrastructure to manipulate virtual sensors from testdriver. The 4 new commands correspond to the 4 WebDriver extension commands added by the spec PR above.
This change was co-authored with @JuhaVainio.
Related to #9686.