mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision b'b6f6bf16fe6069aed53d28af86a79b8ff4963844'
This commit is contained in:
parent
0720f4f736
commit
8bfdc02dd8
590 changed files with 11442 additions and 3709 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue