Lines Matching refs:events
22 let events = []; variable
25 events.push(e);
29 assert_equals(events.length, 6);
30 assert_equals(events[0].target, c2, 'target for event 0');
31 assert_equals(events[0].data, 'from c1');
32 assert_equals(events[1].target, c3, 'target for event 1');
33 assert_equals(events[1].data, 'from c1');
34 assert_equals(events[2].target, c1, 'target for event 2');
35 assert_equals(events[2].data, 'from c3');
36 assert_equals(events[3].target, c2, 'target for event 3');
37 assert_equals(events[3].data, 'from c3');
38 assert_equals(events[4].target, c1, 'target for event 4');
39 assert_equals(events[4].data, 'done');
40 assert_equals(events[5].target, c3, 'target for event 5');
41 assert_equals(events[5].data, 'done');
99 let events = []; variable
100 c1.onmessage = e => events.push('c1: ' + e.data);
101 c2.onmessage = e => events.push('c2: ' + e.data);
102 c3.onmessage = e => events.push('c3: ' + e.data);
111 assert_array_equals(events, [