- From: Adam Rice <notifications@github.com>
- Date: Tue, 14 Feb 2017 22:07:16 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 February 2017 06:07:51 UTC
```javascript
promise_test(() => {
let resolveStart;
const ws = recordingWritableStream({
start() {
return new Promise(resolve => {
resolveStart = resolve;
});
}
});
const abortPromise = ws.abort('done');
return flushAsyncEvents().then(() => {
assert_array_equals(ws.events, [], 'abort() should not be called during start()');
resolveStart();
return abortPromise.then(() => {
assert_array_equals(ws.events, ['abort', 'done'], 'abort() should be called after start() is done');
});
});
}, 'abort() should not be called until start() is 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/issues/683#issuecomment-279925432
Received on Wednesday, 15 February 2017 06:07:51 UTC