Lines Matching refs:close
47 writer.close();
52 assert_array_equals(ws.events, [], 'close should not be called until start promise resolves');
56 }, 'underlying sink\'s close should not be called until start finishes');
73 close() {
79 assert_false(closeCalled, 'close should not be called');
80 }, 'underlying sink\'s write or close should not be called if start throws');
89 // Wait and verify that write or close aren't called.
91 .then(() => assert_array_equals(ws.events, [], 'write and close should not be called'));
92 }, 'underlying sink\'s write or close should not be invoked if the promise returned by start is rejected');
130 const closePromise = writer.close();
135 promise_rejects_exactly(t, error1, closePromise, 'close() should fail')
137 assert_array_equals(ws.events, [], 'sink write() and close() should not have been called');