mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
12 lines
281 B
JavaScript
12 lines
281 B
JavaScript
// META: title=basic messagechannel test
|
|
|
|
async_test(function(t) {
|
|
var channel = new MessageChannel();
|
|
channel.port1.postMessage(1);
|
|
channel.port2.onmessage = t.step_func(
|
|
function(e) {
|
|
assert_equals(e.data, 1);
|
|
t.done();
|
|
});
|
|
channel.port2.start();
|
|
});
|