Update web-platform-tests to revision a3a4442b04c37155f81c4ad4ae9c06339f76ce14

This commit is contained in:
WPT Sync Bot 2019-09-19 10:23:35 +00:00
parent 7b653cad7b
commit ba0f5f096a
204 changed files with 4645 additions and 1001 deletions

View file

@ -5,7 +5,7 @@
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<script src="/generic-sensor/resources/generic-sensor-helpers.js"></script>
<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script>
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
<div id="log"></div>

View file

@ -5,9 +5,25 @@
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<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>
runGenericSensorTests('GeolocationSensor');
'use strict';
const kReadings = {
readings: [
[1.12345, 2.12345, 3.12345, 0.95, 0.96, 4.12345, 5.123]
],
expectedReadings: [
[1.12345, 2.12345, 3.12345, 0.95, 0.96, 4.12345, 5.123]
]
};
runGenericSensorTests(
'GeolocationSensor',
kReadings,
verifyXyzSensorReading,
['geolocation']);
</script>

View file

@ -1,19 +0,0 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test: onerror</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://wicg.github.io/geolocation-sensor/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<h2>Precondition</h2>
<ol>
<li>
Disable the Geolocation sensor or run test on a device without Geolocation sensor.
</li>
</ol>
<script>
runGenericSensorOnerror('GeolocationSensor');
</script>