mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
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:
parent
9e380614ee
commit
65588cd5df
28 changed files with 494 additions and 5 deletions
2
tests/wpt/include.ini
vendored
2
tests/wpt/include.ini
vendored
|
@ -148,6 +148,8 @@ skip: true
|
|||
skip: false
|
||||
[gamepad]
|
||||
skip: false
|
||||
[geolocation]
|
||||
skip: false
|
||||
[hr-time]
|
||||
skip: false
|
||||
[html]
|
||||
|
|
3
tests/wpt/meta/geolocation/__dir__.ini
vendored
Normal file
3
tests/wpt/meta/geolocation/__dir__.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
prefs: [
|
||||
"dom_geolocation_enabled:true",
|
||||
]
|
6
tests/wpt/meta/geolocation/getCurrentPosition_TypeError.https.html.ini
vendored
Normal file
6
tests/wpt/meta/geolocation/getCurrentPosition_TypeError.https.html.ini
vendored
Normal 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
|
6
tests/wpt/meta/geolocation/idlharness.https.window.js.ini
vendored
Normal file
6
tests/wpt/meta/geolocation/idlharness.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[idlharness.https.window.html]
|
||||
[GeolocationPosition interface: operation toJSON()]
|
||||
expected: FAIL
|
||||
|
||||
[GeolocationCoordinates interface: operation toJSON()]
|
||||
expected: FAIL
|
13
tests/wpt/meta/geolocation/non-secure-contexts.http.html.ini
vendored
Normal file
13
tests/wpt/meta/geolocation/non-secure-contexts.http.html.ini
vendored
Normal 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
|
3
tests/wpt/meta/geolocation/permission.https.html.ini
vendored
Normal file
3
tests/wpt/meta/geolocation/permission.https.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[permission.https.html]
|
||||
[Query "geolocation" powerful feature]
|
||||
expected: FAIL
|
4
tests/wpt/meta/geolocation/tojson.https.window.js.ini
vendored
Normal file
4
tests/wpt/meta/geolocation/tojson.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[tojson.https.window.html]
|
||||
expected: ERROR
|
||||
[Test toJSON() in GeolocationPosition and GeolocationCoordinates.]
|
||||
expected: NOTRUN
|
6
tests/wpt/meta/geolocation/watchPosition_TypeError.https.html.ini
vendored
Normal file
6
tests/wpt/meta/geolocation/watchPosition_TypeError.https.html.ini
vendored
Normal 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
|
4
tests/wpt/meta/geolocation/watchposition-timeout.https.window.js.ini
vendored
Normal file
4
tests/wpt/meta/geolocation/watchposition-timeout.https.window.js.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[watchposition-timeout.https.window.html]
|
||||
expected: ERROR
|
||||
[Passing timeout=1 should not cause multiple timeout errors]
|
||||
expected: NOTRUN
|
Loading…
Add table
Add a link
Reference in a new issue