Bug 1580425 [wpt PR 18989] - [geolocation] Rename interfaces and remove [NoInterfaceObject], a=testonly

Automatic update from web-platform-tests
[geolocation] Rename interfaces and remove [NoInterfaceObject]

This change renames the following interfaces and removes the
[NoInterfaceObject] annotation so that these types are now exposed to
script:

  Coordinates   -> GeolocationCoordinates
  Position      -> GeolocationPosition
  PositionError -> GeolocationPositionError

This is done in response to an effort to remove this annotation from
WebIDL.

Spec pull requests (merged):
https://github.com/w3c/geolocation-api/pull/20
https://github.com/w3c/geolocation-api/pull/23

Intent to Ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/Xig9oewsQMA/eyC7dbtiAAAJ

Bug: 931847
Change-Id: I38d0172afc33d5757b664e2807356d8727e82d7f

--

wpt-commits: 99a9f0b73bd0ac3a739dfe2157b93578b760ed5d
wpt-pr: 18989
This commit is contained in:
Reilly Grant 2019-09-13 10:49:40 +00:00 коммит произвёл moz-wptsync-bot
Родитель 023c4ea23e
Коммит 7ea382c255
1 изменённых файлов: 14 добавлений и 16 удалений

Просмотреть файл

@ -20,31 +20,29 @@ function successCallback(position)
var ii, oldval;
/*
[NoInterfaceObject]
interface Position {
readonly attribute Coordinates coords;
interface GeolocationPosition {
readonly attribute GeolocationCoordinates coords;
readonly attribute DOMTimeStamp timestamp;
};
*/
test(function() {
assert_equals(position.toString(), "[object Position]",
"Position.toString should result in '[object Position]' was: " + position.toString());
}, "Position toString");
assert_equals(position.toString(), "[object GeolocationPosition]",
"position.toString should result in '[object GeolocationPosition]' was: " + position.toString());
}, "GeolocationPosition toString");
test(function() {
assert_equals(position.coords.toString(), "[object Coordinates]",
"position.coords.toString should result in '[object Coordinates]' was: " + position.coords.toString());
}, "Position.coordinates toString");
assert_equals(position.coords.toString(), "[object GeolocationCoordinates]",
"position.coords.toString should result in '[object GeolocationCoordinates]' was: " + position.coords.toString());
}, "GeolocationCoordinates toString");
test(function() {
assert_equals(typeof(position.timestamp), "number",
"Position.timestamp should be of type 'number' was: " + typeof(position.timestamp));
}, "Position.timestamp is type number");
"position.timestamp should be of type 'number' was: " + typeof(position.timestamp));
}, "GeolocationPosition.timestamp is type number");
/*
[NoInterfaceObject]
interface Coordinates {
interface GeolocationCoordinates {
readonly attribute double latitude;
readonly attribute double longitude;
readonly attribute double? altitude;
@ -103,10 +101,10 @@ function BadSuccessCallback(position)
function errorCallback(error)
{
test(function() {
assert_equals(error.toString(), "[object PositionError]",
"PositionError.toString should result in '[object PositionError]' was: " +
assert_equals(error.toString(), "[object GeolocationPositionError]",
"error.toString should result in '[object GeolocationPositionError]' was: " +
error.toString());
}, "PositionError toString");
}, "GeolocationPositionError toString");
test(function() {
assert_equals(error.PERMISSION_DENIED, 1,