- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 05 Oct 2016 09:00:13 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 5 October 2016 16:00:44 UTC
domenic commented on this pull request. > +test(() => { + const ws = new WritableStream(); +}, 'WritableStream should be constructible with no arguments'); + +test(() => { + const ws = new WritableStream({}); + + const writer = ws.getWriter(); + + assert_equals(typeof writer.write, 'function', 'writer should have a write method'); + assert_equals(typeof writer.abort, 'function', 'writer should have an abort method'); + assert_equals(typeof writer.close, 'function', 'writer should have a close method'); + + assert_equals(writer.desiredSize, 1, 'desiredSize should start at 1'); + + assert_idl_attribute(writer, 'ready', 'writer should have a ready attribute'); Since these technically aren't IDL attributes, it's probably misleading to use assert_idl_attribute. I'm a bit surprised the test passes. -- 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/524#pullrequestreview-2945526
Received on Wednesday, 5 October 2016 16:00:44 UTC