Home
last modified time | relevance | path

Searched refs:listenerCount (Results 1 – 25 of 61) sorted by relevance

123

/third_party/node/test/parallel/
Dtest-http-connect.js34 assert.strictEqual(socket.listenerCount('close'), 0);
35 assert.strictEqual(socket.listenerCount('drain'), 0);
36 assert.strictEqual(socket.listenerCount('data'), 0);
37 assert.strictEqual(socket.listenerCount('end'), 1);
38 assert.strictEqual(socket.listenerCount('error'), 0);
39 assert.strictEqual(socket.listenerCount('timeout'), 0);
77 assert.strictEqual(socket.listenerCount('connect'), 0);
78 assert.strictEqual(socket.listenerCount('data'), 0);
79 assert.strictEqual(socket.listenerCount('drain'), 0);
80 assert.strictEqual(socket.listenerCount('end'), 1);
[all …]
Dtest-nodeeventtarget.js21 strictEqual(eventTarget.listenerCount('foo'), 0);
38 strictEqual(eventTarget.listenerCount('foo'), 2);
40 strictEqual(eventTarget.listenerCount('foo'), 1);
44 strictEqual(eventTarget.listenerCount('foo'), 0);
50 strictEqual(eventTarget.listenerCount('foo'), 0);
65 strictEqual(eventTarget.listenerCount('foo'), 2);
67 strictEqual(eventTarget.listenerCount('foo'), 1);
71 strictEqual(eventTarget.listenerCount('foo'), 0);
77 strictEqual(eventTarget.listenerCount('foo'), 0);
92 strictEqual(eventTarget.listenerCount('foo'), 2);
[all …]
Dtest-internal-socket-list-send.js15 assert.strictEqual(child.listenerCount('internalMessage'), 0);
25 assert.strictEqual(child.listenerCount('internalMessage'), 0);
46 assert.strictEqual(child.listenerCount('internalMessage'), 0);
47 assert.strictEqual(child.listenerCount('disconnect'), 0);
67 assert.strictEqual(child.listenerCount('internalMessage'), 0);
91 assert.strictEqual(child.listenerCount('internalMessage'), 0);
92 assert.strictEqual(child.listenerCount('disconnect'), 0);
119 assert.strictEqual(child.listenerCount('internalMessage'), 0);
120 assert.strictEqual(child.listenerCount('disconnect'), 0);
146 assert.strictEqual(child.listenerCount('internalMessage'), 0);
Dtest-event-emitter-listener-count.js14 assert.strictEqual(EventEmitter.listenerCount(emitter, 'foo'), 2);
15 assert.strictEqual(emitter.listenerCount('foo'), 2);
16 assert.strictEqual(emitter.listenerCount('bar'), 0);
17 assert.strictEqual(emitter.listenerCount('baz'), 1);
18 assert.strictEqual(emitter.listenerCount(123), 1);
Dtest-events-once.js23 strictEqual(ee.listenerCount('error'), 0);
24 strictEqual(ee.listenerCount('myevent'), 0);
53 strictEqual(ee.listenerCount('error'), 0);
54 strictEqual(ee.listenerCount('myevent'), 0);
74 strictEqual(ee.listenerCount('error'), 0);
75 strictEqual(ee.listenerCount('myevent'), 0);
87 strictEqual(ee.listenerCount('error'), 1);
90 strictEqual(ee.listenerCount('error'), 0);
91 strictEqual(ee.listenerCount('myevent'), 0);
Dtest-stream-pipe-flow.js76 assert.strictEqual(pt.listenerCount('drain'), 0);
78 assert.strictEqual(pt.listenerCount('drain'), 0);
82 assert.strictEqual(pt.listenerCount('drain'), 0);
86 assert.strictEqual(pt.listenerCount('drain'), 0);
88 assert.strictEqual(pt.listenerCount('drain'), 0);
Dtest-events-on-async-iterator.js36 assert.strictEqual(ee.listenerCount('foo'), 0);
37 assert.strictEqual(ee.listenerCount('error'), 0);
93 assert.strictEqual(ee.listenerCount('foo'), 0);
94 assert.strictEqual(ee.listenerCount('error'), 0);
114 assert.strictEqual(ee.listenerCount('foo'), 0);
115 assert.strictEqual(ee.listenerCount('error'), 0);
216 assert.strictEqual(ee.listenerCount('foo'), 0);
217 assert.strictEqual(ee.listenerCount('error'), 0);
239 assert.strictEqual(et.listenerCount('error'), 1);
Dtest-http-agent-keepalive.js145 assert.strictEqual(socket.listenerCount('data'), 0);
146 assert.strictEqual(socket.listenerCount('drain'), 0);
148 assert.strictEqual(socket.listenerCount('error'), 1);
150 assert.strictEqual(socket.listenerCount('end'), 1);
156 assert.strictEqual(socket.listenerCount('error'), 1);
157 assert.strictEqual(socket.listenerCount('end'), 2);
Dtest-stream-duplex-end.js13 assert.strictEqual(stream.listenerCount('end'), 0);
25 assert.strictEqual(stream.listenerCount('end'), 0);
38 assert.strictEqual(stream.listenerCount('end'), 0);
Dtest-stream-pipe-without-listenerCount.js6 r.listenerCount = undefined;
9 w.listenerCount = undefined;
Dtest-http-dump-req-when-res-ends.js10 strictEqual(req.socket.listenerCount('data'), 1);
20 strictEqual(req.listenerCount('data'), 0);
Dtest-fs-watchfile-ref-unref.js29 assert.strictEqual(watcher2.listenerCount('change'), 2);
31 assert.strictEqual(watcher2.listenerCount('change'), 1);
Dtest-stream-pipe-unpipe-streams.js51 source.listenerCount(eventName), 0,
70 dest.listenerCount(eventName), 0,
Dtest-timers-promisified.js96 assert.strictEqual(signal.listenerCount('abort'), 0);
105 assert.strictEqual(signal.listenerCount('abort'), 0);
Dtest-net-socket-no-halfopen-enforcer.js11 strictEqual(socket.listenerCount('end'), 1);
Dtest-repl-uncaught-exception-async.js40 const len = process.listenerCount('uncaughtException');
Dtest-http-client-set-timeout-after-end.js23 strictEqual(socket.listenerCount('timeout'), 1);
Dtest-http2-request-remove-connect-listener.js22 assert.strictEqual(client.listenerCount('connect'), 0);
/third_party/node/test/report/
Dtest-report-config.js94 assert.strictEqual(process.listenerCount('SIGUSR2'), 0);
96 assert.strictEqual(process.listenerCount('SIGUSR2'), 1);
98 assert.strictEqual(process.listenerCount('SIGUSR2'), 0);
99 assert.strictEqual(process.listenerCount('SIGUSR1'), 1);
101 assert.strictEqual(process.listenerCount('SIGUSR1'), 0);
Dtest-report-signal.js19 assert.strictEqual(process.listenerCount('SIGUSR2'), 1);
/third_party/node/deps/npm/test/tap/
Dprocess-logger.js6 …t.ok(process.listenerCount('log') >= 1, `log listener attached ${process.listenerCount('log')} >= …
/third_party/node/lib/internal/
Dwatchdog.js17 if (eve === 'SIGINT' && process.listenerCount('SIGINT') === 0 &&
35 if (process.listenerCount('SIGINT') === 0) {
/third_party/node/lib/
Devents.js717 EventEmitter.listenerCount = function(emitter, type) { function in EventEmitter
718 if (typeof emitter.listenerCount === 'function') {
719 return emitter.listenerCount(type);
721 return listenerCount.call(emitter, type);
724 EventEmitter.prototype.listenerCount = listenerCount; method in EventEmitter
732 function listenerCount(type) { function
Ddomain.js167 (domain) => domain.listenerCount('error') === 0)) {
263 if (EventEmitter.listenerCount(this, 'error') > 0) {
469 this.listenerCount(type) > 0;
/third_party/node/benchmark/events/
Dee-listener-count-on-prototype.js18 ee.listenerCount(dummy);

123