Update web-platform-tests to revision 332b7c4e711d75ead4c0dfbf7f6f0b683206756d

This commit is contained in:
WPT Sync Bot 2019-09-25 10:24:05 +00:00
parent 46611b012e
commit b60afa18f5
389 changed files with 7767 additions and 2421 deletions

View file

@ -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.");
}