/third_party/node/test/fixtures/wpt/streams/readable-streams/ |
D | default-reader.any.js | 34 assert_throws_js(TypeError, () => rs.getReader(), 'getReader() should fail'); 42 rs.getReader(); // getReader() should be fine. 50 rs.getReader(); // getReader() should be fine. 51 assert_throws_js(TypeError, () => rs.getReader(), 'getReader() should fail'); 88 const reader = rs.getReader(); 106 assert_throws_js(TypeError, () => rs.getReader(), 'should not be able to get another reader'); 112 const reader = rs.getReader(); 126 const reader = rs.getReader(); 143 const reader1 = rs.getReader(); 147 const reader2 = rs.getReader(); [all …]
|
D | bad-underlying-sources.any.js | 56 return promise_rejects_exactly(t, theError, rs.getReader().closed); 76 const reader = rs.getReader(); 106 const reader = rs.getReader(); 153 return rs.getReader().closed; 171 return rs.getReader().closed; 182 }).getReader().closed; 194 }).getReader().closed; 207 }).getReader().closed; 222 }).getReader(); 251 return rs.getReader().closed.then(() => { [all …]
|
D | tee.any.js | 33 const reader1 = branch1.getReader(); 34 const reader2 = branch2.getReader(); 68 const reader1 = branch1.getReader(); 69 const reader2 = branch2.getReader(); 91 const reader1 = branches[0].getReader(); 92 const reader2 = branches[1].getReader(); 186 const reader1 = branch1.getReader(); 187 const reader2 = branch2.getReader(); 207 const reader1 = branches[0].getReader(); 208 const reader2 = branches[1].getReader(); [all …]
|
D | general.any.js | 109 (new ReadableStream()).getReader(undefined); 110 (new ReadableStream()).getReader({}); 111 (new ReadableStream()).getReader({ mode: undefined, notmode: 'ignored' }); 112 assert_throws_js(TypeError, () => (new ReadableStream()).getReader({ mode: 'potato' })); 140 const reader = rs.getReader(); 159 return rs.getReader().closed.then(() => { 184 const reader = rs.getReader(); 203 const reader = rs.getReader(); 263 const reader = rs.getReader(); 287 const read = rs.getReader().read(); [all …]
|
D | garbage-collection.any.js | 33 }).getReader().closed; 50 }).getReader().closed; 63 rs.getReader(); 67 return delay(50).then(() => assert_throws_js(TypeError, () => rs.getReader(),
|
D | bad-strategies.any.js | 42 return promise_rejects_exactly(t, controllerError, rs.getReader().closed); 68 …return promise_rejects_exactly(t, theError, rs.getReader().closed, 'closed should reject with the … 89 return rs.getReader().closed.catch(e => { 152 promises.push(rs.getReader().closed.catch(e => {
|
D | patched-global.any.js | 71 const oldReadableStreamGetReader = ReadableStream.prototype.getReader; 73 const ReadableStreamDefaultReader = (new ReadableStream()).getReader().constructor; 78 self.ReadableStream.prototype.getReader = function() { method in self.ReadableStream 93 self.ReadableStream.prototype.getReader = oldReadableStreamGetReader; method in self.ReadableStream
|
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/ |
D | general.any.js | 10 assert_throws_js(TypeError, () => new ReadableStream().getReader({ mode: 'byob' })); 16 new ReadableStream({ type: 'bytes' }).getReader({ mode: 'byob' }); 19 .getReader({ mode: 'byob' }); 21 .getReader({ mode: 'byob' }); 25 …const ReadableStreamBYOBReader = new ReadableStream({ type: 'bytes' }).getReader({ mode: 'byob' })… 28 let reader = rs.getReader({ mode: { toString() { return 'byob'; } } }); 32 reader = rs.getReader({ mode: { toString: null, valueOf() {return 'byob';} } }); 36 reader = rs.getReader({ mode: 'byob', notmode: 'ignored' }); 158 const reader = stream.getReader(); 169 const reader = stream.getReader({ mode: 'byob' }); [all …]
|
D | bad-buffers-and-views.any.js | 12 const reader = stream.getReader({ mode: 'byob' }); 35 const reader = stream.getReader({ mode: 'byob' }); 88 const reader = stream.getReader({ mode: 'byob' }); 104 const reader = stream.getReader({ mode: 'byob' }); 117 const reader = stream.getReader({ mode: 'byob' }); 134 const reader = stream.getReader({ mode: 'byob' }); 153 const reader = stream.getReader({ mode: 'byob' }); 170 const reader = stream.getReader({ mode: 'byob' }); 185 const reader = stream.getReader({ mode: 'byob' }); 200 const reader = stream.getReader({ mode: 'byob' }); [all …]
|
D | tee.any.js | 32 const reader1 = branch1.getReader({ mode: 'byob' }); 33 const reader2 = branch2.getReader({ mode: 'byob' }); 80 const reader1 = branch1.getReader(); 81 const reader2 = branch2.getReader(); 113 const reader1 = branch1.getReader({ mode: 'byob' }); 114 const reader2 = branch2.getReader(); 146 const reader1 = branch1.getReader({ mode: 'byob' }); 147 const reader2 = branch2.getReader({ mode: 'byob' }); 230 const reader1 = branch1.getReader({ mode: 'byob' }); 231 const reader2 = branch2.getReader({ mode: 'byob' }); [all …]
|
D | respond-after-enqueue.any.js | 16 const reader = rs.getReader(); 33 const reader = rs.getReader(); 49 const reader = rs.getReader();
|
/third_party/node/test/parallel/ |
D | test-whatwg-readablestream.js | 62 assert.strictEqual(typeof r.getReader, 'function'); 68 assert.throws(() => r.getReader({ mode }), { 74 assert.throws(() => r.getReader(options), { 80 r.getReader(); 277 const reader = r.getReader(); 295 const reader = r.getReader(); 311 const reader = stream.getReader(); 317 assert.throws(() => stream.getReader(), { 347 const reader = stream.getReader(); 390 const reader = stream.getReader(); [all …]
|
D | test-whatwg-webstreams-adapters-to-readablewritablepair.js | 26 const reader = readable.getReader(); 58 const reader = readable.getReader(); 80 const reader = readable.getReader(); 99 const reader = readable.getReader(); 121 const reader = readable.getReader(); 143 const reader = readable.getReader(); 163 const reader = readable.getReader(); 187 const reader = readable.getReader(); 218 const reader = readable.getReader(); 232 const reader = readable.getReader(); [all …]
|
D | test-whatwg-readablebytestream.js | 44 assert.strictEqual(typeof r.getReader, 'function'); 50 assert.throws(() => r.getReader({ mode }), { 56 assert.throws(() => r.getReader(options), { 62 const defaultReader = r.getReader(); 66 const byobReader = r.getReader({ mode: 'byob' }); 125 const reader = stream.getReader({ mode: 'byob' }); 210 const reader = readable.getReader({ mode: 'byob' }); 264 const reader = stream.getReader({ mode: 'byob' }); 278 const reader = stream.getReader();
|
D | test-whatwg-webstreams-adapters-to-readablestream.js | 59 const reader = readableStream.getReader(); 89 const reader = readableStream.getReader(); 117 const reader = readableStream.getReader(); 143 const reader = readableStream.getReader(); 173 const reader = readableStream.getReader(); 194 const reader = readableStream.getReader(); 202 const reader = readableStream.getReader();
|
D | test-whatwg-readablebytestream-bad-buffers-and-views.js | 26 const reader = stream.getReader({ mode: 'byob' }); 50 const reader = stream.getReader({ mode: 'byob' }); 61 const reader = stream.getReader({ mode: 'byob' }); 78 const reader = stream.getReader({ mode: 'byob' });
|
D | test-filehandle-readablestream.js | 60 const reader = readable.getReader(); 71 const reader = readable.getReader(); 95 const reader = readable.getReader({ mode: 'byob' }); 144 const reader = readable.getReader({ mode: 'byob' }); 155 const reader = readable.getReader({ mode: 'byob' });
|
D | test-webstreams-abort-controller.js | 30 const reader = rs.getReader(); 74 const reader1 = rs1.getReader(); 75 const reader2 = rs2.getReader(); 101 const reader1 = rs1.getReader(); 102 const reader2 = rs2.getReader();
|
D | test-stream-readable-strategy-option.js | 26 readableStream.getReader().read().then(common.mustCall()); 48 readableStream.getReader().read().then(common.mustCall()); 67 const reader = stringStream.getReader();
|
/third_party/node/test/fixtures/wpt/streams/resources/ |
D | rs-test-templates.js | 16 assert_equals(typeof rs.getReader, 'function', 'has a getReader method'); 26 assert_throws_js(TypeError, () => rs.getReader({ mode: '' }), 'empty string mode should throw'); 27 assert_throws_js(TypeError, () => rs.getReader({ mode: null }), 'null mode should throw'); 28 assert_throws_js(TypeError, () => rs.getReader({ mode: 'asdf' }), 'asdf mode should throw'); 29 assert_throws_js(TypeError, () => rs.getReader(5), '5 should throw'); 32 rs.getReader(null); 65 rs.getReader(); // getReader() should not throw. 73 const reader = rs.getReader(); 76 const reader2 = rs.getReader(); // Getting a second reader should not throw. 79 rs.getReader(); // Getting a third reader should not throw. [all …]
|
/third_party/node/test/fixtures/wpt/streams/piping/ |
D | close-propagation-forward.any.js | 27 rs.getReader().closed, 53 rs.getReader().closed, 81 rs.getReader().closed, 108 return rs.getReader().closed; 131 return rs.getReader().closed; 153 return rs.getReader().closed; 176 rs.getReader().closed, 202 rs.getReader().closed, 226 return rs.getReader().closed; 249 rs.getReader().closed, [all …]
|
D | multiple-propagation.any.js | 48 …promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored wit… 67 …return promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be erro… 90 …promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored wit… 109 …return promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be erro… 130 …promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored wit… 157 …promise_rejects_exactly(t, error1, rs.getReader().closed, 'the readable stream must be errored wit… 183 rs.getReader().closed, 201 return rs.getReader().closed; 222 rs.getReader().closed,
|
/third_party/node/test/fixtures/wpt/streams/transform-streams/ |
D | errors.any.js | 15 const reader = ts.readable.getReader(); 40 const reader = ts.readable.getReader(); 79 const reader = ts.readable.getReader(); 103 const reader = ts.readable.getReader(); 169 const reader = ts.readable.getReader(); 188 const closedPromise = ts.readable.getReader().closed; 327 const readPromise = ts.readable.getReader().read(); 339 const reader = ts.readable.getReader();
|
D | general.any.js | 29 return ts.readable.getReader().read().then(result => { 52 return ts.readable.getReader().read().then(result => { 74 const reader = ts.readable.getReader(); 103 return ts.readable.getReader().read().then(result => { 123 const reader = ts.readable.getReader(); 149 return Promise.all([writer.closed, ts.readable.getReader().closed]); 168 ts.readable.getReader().closed.then(() => { 346 return Promise.all([writer.closed, ts.readable.getReader().closed]);
|
D | patched-global.any.js | 31 const getReader = ReadableStream.prototype.getReader; constant 49 assert_not_equals(getReader.call(ts.readable), undefined,
|