mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'b7c1d80f991820c17aaae0477052c30d7f699eba'
This commit is contained in:
parent
189236862a
commit
274846e69e
217 changed files with 7520 additions and 2797 deletions
|
@ -6,23 +6,9 @@
|
|||
// https://www.w3.org/TR/geolocation-API/
|
||||
|
||||
window.onload = async () => {
|
||||
await test_driver.set_permission({ name: "geolocation" }, "denied");
|
||||
const positionError = await new Promise((resolve, reject) => {
|
||||
navigator.geolocation.getCurrentPosition(reject, resolve);
|
||||
});
|
||||
|
||||
await test_driver.set_permission({ name: "geolocation" }, "granted");
|
||||
const position = await new Promise((resolve, reject) => {
|
||||
navigator.geolocation.getCurrentPosition(resolve, reject);
|
||||
});
|
||||
|
||||
idl_test(["geolocation"], ["hr-time", "html"], (idl_array) => {
|
||||
idl_array.add_objects({
|
||||
Navigator: ["navigator"],
|
||||
Geolocation: ["navigator.geolocation"],
|
||||
GeolocationPositionError: [positionError],
|
||||
GeolocationPosition: [position],
|
||||
GeolocationCoordinates: [position.coords],
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue