Skip to content

Commit

Permalink
Add functional tests for Geolocation Sensor (web-platform-tests#8276)
Browse files Browse the repository at this point in the history
and add @Honry as owner
  • Loading branch information
Honry authored Nov 21, 2017
1 parent a461ad3 commit efe909a
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions geolocation-sensor/GeolocationSensor.https.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test</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>
<script>

runGenericSensorTests(GeolocationSensor);

</script>
13 changes: 13 additions & 0 deletions geolocation-sensor/GeolocationSensor_insecure_context.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeolocationSensor Test: insecure context</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>
<script>

runGenericSensorInsecureContext("GeolocationSensor");

</script>
19 changes: 19 additions & 0 deletions geolocation-sensor/GeolocationSensor_onerror-manual.https.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!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>
1 change: 1 addition & 0 deletions geolocation-sensor/OWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@anssiko
@Honry

0 comments on commit efe909a

Please sign in to comment.