Re: [whatwg/streams] Factor out WritableStreamDefaultWriterRelease (#513)

> @@ -80,3 +80,22 @@ test(() => {
>      }
>    );
>  }, 'ws.getWriter() on an errored WritableStream');
> +
> +promise_test(() => {
> +  const ws = new WritableStream({});
> +
> +  const writer = ws.getWriter();
> +  writer.releaseLock();
> +
> +  return writer.closed.then(

Maybe use the weird promise_rejects() function from testharness.js? Something like

return promise_rejects(t, 'TypeError', writer.closed, 'closed promise rejects')
    .then(promise_rejects(t, 'TypeError', writer.ready, 'ready promise rejects');

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/513/files/36b7a282e2a206b03be411063cfba345624daad8#r77142282

Received on Thursday, 1 September 2016 09:33:00 UTC