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

This commit is contained in:
WPT Sync Bot 2023-02-15 01:36:04 +00:00
parent 0720f4f736
commit 8bfdc02dd8
590 changed files with 11442 additions and 3709 deletions

View file

@ -13,12 +13,16 @@ promise_test(async () => {
assert_equals(hasAccess, expectAccessAllowed, "Access should be granted by default: " + expectAccessAllowed);
}, "[" + testPrefix + "] document.hasStorageAccess() should be allowed by default: " + expectAccessAllowed);
promise_test(async () => {
promise_test(async (t) => {
const description = "Promise should reject when called on a generated document not part of the DOM.";
const createdDocument = document.implementation.createDocument("", null);
const hasAccess = await createdDocument.hasStorageAccess();
assert_false(hasAccess, "Access should be denied to a generated document not part of the DOM.");
}, "[" + testPrefix + "] document.hasStorageAccess() should work on a document object.");
// Can't use `promise_rejects_dom` here, since the error comes from the wrong global.
await createdDocument.hasStorageAccess().then(
t.unreached_func("Should have rejected: " + description), (e) => {
assert_equals(e.name, 'InvalidStateError', description);
});
}, "[" + testPrefix + "] document.hasStorageAccess() should reject in a document that isn't fully active.");
// Logic to load test cases within combinations of iFrames.
if (topLevelDocument) {