/third_party/node/test/parallel/ |
D | test-http-connect.js | 34 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 …]
|
D | test-nodeeventtarget.js | 21 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 …]
|
D | test-internal-socket-list-send.js | 15 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);
|
D | test-event-emitter-listener-count.js | 14 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);
|
D | test-events-once.js | 23 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);
|
D | test-stream-pipe-flow.js | 76 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);
|
D | test-events-on-async-iterator.js | 36 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);
|
D | test-http-agent-keepalive.js | 145 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);
|
D | test-stream-duplex-end.js | 13 assert.strictEqual(stream.listenerCount('end'), 0); 25 assert.strictEqual(stream.listenerCount('end'), 0); 38 assert.strictEqual(stream.listenerCount('end'), 0);
|
D | test-stream-pipe-without-listenerCount.js | 6 r.listenerCount = undefined; 9 w.listenerCount = undefined;
|
D | test-http-dump-req-when-res-ends.js | 10 strictEqual(req.socket.listenerCount('data'), 1); 20 strictEqual(req.listenerCount('data'), 0);
|
D | test-fs-watchfile-ref-unref.js | 29 assert.strictEqual(watcher2.listenerCount('change'), 2); 31 assert.strictEqual(watcher2.listenerCount('change'), 1);
|
D | test-stream-pipe-unpipe-streams.js | 51 source.listenerCount(eventName), 0, 70 dest.listenerCount(eventName), 0,
|
D | test-timers-promisified.js | 96 assert.strictEqual(signal.listenerCount('abort'), 0); 105 assert.strictEqual(signal.listenerCount('abort'), 0);
|
D | test-net-socket-no-halfopen-enforcer.js | 11 strictEqual(socket.listenerCount('end'), 1);
|
D | test-repl-uncaught-exception-async.js | 40 const len = process.listenerCount('uncaughtException');
|
D | test-http-client-set-timeout-after-end.js | 23 strictEqual(socket.listenerCount('timeout'), 1);
|
D | test-http2-request-remove-connect-listener.js | 22 assert.strictEqual(client.listenerCount('connect'), 0);
|
/third_party/node/test/report/ |
D | test-report-config.js | 94 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);
|
D | test-report-signal.js | 19 assert.strictEqual(process.listenerCount('SIGUSR2'), 1);
|
/third_party/node/deps/npm/test/tap/ |
D | process-logger.js | 6 …t.ok(process.listenerCount('log') >= 1, `log listener attached ${process.listenerCount('log')} >= …
|
/third_party/node/lib/internal/ |
D | watchdog.js | 17 if (eve === 'SIGINT' && process.listenerCount('SIGINT') === 0 && 35 if (process.listenerCount('SIGINT') === 0) {
|
/third_party/node/lib/ |
D | events.js | 717 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
|
D | domain.js | 167 (domain) => domain.listenerCount('error') === 0)) { 263 if (EventEmitter.listenerCount(this, 'error') > 0) { 469 this.listenerCount(type) > 0;
|
/third_party/node/benchmark/events/ |
D | ee-listener-count-on-prototype.js | 18 ee.listenerCount(dummy);
|