Home
last modified time | relevance | path

Searched refs:eventTarget (Results 1 – 7 of 7) sorted by relevance

/third_party/node/test/parallel/
Dtest-nodeeventtarget.js20 const eventTarget = new NodeEventTarget(); constant
21 strictEqual(eventTarget.listenerCount('foo'), 0);
22 deepStrictEqual(eventTarget.eventNames(), []);
26 strictEqual(this, eventTarget);
36 eventTarget.addEventListener('foo', ev1);
37 eventTarget.addEventListener('foo', ev2, { once: true });
38 strictEqual(eventTarget.listenerCount('foo'), 2);
39 ok(eventTarget.dispatchEvent(new Event('foo')));
40 strictEqual(eventTarget.listenerCount('foo'), 1);
41 eventTarget.dispatchEvent(new Event('foo'));
[all …]
Dtest-eventtarget.js133 const eventTarget = new EventTarget(); constant
137 strictEqual(this, eventTarget);
148 eventTarget.addEventListener('foo', ev1);
149 eventTarget.addEventListener('foo', ev2, { once: true });
150 ok(eventTarget.dispatchEvent(new Event('foo')));
151 eventTarget.dispatchEvent(new Event('foo'));
153 eventTarget.removeEventListener('foo', ev1);
154 eventTarget.dispatchEvent(new Event('foo'));
160 const eventTarget = new EventTarget(); constant
162 eventTarget.addEventListener('foo', fn, { once: true });
[all …]
Dtest-events-on-async-iterator.js220 async function eventTarget() { function
380 eventTarget,
/third_party/flutter/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrl.c1123 xnvctrlEventTarget *eventTarget; in wire_to_event() local
1148 eventTarget = (xnvctrlEventTarget *) wire; in wire_to_event()
1149 reTarget->attribute_changed.type = eventTarget->u.u.type & 0x7F; in wire_to_event()
1151 _XSetLastRequestRead(dpy, (xGenericReply*) eventTarget); in wire_to_event()
1153 ((eventTarget->u.u.type & 0x80) != 0); in wire_to_event()
1156 eventTarget->u.attribute_changed.time; in wire_to_event()
1158 eventTarget->u.attribute_changed.target_type; in wire_to_event()
1160 eventTarget->u.attribute_changed.target_id; in wire_to_event()
1162 eventTarget->u.attribute_changed.display_mask; in wire_to_event()
1164 eventTarget->u.attribute_changed.attribute; in wire_to_event()
[all …]
/third_party/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrl.c1123 xnvctrlEventTarget *eventTarget; in wire_to_event() local
1148 eventTarget = (xnvctrlEventTarget *) wire; in wire_to_event()
1149 reTarget->attribute_changed.type = eventTarget->u.u.type & 0x7F; in wire_to_event()
1151 _XSetLastRequestRead(dpy, (xGenericReply*) eventTarget); in wire_to_event()
1153 ((eventTarget->u.u.type & 0x80) != 0); in wire_to_event()
1156 eventTarget->u.attribute_changed.time; in wire_to_event()
1158 eventTarget->u.attribute_changed.target_type; in wire_to_event()
1160 eventTarget->u.attribute_changed.target_id; in wire_to_event()
1162 eventTarget->u.attribute_changed.display_mask; in wire_to_event()
1164 eventTarget->u.attribute_changed.attribute; in wire_to_event()
[all …]
/third_party/node/doc/api/
Devents.md1201 passed to the `eventTarget.dispatchEvent()` function.
1424 #### `eventTarget.addEventListener(type, listener[, options])`
1466 #### `eventTarget.dispatchEvent(event)`
1480 #### `eventTarget.removeEventListener(type, listener)`
1551 Node.js-specific alias for `eventTarget.removeListener()`.
1565 Node.js-specific alias for `eventTarget.addListener()`.
/third_party/node/doc/changelogs/
DCHANGELOG_V14.md2297 * [[`8ef4557c65`](https://github.com/nodejs/node/commit/8ef4557c65)] - **events**: make eventTarget