Lines Matching refs:respond
333 byobRequest.respond(1);
337 byobRequest.respond(2);
417 byobRequest.respond(1);
421 byobRequest.respond(2);
839 controller.byobRequest.respond(1);
856 assert_true(byobRequestDefined[0], 'byobRequest must not be null before respond()');
857 assert_false(byobRequestDefined[1], 'byobRequest must be null after respond()');
858 assert_false(byobRequestViewDefined, 'view of initial byobRequest must be null after respond()');
860 }, 'ReadableStream with byte source: read(view), then respond()');
915 controller.byobRequest.respond(2);
920 controller.byobRequest.respond(1);
929 assert_not_equals(incorrectRespondException, undefined, 'respond() must throw');
930 assert_equals(incorrectRespondException.name, 'RangeError', 'respond() must throw a RangeError');
932 }, 'ReadableStream with byte source: read(view), then respond() with too big value');
956 controller.byobRequest.respond(3);
992 }, 'ReadableStream with byte source: respond(3) to read(view) with 2 element Uint16Array enqueues the 1 byte ' +
1329 controller.byobRequest.respond(1);
1378 controller.byobRequest.respond(1);
1532 controller.byobRequest.respond(16);
1562 }, 'ReadableStream with byte source: read(view), then respond() and close() in pull()');
1585 controller.byobRequest.respond(1);
1613 assert_equals(viewInfosAfterRespond[i].bufferByteLength, 0, 'view.buffer should be transferred after respond()');
1616 }, 'ReadableStream with byte source: read(view) with Uint32Array, then fill it by multiple respond() calls');
1765 controller.byobRequest.respond(0);
1768 }, 'ReadableStream with byte source: Multiple read(view), close() and respond()');
2034 byobRequest.respond(4);
2041 assert_throws_js(TypeError, () => byobRequest.respond(4), 'respond() should throw a TypeError');
2043 }, 'calling respond() twice on the same byobRequest should throw');
2087 byobRequest.respond(0);
2090 assert_throws_js(TypeError, () => byobRequest.respond(0), 'respond() should throw');
2093 }, 'calling respond(0) twice on the same byobRequest should throw even when closed');
2120 assert_throws_js(TypeError, () => byobRequest.respond(0), 'respond() should throw');
2124 }, 'calling respond() should throw when canceled');
2167 br.respond(0);
2290 // Transfer the original BYOB request's buffer, and respond with a new view on that buffer
2330 // Transfer the original BYOB request's buffer, and respond with an empty view on that buffer
2394 byobRequest2.respond(3);
2395 assert_equals(byobRequest2.view, null, 'second byobRequest must be invalidated after respond()');
2433 // respond() should fulfill the *second* read() request
2435 byobRequest1.respond(1);
2437 assert_equals(byobRequest2, null, 'byobRequest should be null after respond()');
2443 }, 'ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader, respond()');
2470 // respond(1) should partially fill the second read(), but not yet fulfill it
2472 byobRequest1.respond(1);
2479 // second respond(1) should fill the read request and fulfill it
2481 byobRequest2.respond(1);
2491 '1 element Uint16Array, respond(1)');
2518 // respond(3) should fulfill the second read(), and put 1 remaining byte in the queue
2522 byobRequest1.respond(3);
2524 assert_equals(byobRequest2, null, 'byobRequest should be null after respond()');
2536 '2 element Uint8Array, respond(3)');
2631 // close() followed by respond(0) should fulfill the second read()
2633 byobRequest1.respond(0);
2635 assert_equals(byobRequest2, null, 'byobRequest should be null after respond()');
2641 'close(), respond(0)');
2667 // respond() should fulfill the *second* read() request
2669 byobRequest1.respond(1);
2671 assert_equals(byobRequest2, null, 'byobRequest should be null after respond()');
2677 }, 'ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read() on second reader, respond()');
2738 // respond() should fulfill the *second* read() request
2740 byobRequest1.respond(1);
2742 assert_equals(byobRequest2, null, 'byobRequest should be null after respond()');
2748 }, 'ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read(view) on second reader, respond()');
2801 // respond(1) should partially fill the first read(), but not yet fulfill it
2803 byobRequest1.respond(1);
2817 // second respond(1) should fill the read request and fulfill it
2819 byobRequest2.respond(1);
2820 assert_equals(controller.byobRequest, null, 'byobRequest should be invalidated after second respond()');
2830 }, 'ReadableStream with byte source: read(view) with 1 element Uint16Array, respond(1), releaseLock(), read(view) on ' +
2831 'second reader with 1 element Uint16Array, respond(1)');
2849 // respond(1) should partially fill the first read(), but not yet fulfill it
2851 byobRequest1.respond(1);
2867 assert_equals(controller.byobRequest, null, 'byobRequest should be invalidated after second respond()');
2877 }, 'ReadableStream with byte source: read(view) with 1 element Uint16Array, respond(1), releaseLock(), read() on ' +