Revision 48db975c5af44506aa2cd16c7f9693112f82ae1e authored by Michael[tm] Smith on 12 March 2014, 14:58:15 UTC, committed by Michael[tm] Smith on 12 March 2014, 14:58:15 UTC
1 parent 24042ae
Channel_postMessage_clone_port_error.htm
<!DOCTYPE html>
<html>
<head>
<title> postMessage() DataCloneError: cloning source port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
var description = "Test Description: Throw a DataCloneError if transfer array in postMessage contains source port.";
test(function()
{
var channel = new MessageChannel();
channel.port1.start();
assert_throws("DATA_CLONE_ERR", function()
{
channel.port1.postMessage("ports", [channel.port1]);
});
}, description);
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...