mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision c0fbd59769588391d78838086bd02ad394301655
This commit is contained in:
parent
a07c718895
commit
a3df7c3a3c
105 changed files with 1922 additions and 1186 deletions
|
@ -1,10 +0,0 @@
|
|||
<script>
|
||||
onload = function() {opener.next()}
|
||||
document.write(Math.random());
|
||||
</script>
|
||||
|
||||
<form method="POST" action="">
|
||||
<input type=hidden name=test value=test>
|
||||
<input type=submit>
|
||||
</form>
|
||||
<button onclick="location.reload()">Reload</button>
|
|
@ -4,7 +4,7 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var win = window.open("reload_post_1-1.html");
|
||||
var win = window.open("resources/reload_post_1-1.py");
|
||||
var t = async_test();
|
||||
var posted = false;
|
||||
var reloaded = false;
|
|
@ -0,0 +1,13 @@
|
|||
def main(request, response):
|
||||
headers = [("Content-Type", "text/html")]
|
||||
return headers, '''
|
||||
<script>
|
||||
onload = function() {opener.next()}
|
||||
document.write(Math.random());
|
||||
</script>
|
||||
<form method="POST" action="">
|
||||
<input type=hidden name=test value=test>
|
||||
<input type=submit>
|
||||
</form>
|
||||
<button onclick="location.reload()">Reload</button>
|
||||
'''
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue