blob: 75b1ea1b26e8f2e1e871122b2ed3dd53a14690fe (
plain)
1
2
3
4
5
6
7
8
9
|
// META: title=without start()
async_test(function(t) {
var channel = new MessageChannel();
channel.port1.postMessage(1);
var i = 0;
channel.port2.addEventListener('message', function() { i++; }, false);
setTimeout(t.step_func(function() { assert_equals(i, 0); t.done();}), 50);
});
|