From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- testing/web-platform/tests/geolocation-API/OWNERS | 2 + .../tests/geolocation-API/PositionOptions.html | 113 +++++++++++++++ .../geolocation-API/clearWatch_TypeError.html | 23 ++++ .../geolocation-API/getCurrentPosition_IDL.html | 152 +++++++++++++++++++++ .../getCurrentPosition_TypeError.html | 55 ++++++++ .../getCurrentPosition_permission-manual.html | 21 +++ ...getCurrentPosition_permission_allow-manual.html | 32 +++++ .../getCurrentPosition_permission_allow.html | 44 ++++++ .../getCurrentPosition_permission_deny-manual.html | 34 +++++ .../getCurrentPosition_permission_deny.html | 34 +++++ .../tests/geolocation-API/interfaces.html | 95 +++++++++++++ .../web-platform/tests/geolocation-API/support.js | 30 ++++ .../geolocation-API/watchPosition_TypeError.html | 55 ++++++++ .../watchPosition_permission-manual.html | 21 +++ .../watchPosition_permission_deny.html | 36 +++++ 15 files changed, 747 insertions(+) create mode 100644 testing/web-platform/tests/geolocation-API/OWNERS create mode 100644 testing/web-platform/tests/geolocation-API/PositionOptions.html create mode 100644 testing/web-platform/tests/geolocation-API/clearWatch_TypeError.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_IDL.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_TypeError.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_permission-manual.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow-manual.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny-manual.html create mode 100644 testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny.html create mode 100644 testing/web-platform/tests/geolocation-API/interfaces.html create mode 100644 testing/web-platform/tests/geolocation-API/support.js create mode 100644 testing/web-platform/tests/geolocation-API/watchPosition_TypeError.html create mode 100644 testing/web-platform/tests/geolocation-API/watchPosition_permission-manual.html create mode 100644 testing/web-platform/tests/geolocation-API/watchPosition_permission_deny.html (limited to 'testing/web-platform/tests/geolocation-API') diff --git a/testing/web-platform/tests/geolocation-API/OWNERS b/testing/web-platform/tests/geolocation-API/OWNERS new file mode 100644 index 000000000..64e2488b4 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/OWNERS @@ -0,0 +1,2 @@ +@zqzhang +@jdm diff --git a/testing/web-platform/tests/geolocation-API/PositionOptions.html b/testing/web-platform/tests/geolocation-API/PositionOptions.html new file mode 100644 index 000000000..9d4985eb7 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/PositionOptions.html @@ -0,0 +1,113 @@ + + +Geolocation Test: PositionOptions tests + + + + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please allow.

+
+ + diff --git a/testing/web-platform/tests/geolocation-API/clearWatch_TypeError.html b/testing/web-platform/tests/geolocation-API/clearWatch_TypeError.html new file mode 100644 index 000000000..d752ebac1 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/clearWatch_TypeError.html @@ -0,0 +1,23 @@ + + +Geolocation Test: clearWatch TypeError tests + + + + + +
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_IDL.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_IDL.html new file mode 100644 index 000000000..2a85505b8 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_IDL.html @@ -0,0 +1,152 @@ + + +Geolocation Test: getCurrentPosition tests + + + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please allow.

+
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_TypeError.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_TypeError.html new file mode 100644 index 000000000..a2e578469 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_TypeError.html @@ -0,0 +1,55 @@ + + +Geolocation Test: getCurrentPosition TypeError tests + + + + + +
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission-manual.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission-manual.html new file mode 100644 index 000000000..20003cdff --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission-manual.html @@ -0,0 +1,21 @@ + + +Call getCurrentPosition, check that there is UI appearing with the document host + + +

Clear all Geolocation permissions before running this test.

+ +

Test passes if there is a permission prompt including the host and no FAIL.

+
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow-manual.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow-manual.html new file mode 100644 index 000000000..4628275e3 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow-manual.html @@ -0,0 +1,32 @@ + + +User asked to approve/remember, then asked to revoke, then reload. The permission dialogue should reappear + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please allow.

+ +
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow.html new file mode 100644 index 000000000..dfadcb09d --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_allow.html @@ -0,0 +1,44 @@ + + +Geolocation Test: getCurrentPosition location access allowed + + + + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please allow.

+
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny-manual.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny-manual.html new file mode 100644 index 000000000..b468a65da --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny-manual.html @@ -0,0 +1,34 @@ + + +User asked to deny/remember, then asked to revoke, then reload. The permission dialogue should reappear + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please deny.

+ +
+ + diff --git a/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny.html b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny.html new file mode 100644 index 000000000..26fe8899e --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/getCurrentPosition_permission_deny.html @@ -0,0 +1,34 @@ + + +Geolocation Test: getCurrentPosition location access denied + + + + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please deny.

+
+ + + diff --git a/testing/web-platform/tests/geolocation-API/interfaces.html b/testing/web-platform/tests/geolocation-API/interfaces.html new file mode 100644 index 000000000..0db420465 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/interfaces.html @@ -0,0 +1,95 @@ + + +Geolocation API IDL tests + + + + + + + +

Geolocation API IDL tests

+
+ + + + + + + diff --git a/testing/web-platform/tests/geolocation-API/support.js b/testing/web-platform/tests/geolocation-API/support.js new file mode 100644 index 000000000..c85b5c87f --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/support.js @@ -0,0 +1,30 @@ +var geo; + +setup(function() { + geo = navigator.geolocation; +}, {explicit_done: true}); + +// The spec states that an implementation SHOULD acquire user permission before +// beggining the position acquisition steps. If an implementation follows this +// advice, set the following flag to aid debugging. +var isUsingPreemptivePermission = false; + + +var dummyFunction = function() {}; + +var positionToString = function(pos) { + var c = pos.coords; + return '[lat: ' + c.latitude + ', lon: ' + c.longitude + ', acc: ' + c.accuracy + ']'; +}; + +var errorToString = function(err) { + var codeString; + switch(err.code) { + case err.UNKNOWN_ERROR: codeString = 'UNKNOWN_ERROR'; break; + case err.PERMISSION_DENIED: codeString = 'PERMISSION_DENIED'; break; + case err.POSITION_UNAVAILABLE: codeString = 'POSITION_UNAVAILABLE'; break; + case err.TIMEOUT: codeString = 'TIMEOUT'; break; + default: codeString = 'undefined error code'; break; + } + return '[code: ' + codeString + ' (' + err.code + '), message: ' + (err.message ? err.message : '(empty)') + ']'; +}; diff --git a/testing/web-platform/tests/geolocation-API/watchPosition_TypeError.html b/testing/web-platform/tests/geolocation-API/watchPosition_TypeError.html new file mode 100644 index 000000000..9d7efd5e7 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/watchPosition_TypeError.html @@ -0,0 +1,55 @@ + + +Geolocation Test: watchPosition TypeError tests + + + + + +
+ + diff --git a/testing/web-platform/tests/geolocation-API/watchPosition_permission-manual.html b/testing/web-platform/tests/geolocation-API/watchPosition_permission-manual.html new file mode 100644 index 000000000..e00980192 --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/watchPosition_permission-manual.html @@ -0,0 +1,21 @@ + + +Call watchPosition, check that there is UI appearing with the document host + + +

Clear all Geolocation permissions before running this test.

+ +

Test passes if there is a permission prompt including the host and no FAIL.

+
+ + diff --git a/testing/web-platform/tests/geolocation-API/watchPosition_permission_deny.html b/testing/web-platform/tests/geolocation-API/watchPosition_permission_deny.html new file mode 100644 index 000000000..831a1544f --- /dev/null +++ b/testing/web-platform/tests/geolocation-API/watchPosition_permission_deny.html @@ -0,0 +1,36 @@ + + +Geolocation Test: watchPosition location access denied + + + + + +

Clear all Geolocation permissions before running this test. If prompted for permission, please deny.

+
+ + -- cgit v1.2.3