https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1b5ce4ad3817e7b7247d7ff0f76b81877fce0d89 authored by Andrew Comminos on 21 December 2018, 21:45:26 UTC
Perform flexbox child hit testing by testing all children atomically
Tip revision: 1b5ce4a
postMessage_clone_port_error.htm
<!DOCTYPE html>
<title> postMessage(): cloning source port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
  var channel = new MessageChannel();
  channel.port1.start();
  assert_throws("DataCloneError", function() {
    channel.port1.postMessage("ports", [channel.port1]);
  });
});
</script>
back to top