Skip to content

Commit

Permalink
Bug 1449277 [wpt PR 10198] - Enable WPT tests for the Generic Sensor …
Browse files Browse the repository at this point in the history
…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
marco-c committed Oct 3, 2019
1 parent 2cdb31a commit 132ad92
Show file tree
Hide file tree
Showing 44 changed files with 11,303 additions and 693 deletions.
220 changes: 173 additions & 47 deletions testing/web-platform/meta/MANIFEST.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,23 @@
;
run_fp_tests_disabled
(
'
Accelerometer
'
)
;
run_fp_tests_disabled
(
'
LinearAccelerationSensor
'
)
;
run_fp_tests_disabled
(
'
GravitySensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,23 @@
;
run_fp_tests_enabled_by_attribute_redirect_on_load
(
'
Accelerometer
'
)
;
run_fp_tests_enabled_by_attribute_redirect_on_load
(
'
LinearAccelerationSensor
'
)
;
run_fp_tests_enabled_by_attribute_redirect_on_load
(
'
GravitySensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,23 @@
;
run_fp_tests_enabled_by_attribute
(
'
Accelerometer
'
)
;
run_fp_tests_enabled_by_attribute
(
'
LinearAccelerationSensor
'
)
;
run_fp_tests_enabled_by_attribute
(
'
GravitySensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,23 @@
;
run_fp_tests_enabled
(
'
Accelerometer
'
)
;
run_fp_tests_enabled
(
'
LinearAccelerationSensor
'
)
;
run_fp_tests_enabled
(
'
GravitySensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,23 @@
;
run_fp_tests_enabled_on_self_origin
(
'
Accelerometer
'
)
;
run_fp_tests_enabled_on_self_origin
(
'
LinearAccelerationSensor
'
)
;
run_fp_tests_enabled_on_self_origin
(
'
GravitySensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,23 @@
>
runGenericSensorTests
(
'
Accelerometer
'
)
;
runGenericSensorTests
(
'
GravitySensor
'
)
;
runGenericSensorTests
(
'
LinearAccelerationSensor
'
)
;
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,23 @@
>
runGenericSensorOnerror
(
'
Accelerometer
'
)
;
runGenericSensorOnerror
(
'
GravitySensor
'
)
;
runGenericSensorOnerror
(
'
LinearAccelerationSensor
'
)
;
<
Expand Down
140 changes: 140 additions & 0 deletions testing/web-platform/tests/generic-sensor/README.md
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
.
Loading

0 comments on commit 132ad92

Please sign in to comment.