mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 332b7c4e711d75ead4c0dfbf7f6f0b683206756d
This commit is contained in:
parent
46611b012e
commit
b60afa18f5
389 changed files with 7767 additions and 2421 deletions
|
@ -56,4 +56,13 @@ if (topLevelDocument) {
|
|||
// Validate the nested-iframe scenario where the cross-origin frame containing
|
||||
// the tests is not the first child.
|
||||
RunTestsInNestedIFrame("http://{{domains[www]}}:{{ports[http][0]}}/storage-access-api/hasStorageAccess.sub.window.html?testCase=nested-cross-origin-frame&allowed=false&rootdocument=false");
|
||||
|
||||
// Run tests specific to the top-level window only here. They won't get re-run inside of various iframes.
|
||||
promise_test(() => {
|
||||
let createdDocument = document.implementation.createDocument("", null);
|
||||
|
||||
return createdDocument.hasStorageAccess().then(hasAccess => {
|
||||
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.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue