- From: Adam Rice <notifications@github.com>
- Date: Wed, 23 Aug 2017 09:48:35 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 August 2017 09:48:59 UTC
ricea commented on this pull request. > @@ -0,0 +1,112 @@ +'use strict'; + +if (self.importScripts) { + self.importScripts('/resources/testharness.js', '../resources/recording-streams.js', '../resources/test-utils.js'); +} + +promise_test(() => { + const ts = recordingIdentityTransformStream(); + const writer = ts.writable.getWriter(); + writer.write('a'); + writer.write('b'); + return delay(0).then(() => { + assert_array_equals(ts.events, ['transform', 'a'], 'transform should be called once'); + }); +}, 'transform() should be called once with default identity transform'); It must be confusing, because the second chunk is being blocked by backpressure. -- 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/773#discussion_r134705829
Received on Wednesday, 23 August 2017 09:48:59 UTC