mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision de3ae39cb59880a8245431e7f09817a2a4dad1a3
This commit is contained in:
parent
0c5b020163
commit
b322aa3943
131 changed files with 2717 additions and 600 deletions
|
@ -16,7 +16,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<iframe src="support/sandboxed-post-message-to-parent.sub.html?sandbox=allow-scripts"></iframe>
|
||||
<iframe src="support/sandboxed-post-message-to-parent.html?sandbox=allow-scripts"></iframe>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
window.opener.postMessage(window.testProperty, "*");
|
||||
</script>
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
window.opener.postMessage(window.testProperty, "*");
|
||||
</script>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
var t = async_test("Window object should not be reused");
|
||||
|
||||
window.onmessage = t.step_func_done(function(e) {
|
||||
assert_equals(e.data, undefined);
|
||||
});
|
||||
|
||||
w = window.open("support/sandboxed-post-property-to-opener.html?sandbox=allow-scripts","","width=400,height=400");
|
||||
w.testProperty = "test";
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
var t = async_test("Window object should be reused");
|
||||
|
||||
window.onmessage = t.step_func_done(function(e) {
|
||||
assert_equals(e.data, "test");
|
||||
});
|
||||
|
||||
w = window.open("support/unsandboxed-post-property-to-opener.html","","width=400,height=400");
|
||||
w.testProperty = "test";
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue