Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webmessaging/MessagePort_initial_disabled.any.html - WPT Dashboard Interop Dashboard
- /webmessaging/MessagePort_initial_disabled.any.worker.html - WPT Dashboard Interop Dashboard
// 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);
});