https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 669e6d2559b0b9403c01cd6f7837c951692738f4 authored by Darren Shen on 03 April 2018, 10:47:38 UTC
[css-typed-om] Add a few keyword properties.
Tip revision: 669e6d2
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