mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision b'0802d8bd01e17178d9cd2355e6fbaf3c098e7953'
This commit is contained in:
parent
aa427dd412
commit
9ed042224a
254 changed files with 10823 additions and 1484 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue