Re: [streams] Byte stream update, including reference implementation (#361)

> +  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