- From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
- Date: Tue, 09 Apr 2024 03:32:14 +0000
- To: public-geolocation@w3.org
Ok, cool... so the question is: does the API "echo" or does it "set" a geolocation position (or both). I was originally thinking it would "echo", in that one would: ```JS await new Promise((resolve, reject) => navigator.geolocation.getCurrentPosition(resolve, reject); await test_driver.echoLocation(object); }); ``` Similarly, with `watchPosition()`, it would allow you to echo positions as needed: ```JS navigator.geolocation.watchPosition(updateMap); await test_driver.echoLocation(somePosition); doSomething(); await test_driver.echoLocation(anotherPosition); ``` And so on... Just for completeness, it doesn't look like we need to deal with errors in testing API... I think there are (somewhat convoluted ways) to test for `TIMEOUT` and `POSITION_UNAVAILABLE`. And I guess we would need to figure out what to do when passing bogus positions to the testing API. -- GitHub Notification of comment by marcoscaceres Please view or discuss this issue at https://github.com/w3c/geolocation-api/issues/146#issuecomment-2044089923 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 9 April 2024 03:32:15 UTC