Revision 89daad32c029798b7203a36f21598fcba470e07d authored by Anthony Ramine on 06 April 2018, 10:22:01 UTC, committed by Anthony Ramine on 06 April 2018, 10:22:01 UTC
See https://github.com/w3c/web-platform-tests/issues/10343#issuecomment-379211826

I know we can't stop progress in WPT just because Servo is stuck in the past,
but let's not make all IDL-related tests fail in it for something that can be
avoided so easily.
1 parent 603e277
Raw File
025-1.js
importScripts("/resources/testharness.js");

test(function() {
  var ch = new MessageChannel();
  assert_true(ch.port1 instanceof MessagePort,
              "Worker MessageChannel's port not an instance of MessagePort");
}, "Worker MessageChannel's port should be an instance of MessagePort");

test(function() {
  assert_throws(new TypeError(), function() {
    new MessagePort()
  }, "MessagePort is [[Callable]]");
}, "Worker MessagePort should not be [[Callable]]");

done();
back to top