Re: [streams] Clean up more web platform tests (#408)

> +
> +}, 'ReadableStreamReader.prototype.cancel enforces a brand check');
> +
> +promise_test(t => {
> +
> +  return Promise.all([
> +    methodRejects(t, ReadableStreamReader.prototype, 'read', fakeReadableStreamReader()),
> +    methodRejects(t, ReadableStreamReader.prototype, 'read', realReadableStream(), true)
> +  ]);
> +
> +}, 'ReadableStreamReader.prototype.read enforces a brand check');
> +
> +test(() => {
> +
> +  methodThrows(ReadableStreamReader.prototype, 'releaseLock', fakeReadableStreamReader());
> +  methodThrows(ReadableStreamReader.prototype, 'releaseLock', realReadableStream(), true);

Thanks, fixed here and elsewhere in the file

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/408/files#r46179835

Received on Monday, 30 November 2015 18:13:31 UTC