Update web-platform-tests to revision 66dc9c93f2c8ebd7c8fdc28fae20d92713c97806

This commit is contained in:
WPT Sync Bot 2019-06-26 10:22:48 +00:00
parent e488ea750b
commit 12f4ae132e
1651 changed files with 8123 additions and 14152 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>A test page that messes with a given SharedArrayBuffer via MessageChannel</title>
<script src="test-incrementer.js"></script>
<script>
const channel = new MessageChannel();
window.parent.postMessage(channel.port2, '*', [channel.port2]);
setupDestinationIncrementer(channel.port1, channel.port1);
</script>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Structured cloning of SharedArrayBuffers into windows using MessageChannel</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#structuredserialize">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/test-incrementer.js"></script>
<div id="log"></div>
<script>
promise_test(t => {
return new Promise(resolve => {
const iframe = document.createElement("iframe");
window.onmessage = t.step_func((message) => {
// data will be a MessagePort
resolve(testSharingViaIncrementerScript(t, message.data, "window", message.data, "iframe"));
});
iframe.src = "resources/incrementer-iframe-messagechannel.html";
document.body.appendChild(iframe);
});
}, "postMessaging to a same-origin iframe via MessageChannel allows them to see each others' modifications");
</script>