Lines Matching refs:close
131 c.close();
178 c.close();
194 c.close();
653 controller.close();
667 }, 'ReadableStream with byte source: getReader(), enqueue(), close(), then read()');
673 c.close();
693 }, 'ReadableStream with byte source: enqueue(), close(), getReader(), then read()');
787 c.close();
1439 c.close();
1450 }, 'ReadableStream with byte source: read(view) with Uint16Array on close()-d stream with 1 byte enqueue()-d must ' +
1472 assert_throws_js(TypeError, () => controller.close(), 'controller.close() must throw');
1476 }, 'ReadableStream with byte source: A stream must be errored if close()-d before fulfilling read(view) with ' +
1489 // Enqueue a chunk so that the stream doesn't get closed. This is to check duplicate close() calls are rejected
1493 controller.close();
1495 assert_throws_js(TypeError, () => controller.close(), 'controller.close() must throw');
1496 }, 'ReadableStream with byte source: Throw if close()-ed more than once');
1508 // Enqueue a chunk so that the stream doesn't get closed. This is to check enqueue() after close() is rejected
1512 controller.close();
1514 assert_throws_js(TypeError, () => controller.enqueue(view), 'controller.close() must throw');
1515 }, 'ReadableStream with byte source: Throw on enqueue() after close()');
1533 controller.close();
1562 }, 'ReadableStream with byte source: read(view), then respond() and close() in pull()');
1764 controller.close();
1768 }, 'ReadableStream with byte source: Multiple read(view), close() and respond()');
1837 controller.close();
2086 controller.close();
2165 controller.close();
2252 c.close();
2334 controller.close();
2631 // close() followed by respond(0) should fulfill the second read()
2632 controller.close();
2641 'close(), respond(0)');