- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 11 Jun 2015 14:06:36 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 11 June 2015 21:07:04 UTC
> + const reader = rbs.getReader();
> +
> + reader.read().then(result => {
> + t.equals(result.done, false);
> +
> + const view = result.value;
> + t.equals(view.constructor, Uint8Array);
> + t.equals(view.buffer.byteLength, 32);
> + t.equals(view.byteOffset, 0);
> + t.equals(view.byteLength, 32);
> +
> + t.end();
> + });
> +});
> +
> +test('ReadableByteStream: enqueue(), read(view) partially, then read()', t => {
Wow, these tests are awesome! It actually works!!
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/361/files#r32268254
Received on Thursday, 11 June 2015 21:07:04 UTC