Update web-platform-tests to revision 2660fc486f7027c913863d48a8843942f0c0365e

This commit is contained in:
WPT Sync Bot 2019-09-12 10:30:30 +00:00
parent 96de31b463
commit c413a1139e
455 changed files with 8535 additions and 2067 deletions

View file

@ -1,28 +1,28 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Geolocation API Specification 2nd Edition (https://www.w3.org/TR/geolocation-API/)
// Source: Geolocation API Specification (https://w3c.github.io/geolocation-api/)
partial interface Navigator {
readonly attribute Geolocation geolocation;
[SameObject] readonly attribute Geolocation geolocation;
};
[NoInterfaceObject]
[Exposed=Window]
interface Geolocation {
void getCurrentPosition(PositionCallback successCallback,
optional PositionErrorCallback errorCallback,
optional PositionOptions options);
optional PositionOptions options = {});
long watchPosition(PositionCallback successCallback,
optional PositionErrorCallback errorCallback,
optional PositionOptions options);
optional PositionOptions options = {});
void clearWatch(long watchId);
};
callback PositionCallback = void (Position position);
callback PositionCallback = void (GeolocationPosition position);
callback PositionErrorCallback = void (PositionError positionError);
callback PositionErrorCallback = void (GeolocationPositionError positionError);
dictionary PositionOptions {
boolean enableHighAccuracy = false;
@ -30,14 +30,14 @@ dictionary PositionOptions {
[Clamp] unsigned long maximumAge = 0;
};
[NoInterfaceObject]
interface Position {
readonly attribute Coordinates coords;
[Exposed=Window, SecureContext]
interface GeolocationPosition {
readonly attribute GeolocationCoordinates coords;
readonly attribute DOMTimeStamp timestamp;
};
[NoInterfaceObject]
interface Coordinates {
[Exposed=Window, SecureContext]
interface GeolocationCoordinates {
readonly attribute double latitude;
readonly attribute double longitude;
readonly attribute double? altitude;
@ -47,8 +47,8 @@ interface Coordinates {
readonly attribute double? speed;
};
[NoInterfaceObject]
interface PositionError {
[Exposed=Window]
interface GeolocationPositionError {
const unsigned short PERMISSION_DENIED = 1;
const unsigned short POSITION_UNAVAILABLE = 2;
const unsigned short TIMEOUT = 3;