diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webmessaging/MessagePort_initial_disabled.any.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/MessagePort_initial_disabled.any.js b/testing/web-platform/tests/webmessaging/MessagePort_initial_disabled.any.js new file mode 100644 index 0000000000..b897858175 --- /dev/null +++ b/testing/web-platform/tests/webmessaging/MessagePort_initial_disabled.any.js @@ -0,0 +1,10 @@ +// META: title=MessageChannel: port message queue is initially disabled + +// TODO: duplicate of ./message-channels/no-start.any.js? + +async_test(function(t) { + var channel = new MessageChannel(); + channel.port2.addEventListener("message", t.unreached_func(), true); + channel.port1.postMessage("ping"); + setTimeout(t.step_func_done(), 100); +}); |