Update web-platform-tests to revision b'0802d8bd01e17178d9cd2355e6fbaf3c098e7953'

This commit is contained in:
WPT Sync Bot 2022-11-11 01:30:14 +00:00
parent aa427dd412
commit 9ed042224a
254 changed files with 10823 additions and 1484 deletions

View file

@ -24,8 +24,7 @@ promise_test(
await test_driver.set_permission(
{name: 'storage-access'}, 'granted');
const {promise} = await RunCallbackWithGesture('b1', () => document.requestStorageAccess());
await promise;
await RunCallbackWithGesture(() => document.requestStorageAccess());
// Cleanup
await test_driver.set_permission(
@ -40,12 +39,10 @@ if (testPrefix == 'cross-origin-frame' || testPrefix == 'nested-cross-origin-fra
await test_driver.set_permission(
{name: 'storage-access'}, 'prompt');
const {promise} = RunCallbackWithGesture('b2', () => {
await RunCallbackWithGesture(() => {
return promise_rejects_dom(t, "NotAllowedError", document.requestStorageAccess(),
"document.requestStorageAccess() call without permission");
});
await promise;
},
'[' + testPrefix +
'] document.requestStorageAccess() should be rejected with a NotAllowedError without permission grant');
@ -55,13 +52,11 @@ if (testPrefix == 'cross-origin-frame' || testPrefix == 'nested-cross-origin-fra
await test_driver.set_permission(
{name: 'storage-access'}, 'denied');
const {promise} = RunCallbackWithGesture('b3', () => {
await RunCallbackWithGesture(() => {
return promise_rejects_dom(t, "NotAllowedError", document.requestStorageAccess(),
"document.requestStorageAccess() call without permission");
});
await promise;
// Cleanup
await test_driver.set_permission(
{name: 'storage-access'}, 'prompt');