Home
last modified time | relevance | path

Searched refs:on (Results 1 - 25 of 1590) sorted by relevance

12345678910>>...64

/third_party/node/test/parallel/
H A Dtest-wrap-js-stream-destroy.js9 // having called `socket.end()` on an instance of streamWrap, it will
10 // still emit EOF which makes the socket on the other side emit "end" and
15 socket.on('error', common.mustNotCall());
16 socket.on('end', common.mustNotCall());
17 socket.on('close', common.mustCall());
31 socket.on('error', common.mustNotCall());
32 socket.on('end', common.mustCall());
33 socket.on('close', common.mustCall());
35 streamWrap.on('error', common.mustNotCall());
39 streamWrap.on('en
[all...]
H A Dtest-fs-read-stream-inherit.js17 file.on('open', common.mustCall(function(fd) {
29 file.on('data', common.mustCallAtLeast(function(data) {
44 file.on('end', common.mustCall());
47 file.on('close', common.mustCall(function() {
55 file.on('data', function(data) {
65 file.on('close', common.mustCall(function() {
76 file.on('data', function(data) {
79 file.on('end', common.mustCall(function() {
89 file.on('data', function(data) {
92 file.on('en
[all...]
H A Dtest-fs-read-stream.js43 file.on('open', common.mustCall(function(fd) {
56 file.on('data', function(data) {
75 file.on('end', common.mustCall(function(chunk) {
81 file.on('close', common.mustCall(function() {
86 process.on('exit', function() {
103 file.on('data', function(data) {
113 file.on('close', common.mustCall());
115 process.on('exit', function() {
124 file.on('data', function(data) {
127 file.on('en
[all...]
H A Dtest-event-emitter-remove-all-listeners.js30 process.on('exit', function() {
42 ee.on('foo', noop);
43 ee.on('bar', noop);
44 ee.on('baz', noop);
45 ee.on('baz', noop);
49 ee.on('removeListener', expect(['bar', 'baz', 'baz']));
68 ee.on('foo', common.mustNotCall());
69 ee.on('bar', common.mustNotCall());
71 ee.on('removeListener', expect(['foo', 'bar', 'removeListener']));
72 ee.on('removeListene
[all...]
H A Dtest-child-process-spawn-event.js9 subprocess.on('spawn', function() {
18 subprocess.on('error', common.mustNotCall());
19 subprocess.on('spawn', common.mustCall());
20 subprocess.stdout.on('data', mustCallAfterSpawn());
21 subprocess.stdout.on('end', mustCallAfterSpawn());
22 subprocess.stdout.on('close', mustCallAfterSpawn());
23 subprocess.stderr.on('data', common.mustNotCall());
24 subprocess.stderr.on('end', mustCallAfterSpawn());
25 subprocess.stderr.on('close', mustCallAfterSpawn());
26 subprocess.on('exi
[all...]
H A Dtest-zlib-dictionary.js58 deflate.on('data', function(chunk) {
62 inflate.on('data', function(chunk) {
66 deflate.on('end', function() {
70 inflate.on('end', common.mustCall(function() {
85 deflate.on('data', function(chunk) {
90 inflate.on('data', function(chunk) {
94 deflate.on('end', function() {
98 inflate.on('end', common.mustCall(function() {
117 deflate.on('data', function(chunk) {
121 inflate.on('dat
[all...]
H A Dtest-http2-options-max-headers-exceeds-nghttp2.js12 server.on('stream', common.mustNotCall());
13 server.on('error', common.mustNotCall());
25 client.on('error', common.expectsError({
35 req.on('response', common.mustNotCall());
37 req.on('close', common.mustCall(() => {
42 req.on('error', common.expectsError({
57 server.on('error', common.mustNotCall());
58 server.on(
64 server.on(
76 server.on(
[all...]
H A Dtest-event-capture-rejections.js32 ee.on('something', common.mustCall(async (value) => {
36 ee.on('error', common.mustCall((err) => {
48 ee.on('something', common.mustCall(async (value) => {
53 ee.on('something', common.mustCall(async (value) => {
59 ee.on('error', common.mustCall((err) => {
72 ee.on('something', common.mustCall(async (value) => {
80 process.on('unhandledRejection', (err) => { throw err; });
94 ee.on('something', common.mustCall(async (value) => {
98 ee.on('error', common.mustCall((err) => {
114 ee.on('somethin
[all...]
H A Dtest-zlib-bytes-read.js41 comp.on('data', function(d) {
44 `Should get write size on ${method[0]} data.`);
46 comp.on('end', common.mustCall(function() {
48 `Should get write size on ${method[0]} end.`);
50 `Should get data size on ${method[0]} end.`);
57 decomp.on('data', function(d) {
60 `Should get write size on ${method[0]}/` +
63 decomp.on('end', common.mustCall(function() {
65 `Should get compressed size on ${method[0]}/` +
68 `Should get original string on
[all...]
H A Dtest-event-emitter-remove-listeners.js33 ee.on('hello', listener1);
34 ee.on('removeListener', common.mustCall((name, cb) => {
44 ee.on('hello', listener1);
45 ee.on('removeListener', common.mustNotCall());
52 ee.on('hello', listener1);
53 ee.on('hello', listener2);
81 ee.on('removeListener', common.mustCall(function(name, cb) {
86 ee.on('quux', remove1);
87 ee.on('quux', remove2);
93 ee.on('hell
[all...]
H A Dtest-http2-server-socket-destroy.js16 server.on('stream', common.mustCall(onStream));
25 // on the socket, server and session.
26 socket.on('close', common.mustCall());
27 stream.on('close', common.mustCall());
28 server.on('close', common.mustCall());
29 stream.session.on('close', common.mustCall(() => server.close()));
31 // Also, the aborted event must be triggered on the stream
32 stream.on('aborted', common.mustCall());
40 server.on('listening', common.mustCall(async () => {
42 // The client may have an ECONNRESET error here depending on th
[all...]
H A Dtest-stream-writable-destroy.js12 write.on('finish', common.mustNotCall());
13 write.on('close', common.mustCall());
27 write.on('error', common.mustCall());
28 write.on('finish', common.mustNotCall());
40 write.on('finish', common.mustNotCall());
41 write.on('close', common.mustCall());
42 write.on('error', common.mustCall((err) => {
62 write.on('finish', common.mustNotCall('no finish event'));
63 write.on('close', common.mustCall());
64 write.on('erro
[all...]
H A Dtest-stream-construct.js14 }).on('error', common.expectsError({
27 }).on('error', common.expectsError({
40 }).on('error', common.expectsError({
53 }).on('error', common.expectsError({
66 }).on('error', common.expectsError({
79 }).on('error', common.expectsError({
94 s.on('close', common.mustCall(() => {
108 s.on('close', common.mustCall(() => {
124 s.on('close', common.mustCall(() => {
139 s.on('clos
[all...]
H A Dtest-http-generic-streams.js23 res.on('data', common.mustCall((data) => {
26 res.on('end', common.mustCall());
49 res.on('data', common.mustCall((data) => {
52 res.on('end', common.mustCall(cb));
69 req.on('data', common.mustCall(function test3_req_data(data) {
82 clientSide.on('end', common.mustCall());
83 serverSide.on('end', common.mustCall());
91 res.on('data', common.mustCall(function test3_res_data(data) {
94 res.on('end', common.mustCall());
107 req.on('dat
[all...]
H A Dtest-stream-readable-didRead.js13 readable.on('error', common.mustCall(() => {
16 readable.on('data', common.mustNotCall());
17 readable.on('end', common.mustNotCall());
19 readable.on('error', common.mustNotCall());
21 readable.on('end', common.mustNotCall());
23 readable.on('end', common.mustCall());
26 readable.on('data', common.mustCallAtLeast(data));
28 readable.on('data', common.mustNotCall());
31 readable.on('close', common.mustCall());
95 readable.on('dat
[all...]
H A Dtest-child-process-fork-net.js38 process.on('message', mustCall((m, socket) => {
48 socket.on('data', mustCallAtLeast(() => {
52 socket.on('end', mustCall(() => {
61 socket.on('close', mustCall((had_error) => {
65 socket.on('finish', mustCall(() => {
70 process.on('message', mustCall((m) => {
79 process.on('disconnect', mustCall(() => {
97 server.on('connection', function(socket) {
126 server.on('listening', mustCall(() => {
131 client.on('erro
[all...]
H A Dtest-stream2-writable.js56 tw.on('finish', common.mustCall(function() {
74 tw.on('finish', common.mustCall(function() {
97 tw.on('finish', common.mustCall(function() {
103 tw.on('drain', function() {
143 tw.on('finish', function() {
182 tw.on('finish', function() {
210 tw.on('finish', common.mustCall(function() {
280 w.on('error', function() {
293 d.on('error', function() {
307 w.on('erro
[all...]
H A Dtest-http-upgrade-server.js42 this.on('connection', function() {
46 this.on('request', function(req, res) {
52 this.on('upgrade', function(req, socket, upgradeHead) {
60 socket.on('data', function(d) {
87 conn.on('connect', function() {
96 conn.on('data', function(data) {
111 conn.on('end', function() {
124 conn.on('connect', function() {
138 conn.on('close', function() {
148 conn.on('connec
[all...]
H A Dtest-tls-client-reject.js39 socket.on('end', () => socket.end());
53 socket.on('data', common.mustCall((data) => {
57 socket.on('end', common.mustCall(() => {
60 socket.on('end', () => rejectUnauthorized());
63 socket.on('error', common.mustNotCall());
72 socket.on('data', common.mustNotCall());
73 socket.on('error', common.mustCall(function(err) {
85 socket.on('data', common.mustNotCall());
86 socket.on('error', common.mustCall(function(err) {
100 socket.on('dat
[all...]
H A Dtest-child-process-disconnect.js43 server.on('connection', function(socket) {
47 process.on('disconnect', function() {
53 socket.on('end', function() {
61 server.on('listening', function() {
76 child.on('disconnect', common.mustCall(function() {
81 child.on('exit', common.mustCall());
84 child.on('message', function(obj) {
90 socket.on('data', function(data) {
111 process.on('exit', function() {
H A Dtest-cluster-bind-twice.js23 // This test starts two clustered HTTP servers on the same port. It expects the
36 // The first worker starts a server on a fixed port and fires a ready message
54 a.on('exit', common.mustCall((c) => {
61 b.on('exit', common.mustCall((c) => {
69 a.on('message', common.mustCall((m) => {
74 b.on('message', common.mustCall((m) => {
88 process.on('message', common.mustCall((m) => {
95 process.on('message', common.mustCall((m) => {
99 server.on('error', common.mustCall((e) => {
110 worker.on('exi
[all...]
/third_party/node/test/internet/
H A Dtest-http2-issue-32922.js19 req.on('error', (err) => {
22 req.on('response', (_headers) => {
23 req.on('data', (_chunk) => { });
24 req.on('end', () => {
39 req.on('error', (err) => {
42 req.on('response', (_headers) => {
43 req.on('data', (_chunk) => { });
44 req.on('end', () => {
60 req.on('error', (err) => {
63 req.on('respons
[all...]
/third_party/node/deps/openssl/openssl/crypto/bio/
H A Dbio_sock2.c38 * Returns the file descriptor on success or INVALID_SOCKET on failure. On
76 * Returns 1 on success or 0 on failure. On failure errno is set
81 const int on = 1; in BIO_connect() local
93 (const void *)&on, sizeof(on)) != 0) { in BIO_connect()
103 (const void *)&on, sizeof(on)) != 0) { in BIO_connect()
151 int on in BIO_bind() local
224 int on = 1; BIO_listen() local
[all...]
/third_party/openssl/crypto/bio/
H A Dbio_sock2.c38 * Returns the file descriptor on success or INVALID_SOCKET on failure. On
76 * Returns 1 on success or 0 on failure. On failure errno is set
81 const int on = 1; in BIO_connect() local
93 (const void *)&on, sizeof(on)) != 0) { in BIO_connect()
103 (const void *)&on, sizeof(on)) != 0) { in BIO_connect()
151 int on in BIO_bind() local
224 int on = 1; BIO_listen() local
[all...]
/third_party/node/test/fixtures/
H A Dprocess-exit-code-cases.js9 process.on('exit', (code) => {
18 process.on('exit', (code) => {
28 process.on('exit', (code) => {
38 process.on('exit', (code) => {
56 process.on('exit', (code) => {
65 process.on('exit', (code) => {
69 process.on('uncaughtException', () => { });
75 process.on('exit', (code) => {
79 process.on('uncaughtException', () => {
87 process.on('exi
[all...]

Completed in 8 milliseconds

12345678910>>...64