- From: Adam Rice <notifications@github.com>
- Date: Tue, 15 Aug 2017 16:44:59 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 15 August 2017 23:45:23 UTC
ricea commented on this pull request. > + let startCalled = false; + let startDone = false; + let transformDone = false; + let flushDone = false; + const ts = new TransformStream({ + start() { + startCalled = true; + return new Promise(resolve => setTimeout(resolve, 90)) + .then(() => { startDone = true; }); + }, + transform() { + t.step(() => { + assert_true(startDone, 'startPromise must resolve before transform is called'); + }); + return new Promise(resolve => setTimeout(resolve, 30)) + .then(() => { transformDone = true; }); Done. -- 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/762#discussion_r133330998
Received on Tuesday, 15 August 2017 23:45:23 UTC