Skip to content

Commit

Permalink
Bug 1852507 [wpt PR 41906] - sensors: Add virtual sensor-related comm…
Browse files Browse the repository at this point in the history
…ands to testdriver, a=testonly

Automatic update from web-platform-tests
sensors: Add virtual sensor-related commands to testdriver (#41906)

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.
--

wpt-commits: 52115b2fd161d1c1c081b56262937a3d67839133
wpt-pr: 41906

UltraBlame original commit: 0838abe0dccb344e5949267d8e25986191c55fc2
  • Loading branch information
marco-c committed Nov 8, 2023
1 parent 719f36d commit 75dd38b
Show file tree
Hide file tree
Showing 8 changed files with 2,271 additions and 0 deletions.
48 changes: 48 additions & 0 deletions testing/web-platform/tests/docs/writing-tests/testdriver.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,54 @@ reset_fedcm_cooldown
#
#
#
Sensors
#
#
#
eval_rst
.
.
js
:
autofunction
:
:
test_driver
.
create_virtual_sensor
.
.
js
:
autofunction
:
:
test_driver
.
update_virtual_sensor
.
.
js
:
autofunction
:
:
test_driver
.
remove_virtual_sensor
.
.
js
:
autofunction
:
:
test_driver
.
get_virtual_sensor_information
#
#
#
Using
test_driver
in
Expand Down
Loading

0 comments on commit 75dd38b

Please sign in to comment.