-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1449277 [wpt PR 10198] - Enable WPT tests for the Generic Sensor …
…classes, a=testonly Automatic update from web-platform-testsEnable WPT tests for the Generic Sensor classes This patch introduces mock implementations of the Sensor and SensorProvider mojo interfaces to the WPT tests for Chromium. The ongoing WPT issue for the Generic Sensor tests automation: web-platform-tests/wpt#9686 Bug: 816462 Change-Id: I8e4880ee5269b07f0bf68a2752038e128d166c55 Reviewed-on: https://chromium-review.googlesource.com/980886 Reviewed-by: Mike West <mkwstchromium.org> Reviewed-by: Philip Jägenstedt <foolipchromium.org> Reviewed-by: Reilly Grant <reillygchromium.org> Reviewed-by: Alexander Shalamov <alexander.shalamovintel.com> Commit-Queue: Mikhail Pozdnyakov <mikhail.pozdnyakovintel.com> Cr-Commit-Position: refs/heads/master{#550586} -- wpt-commits: b55a93ab1fa441d8998fcfb1173d00dab4b733c0 wpt-pr: 10198 UltraBlame original commit: b8ae1c026c8a586bd2afc5d66e9eb0e75062fb59
- Loading branch information
Showing
44 changed files
with
11,303 additions
and
693 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
The | ||
generic | ||
- | ||
sensor | ||
- | ||
tests | ||
. | ||
js | ||
tests | ||
require | ||
an | ||
implementation | ||
of | ||
the | ||
GenericSensorTest | ||
interface | ||
which | ||
should | ||
emulate | ||
platform | ||
sensor | ||
backends | ||
. | ||
The | ||
GenericSensorTest | ||
interface | ||
is | ||
defined | ||
as | ||
: | ||
class | ||
GenericSensorTest | ||
{ | ||
async | ||
initialize | ||
( | ||
) | ||
; | ||
/ | ||
/ | ||
Sets | ||
up | ||
the | ||
testing | ||
enviroment | ||
. | ||
async | ||
reset | ||
( | ||
) | ||
; | ||
/ | ||
/ | ||
Frees | ||
the | ||
resources | ||
. | ||
} | ||
; | ||
The | ||
Chromium | ||
implementation | ||
of | ||
the | ||
GenericSensorTest | ||
interface | ||
is | ||
located | ||
in | ||
[ | ||
generic_sensor_mocks | ||
. | ||
js | ||
] | ||
( | ||
. | ||
. | ||
/ | ||
resources | ||
/ | ||
chromium | ||
/ | ||
generic_sensor_mocks | ||
. | ||
js | ||
) | ||
. | ||
Other | ||
browser | ||
vendors | ||
should | ||
provide | ||
their | ||
own | ||
implementations | ||
of | ||
the | ||
GenericSensorTest | ||
interface | ||
. | ||
[ | ||
Known | ||
issue | ||
] | ||
( | ||
https | ||
: | ||
/ | ||
/ | ||
github | ||
. | ||
com | ||
/ | ||
w3c | ||
/ | ||
web | ||
- | ||
platform | ||
- | ||
tests | ||
/ | ||
issues | ||
/ | ||
9686 | ||
) | ||
: | ||
a | ||
WebDriver | ||
extension | ||
is | ||
a | ||
better | ||
approach | ||
for | ||
the | ||
Generic | ||
Sensor | ||
tests | ||
automation | ||
. |
Oops, something went wrong.