forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functional tests for Geolocation Sensor (web-platform-tests#8276)
and add @Honry as owner
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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,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
13
geolocation-sensor/GeolocationSensor_insecure_context.html
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,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
19
geolocation-sensor/GeolocationSensor_onerror-manual.https.html
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,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> |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
@anssiko | ||
@Honry |