Update web-platform-tests to revision b'b7c1d80f991820c17aaae0477052c30d7f699eba'

This commit is contained in:
WPT Sync Bot 2022-11-30 01:45:48 +00:00
parent 189236862a
commit 274846e69e
217 changed files with 7520 additions and 2797 deletions

View file

@ -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],
});
});
};