mirror of
https://github.com/servo/servo
synced 2026-05-15 03:16:47 +02:00
11 lines
329 B
JavaScript
11 lines
329 B
JavaScript
// 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);
|
|
});
|