https://github.com/web-platform-tests/wpt
Revision be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC, committed by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
1 parent 7c51ebb
Raw File
Tip revision: be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
Use stable error messages in the link onload event tests by default.
Tip revision: be666a5
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