Lines Matching refs:should

20   assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
22 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after writer.write()');
27 assert_array_equals(ws.events, [], 'write should not be called until start promise resolves');
32 'write should not be called until start promise resolves'));
33 }, 'underlying sink\'s write should not be called until start finishes');
48 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
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');
77 }, 'constructor should throw passedError');
78 assert_false(writeCalled, 'write should not be called');
79 assert_false(closeCalled, 'close should not be called');
80 }, 'underlying sink\'s write or close should not be called if start throws');
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');
102 return promise_rejects_exactly(t, error1, ws.getWriter().closed, 'closed promise should be rejected');
103 }, 'returning a thenable from start() should work');
111 return promise_rejects_exactly(t, error1, ws.getWriter().write('a'), 'write() should reject with the error')
113 assert_array_equals(ws.events, [], 'sink write() should not have been called');
115 }, 'controller.error() during start should cause writes to fail');
134 promise_rejects_exactly(t, error1, writePromise, 'write() should fail'),
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');
139 }, 'controller.error() during async start should cause existing writes to fail');
145 promises.push(promise.then(t.unreached_func(`promise ${name} should not resolve`),
161 assert_array_equals(events, ['ready', 'write', 'closed'], 'promises should reject in standard order');
163 }, 'when start() rejects, writer promises should reject in standard order');