Update web-platform-tests to revision 47ff38a34af6d74b80ffd3e073f7504227ce4668

This commit is contained in:
WPT Sync Bot 2020-11-07 08:19:55 +00:00
parent 0aff4e1d57
commit 5a86c734fc
93 changed files with 2700 additions and 250 deletions

View file

@ -4,11 +4,10 @@
<link rel="help" href="http://www.w3.org/TR/geolocation-API/#position_options_interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src='support.js'></script>
<p>Clear all Geolocation permissions before running this test. If prompted for permission, please allow.</p>
<div id="log"></div>
<script>
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00123
test(function() {
@ -35,7 +34,9 @@ test(function() {
}, 'Call watchPosition with wrong type for enableHighAccuracy. No exception expected.');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00086, 00088, 00091 and 00092
test(function() {
promise_test(async function() {
await test_driver.set_permission({name: 'geolocation'}, 'granted');
var t86 = async_test('Set timeout and maximumAge to 0, check that timeout error raised (getCurrentPosition)'),
t88 = async_test('Set timeout and maximumAge to 0, check that timeout error raised (watchPosition)'),
t91 = async_test('Check that a negative timeout value is equivalent to a 0 timeout value (getCurrentLocation)'),