fune/testing/web-platform/tests/orientation-sensor/AbsoluteOrientationSensor.https.html
Wanming Lin 1fc9a95675 Bug 1579320 [wpt PR 18886] - [sensor] Upstream sensor layout tests to wpt, a=testonly
Automatic update from web-platform-tests
[sensor] Upstream sensor layout tests to wpt

Rewrote /external/wpt/resources/chromium/generic_sensor_mocks.js to align with
/http/tests/resources/sensor-helpers.js, but excluded those functions specific
for device orientation.

Merged tests from /sensor/resources/generic-sensor-tests.js to
/external/wpt/generic-sensor/generic-sensor-tests.js

Moved common utils into /external/wpt/generic-sensor/resources/generic-sensor-helpers.js

Merged tests from /sensor/*.html to corresponding test folders under /external/wpt/,
e.g. sensor/orientation-sensor.html  -> external/wpt/orientation-sensor/OrientationSensor.https.html

Updated all sensor tests under external/wpt/ to adapt to sensor mojom mocks

Deleted folder web_tests/sensor/

Bug: 816462
Change-Id: I614ce82b7c90530b7a268d8f6a0f72cc96ea3d6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1770158
Commit-Queue: Wanming Lin <wanming.lin@intel.com>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695905}

--

wpt-commits: db7bad01d261a21cb99405abb57f9dd7a421e147
wpt-pr: 18886
2019-09-20 21:49:54 +00:00

23 lines
847 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>OrientationSensor Test</title>
<meta name="timeout" content="long">
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://w3c.github.io/orientation-sensor/">
<link rel="help" href="https://w3c.github.io/sensors/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/resources/generic-sensor-helpers.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<script src="/orientation-sensor/orientation-sensor-tests.js"></script>
<script>
runGenericSensorTests(
'AbsoluteOrientationSensor',
kReadings,
verifyQuatSensorReading,
['accelerometer', 'gyroscope', 'magnetometer']);
runOrienationSensorTests('AbsoluteOrientationSensor');
</script>