Update web-platform-tests to revision c0fbd59769588391d78838086bd02ad394301655

This commit is contained in:
WPT Sync Bot 2018-06-05 21:09:27 -04:00
parent a07c718895
commit a3df7c3a3c
105 changed files with 1922 additions and 1186 deletions

View file

@ -3,7 +3,8 @@
<head>
<title>Access to sandbox iframe</title>
<link rel="author" title="Kinuko Yasuda" href="mailto:kinuko@chromium.org">
<link rel="help" href="http://www.w3.org/html/wg/drafts/html/master/browsers.html#sandboxing">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#sandboxed-origin-browsing-context-flag">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#integration-with-idl">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
@ -17,9 +18,13 @@
called++;
}
function loaded() {
assert_equals(document.getElementById('sandboxedframe').contentWindow.document, undefined);
assert_equals(called, 0);
t.done();
t.step(() => {
assert_throws("SecurityError", () => {
document.getElementById('sandboxedframe').contentWindow.document;
});
assert_equals(called, 0);
t.done();
});
}
</script>