[whatwg/streams] rework recording-streams helper (#609)

This is the first building block towards being able to record the events of multiple streams in a single array for future backpressure tests.

The old, flattened `events` array is easy to use with `assert_array_equals`, so it's preserved with a few getter properties on top of the more detailed logging.

The next step is creating a 'factory' object that creates recording writable, readable, and transform streams, and records both when the sink/source/transformer methods are invoked, and when their returned promises fulfill, all in one array so you can see the relative ordering of them all to each other without relying on timeouts. `recorderFactory.createReadable()` et al. would take a new `name` argument to label which stream an event came from, etc.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/609

-- Commit Summary --

  * make recordable streams clearer
  * rework recording streams helper

-- File Changes --

    M reference-implementation/to-upstream-wpts/piping/flow-control.js (6)
    M reference-implementation/to-upstream-wpts/resources/recording-streams.js (140)
    M reference-implementation/to-upstream-wpts/writable-streams/bad-underlying-sinks.js (6)

-- Patch Links --

https://github.com/whatwg/streams/pull/609.patch
https://github.com/whatwg/streams/pull/609.diff

-- 
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/609

Received on Thursday, 10 November 2016 19:34:59 UTC