diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webmessaging/MessagePort_onmessage_start.any.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/MessagePort_onmessage_start.any.js b/testing/web-platform/tests/webmessaging/MessagePort_onmessage_start.any.js new file mode 100644 index 0000000000..7ba3a37210 --- /dev/null +++ b/testing/web-platform/tests/webmessaging/MessagePort_onmessage_start.any.js @@ -0,0 +1,10 @@ +// META: title=MessageChannel: port.onmessage enables message queue + +// TODO: duplicate of ./message-channels/implied-start.any.js? + +async_test(function(t) { + var channel = new MessageChannel(); + channel.port2.onmessage = t.step_func_done(); + channel.port1.postMessage("ping"); + t.step_timeout(t.unreached_func(), 1000); +}); |