- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 31 Aug 2017 00:38:09 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 31 August 2017 00:38:36 UTC
domenic approved this pull request. LGTM with tweak. > + 'transform() should have been called 9 times'); + }); +}, 'readableStrategy highWaterMark works'); + +promise_test(t => { + let writableSizeCalled = false; + let readableSizeCalled = false; + const ts = new TransformStream( + { + transform(chunk, controller) { + t.step(() => { + assert_true(writableSizeCalled, 'writableStrategy.size() should have been called'); + assert_false(readableSizeCalled, 'readableStrategy.size() should not have been called'); + controller.enqueue(chunk); + assert_true(readableSizeCalled, 'readableStrategy.size() should have been called'); + }); Can you set a boolean to true inside this test and then check it before the test succeeds? Right now I believe the test will succeed if write() just does `return Promise.resolve()`. -- 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/783#pullrequestreview-59731495
Received on Thursday, 31 August 2017 00:38:36 UTC