script: Stubs for geolocation interfaces (#39584)

Needed for #39526; stubs out all the necessary interface from
https://www.w3.org/TR/geolocation/.

Testing: WPT

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-10-01 21:17:36 -07:00 committed by GitHub
parent 9e380614ee
commit 65588cd5df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 494 additions and 5 deletions

View file

@ -148,6 +148,8 @@ skip: true
skip: false
[gamepad]
skip: false
[geolocation]
skip: false
[hr-time]
skip: false
[html]

View file

@ -0,0 +1,3 @@
prefs: [
"dom_geolocation_enabled:true",
]

View file

@ -0,0 +1,6 @@
[getCurrentPosition_TypeError.https.html]
[Call getCurrentPosition() with wrong type for third argument. Exception expected.]
expected: FAIL
[Calling getCurrentPosition() with a legacy event handler objects.]
expected: FAIL

View file

@ -0,0 +1,6 @@
[idlharness.https.window.html]
[GeolocationPosition interface: operation toJSON()]
expected: FAIL
[GeolocationCoordinates interface: operation toJSON()]
expected: FAIL

View file

@ -0,0 +1,13 @@
[non-secure-contexts.http.html]
expected: TIMEOUT
[When in a non-secure context, getCurrentPosition()'s errorCallback is asynchronously called.]
expected: TIMEOUT
[When in a non-secure context, watchPosition()'s errorCallback is asynchronously called.]
expected: NOTRUN
[When in a non-secure context, the getCurrentPosition() errorCallBack gets a GeolocationPositionError with the correct error code.]
expected: NOTRUN
[When in a non-secure context, the watchPosition() errorCallBack gets a GeolocationPositionError with the correct error code.]
expected: NOTRUN

View file

@ -0,0 +1,3 @@
[permission.https.html]
[Query "geolocation" powerful feature]
expected: FAIL

View file

@ -0,0 +1,4 @@
[tojson.https.window.html]
expected: ERROR
[Test toJSON() in GeolocationPosition and GeolocationCoordinates.]
expected: NOTRUN

View file

@ -0,0 +1,6 @@
[watchPosition_TypeError.https.html]
[Call watchPosition() with wrong type for third argument. Exception expected.]
expected: FAIL
[Calling watchPosition() with a legacy event handler object.]
expected: FAIL

View file

@ -0,0 +1,4 @@
[watchposition-timeout.https.window.html]
expected: ERROR
[Passing timeout=1 should not cause multiple timeout errors]
expected: NOTRUN