Home
last modified time | relevance | path

Searched refs:closed (Results 1 - 25 of 205) sorted by relevance

123456789

/third_party/jerryscript/tests/jerry/es2015/
H A Dfor-of-iterator-close.js30 var closed = false;
32 'return': function() { closed = true; return {}; }
35 return closed;
41 var closed = false;
43 'return': function() { closed = true; return {}; }
51 return closed;
57 var closed = false;
59 'return': function() { closed = true; return {}; }
62 return closed;
68 var closed
[all...]
H A Dpromise-all-iterator.js78 var closed = false; variable
80 Promise.all(createIterable([1,2,3], {'return': function () { closed = true; }}));
81 assert (closed);
H A Dpromise-race-iterator.js66 var closed = false; variable
68 Promise.race(createIterable([1,2,3], {'return': function () { closed = true; }}));
69 assert (closed);
/third_party/python/Lib/test/test_tools/
H A Dtest_pindent.py41 closed = f.read()
43 f.write(closed)
51 self.assertEqual(f.read(), closed)
55 self.assertEqual(self.pindent(clean, '-c'), closed)
56 self.assertEqual(self.pindent(closed, '-d'), clean)
64 self.assertEqual(f.read(), closed)
66 broken = self.lstriplines(closed)
79 def pindent_test(self, clean, closed):
80 self.assertEqual(self.pindent(clean, '-c'), closed)
81 self.assertEqual(self.pindent(closed, '
[all...]
/third_party/node/test/fixtures/wpt/streams/readable-streams/
H A Dbad-underlying-sources.any.js56 return promise_rejects_exactly(t, theError, rs.getReader().closed);
112 promise_rejects_exactly(t, theError, reader.closed)
153 return rs.getReader().closed;
171 return rs.getReader().closed;
182 }).getReader().closed;
184 }, 'Underlying source: calling enqueue on a closed stream should throw');
189 const closed = new ReadableStream({
194 }).getReader().closed;
196 return promise_rejects_exactly(t, theError, closed);
207 }).getReader().closed;
[all...]
/third_party/node/lib/internal/webstreams/
H A Dadapters.js104 // we want it to pass this check but return a closed WritableStream.
132 let closed;
152 // If closed is not undefined, the error is happening
155 if (closed !== undefined) {
156 closed.reject(error);
157 closed = undefined;
164 if (closed !== undefined) {
165 closed.resolve();
166 closed = undefined;
193 if (closed
[all...]
/third_party/python/Modules/_io/
H A Diobase.c55 "which are ignored) on a closed stream should raise a ValueError.\n"
62 "fp is closed after the suite of the with statement is complete:\n"
67 /* Use this macro whenever you want to check the internal `closed` status
68 of the IOBase object rather than the virtual `closed` attribute as returned
155 int closed = iobase_is_closed(self); in _io__IOBase_flush_impl() local
157 if (!closed) { in _io__IOBase_flush_impl()
160 if (closed > 0) { in _io__IOBase_flush_impl()
161 PyErr_SetString(PyExc_ValueError, "I/O operation on closed file."); in _io__IOBase_flush_impl()
169 int closed = iobase_is_closed(self); in iobase_closed_get() local
170 if (closed < in iobase_closed_get()
180 int closed; iobase_check_closed() local
224 int rc, closed = iobase_is_closed(self); _io__IOBase_close_impl() local
256 int closed; iobase_finalize() local
[all...]
/third_party/node/test/fixtures/wpt/streams/piping/
H A Dmultiple-propagation.any.js21 return promise_rejects_exactly(t, error2, writer.closed, 'the writable stream must be errored with error2')
48 promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored with error1'),
49 promise_rejects_exactly(t, error2, ws.getWriter().closed, 'the writable stream must be errored with error2')
67 return promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored with error1');
90 promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored with error1'),
91 promise_rejects_exactly(t, error2, ws.getWriter().closed, 'the writable stream must be errored with error2')
109 return promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored with error1');
130 promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored with error1'),
131 promise_rejects_exactly(t, error1, ws.getWriter().closed,
132 'closed mus
[all...]
/third_party/python/Lib/
H A Dchunk.py58 self.closed = False
91 if not self.closed:
95 self.closed = True
98 if self.closed:
99 raise ValueError("I/O operation on closed file")
108 if self.closed:
109 raise ValueError("I/O operation on closed file")
122 if self.closed:
123 raise ValueError("I/O operation on closed file")
132 if self.closed
[all...]
H A D_pyio.py85 wrapped. (If a file descriptor is given, it is closed when the
86 returned I/O object is closed, unless closefd is set to False.)
170 be kept open when the file is closed. This does not work when a file name is
349 Note that calling any method (even inquiries) on a closed stream is
357 fp is closed after the suite of the with statement is complete:
415 This method has no effect if the file is already closed.
426 closed = self.closed
428 # If getting closed fails, then the object is probably
432 if closed
494 def closed(self): global() member in IOBase
869 def closed(self): global() member in _BufferedIOMixin
1413 def closed(self): global() member in BufferedRWPair
2197 def closed(self): global() member in TextIOWrapper
[all...]
/third_party/node/test/fixtures/wpt/streams/resources/
H A Drs-test-templates.js104 promise_rejects_exactly(t, error, reader.closed),
118 promise_rejects_exactly(t, error, reader.closed)
139 return promise_rejects_exactly(t, error, reader.closed);
141 }, label + ': should be able to obtain a second reader, with the correct closed promise');
192 assert_true('closed' in reader, 'has a closed property');
193 assert_equals(typeof reader.closed.then, 'function', 'closed property is thenable');
262 const closed = reader.closed;
[all...]
H A Drs-utils.js10 this.closed = false;
16 if (this.closed) {
43 source.closed = true;
105 this.closed = false;
132 this.closed = true;
/third_party/PyYAML/lib/yaml/
H A Dserializer.py25 self.closed = None
28 if self.closed is None:
30 self.closed = False
31 elif self.closed:
32 raise SerializerError("serializer is closed")
37 if self.closed is None:
39 elif not self.closed:
41 self.closed = True
47 if self.closed is None:
49 elif self.closed
[all...]
/third_party/lwip/test/sockets/
H A Dsockets_stresstest.c95 volatile int closed; member
154 recv_and_check_data_return_offset(int s, char *rxbuf, size_t rxbufsize, size_t rxoff, int *closed, const char *dbg) in recv_and_check_data_return_offset() argument
160 *closed = 1; in recv_and_check_data_return_offset()
163 *closed = 0; in recv_and_check_data_return_offset()
169 *closed = 1; in recv_and_check_data_return_offset()
411 int closed; in sockets_stresstest_conn_client_r() local
412 if (fd->closed) { in sockets_stresstest_conn_client_r()
415 rxoff = recv_and_check_data_return_offset(s, rxbuf, sizeof(rxbuf), rxoff, &closed, "cli"); in sockets_stresstest_conn_client_r()
416 if (fd->closed) { in sockets_stresstest_conn_client_r()
419 if (closed) { in sockets_stresstest_conn_client_r()
474 int closed; sockets_stresstest_conn_client() local
520 int closed; sockets_stresstest_conn_server() local
[all...]
/third_party/libwebsockets/minimal-examples/ws-client/minimal-ws-client-spam/
H A Dminimal-ws-client-spam.c41 static int concurrent = 3, conn, tries, est, errors, closed, sent, limit = 15; variable
103 lwsl_err("CLIENT_CONNECTION_ERROR: %s (try %d, est %d, closed %d, err %d)\n", in callback_minimal_spam()
104 in ? (char *)in : "(null)", tries, est, closed, errors); in callback_minimal_spam()
113 if (tries == closed + errors) { in callback_minimal_spam()
122 lwsl_user("%s: established (try %d, est %d, closed %d, err %d)\n", in callback_minimal_spam()
123 __func__, tries, est, closed, errors); in callback_minimal_spam()
130 closed++; in callback_minimal_spam()
131 if (tries == closed + errors) { in callback_minimal_spam()
136 lwsl_user("%s: leaving CLOSED (try %d, est %d, sent %d, closed %d, err %d)\n", in callback_minimal_spam()
137 __func__, tries, est, sent, closed, error in callback_minimal_spam()
[all...]
/third_party/libwebsockets/plugins/raw-proxy/
H A Dprotocol_lws_raw_proxy.c73 char closed[2]; member
157 if (conn->closed[side] || in flow_control()
284 conn->closed[ONW] = 1; in callback_raw_proxy()
286 if (conn->closed[ACC]) in callback_raw_proxy()
297 if (!pss || !conn->wsi[ACC] || conn->closed[ACC]) { in callback_raw_proxy()
298 lwsl_info(" pss %p, wsi[ACC] %p, closed[ACC] %d\n", in callback_raw_proxy()
299 pss, conn->wsi[ACC], conn->closed[ACC]); in callback_raw_proxy()
324 if (!conn->closed[ACC]) in callback_raw_proxy()
378 if (conn->closed[ACC]) in callback_raw_proxy()
438 conn->closed[AC in callback_raw_proxy()
[all...]
/third_party/node/lib/internal/http2/
H A Dcompat.js192 if (request !== undefined && request[kState].closed === false) {
297 state.closed = true;
322 closed: false,
355 this[kState].closed ||
405 assert(!state.closed);
443 if (!this[kState].closed)
464 state.closed = true;
479 closed: false,
520 if (this[kState].closed)
668 if (!state.closed
321 closed: false, global() property
478 closed: false, global() property
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-write-stream-autoclose-option.js17 assert.strictEqual(stream.closed, false);
29 assert.strictEqual(stream.closed, false);
32 assert.strictEqual(stream.closed, true);
53 assert.strictEqual(stream.closed, false);
56 assert.strictEqual(stream.closed, true);
H A Dtest-webstreams-abort-controller.js39 assert.rejects(reader.closed, /AbortError/).then(common.mustCall());
80 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
86 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
107 assert.rejects(reader1.closed, /AbortError/).then(common.mustCall());
113 assert.rejects(reader2.closed, /AbortError/).then(common.mustCall());
133 assert.rejects(writer.closed, /AbortError/).then(common.mustCall());
158 assert.rejects(writer1.closed, /AbortError/).then(common.mustCall());
164 assert.rejects(writer2.closed, /AbortError/).then(common.mustCall());
/third_party/node/lib/internal/fs/
H A Drecursive_watch.js73 #closed = false;
110 if (this.#closed) {
115 this.#closed = true;
145 if (this.#closed) {
175 if (this.#closed) {
217 this.#closed = false;
277 next: () => (this.#closed ?
/third_party/node/lib/internal/streams/
H A Dutils.js226 if (typeof stream.closed === 'boolean') {
227 return stream.closed;
234 typeof wState?.closed === 'boolean' ||
235 typeof rState?.closed === 'boolean'
237 return wState?.closed || rState?.closed;
282 state.closed === false
/third_party/skia/third_party/externals/tint/src/
H A Dintrinsic_table.cc100 /// ClosedState holds the state of the open / closed numbers and types.
106 /// If the type with index `idx` is open, then it is closed with type `ty` and
107 /// Type() returns true. If the type is closed, then `Type()` returns true iff
114 /// If the number with index `idx` is open, then it is closed with number
115 /// `number` and Num() returns true. If the number is closed, then `Num()`
122 /// Type returns the closed type with index `idx`.
123 /// An ICE is raised if the type is not closed.
128 << "type with index " << idx << " is not closed"; in Type()
136 /// An ICE is raised if the number is not closed.
141 << "number with index " << idx << " is not closed"; in Num()
176 ClosedState& closed; global() member in tint::__anon25916::MatchState
[all...]
/third_party/node/test/fixtures/wpt/streams/writable-streams/
H A Dstart.any.js54 return writer.closed;
102 return promise_rejects_exactly(t, error1, ws.getWriter().closed, 'closed promise should be rejected');
157 catchAndRecord(writer.closed, 'closed');
161 assert_array_equals(events, ['ready', 'write', 'closed'], 'promises should reject in standard order');
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/
H A DBrotliOutputStream.java50 if (encoder.closed) { in flush()
58 if (encoder.closed) { in write()
74 if (encoder.closed) { in write()
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/dec/
H A DBrotliInputStream.java53 if (decoder.closed) { in read()
78 if (decoder.closed) { in read()
100 if (decoder.closed) { in skip()

Completed in 11 milliseconds

123456789