Re: [streams] Convert readable stream pull() to promise-returning (#272)

> +      size() {
> +        return 1;
> +      },
> +      shouldApplyBackpressure() {
> +        return false;
> +      }
> +    }
> +  });
> +
> +  t.equal(rs.state, 'readable', 'since start() synchronously enqueued chunks, the stream is readable');
> +
> +  // Wait for start to finish
> +  rs.ready.then(() => {
> +    t.equal(rs.read(), 'a', 'first chunk should be as expected');
> +    t.equal(rs.read(), 'b', 'second chunk should be as expected');
> +    t.equal(rs.read(), 'c', 'second chunk should be as expected');

third

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

Received on Thursday, 5 February 2015 08:58:26 UTC