[whatwg/streams] Port test that sink methods are called as methods (#535)

Port the test 'WritableStream should call underlying sink methods as
methods' to web-platform-tests. The tape test relied on assertions
working after the test function had completed. The new test creates a
promise for each method, then fulfills it with the value of 'this'. The
main logic then verifies that each promise is fulfilled with the correct
value of 'this'.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/535

-- Commit Summary --

  * Port test that sink methods are called as methods

-- File Changes --

    M reference-implementation/test/writable-stream.js (36)
    M reference-implementation/to-upstream-wpts/writable-streams/general.js (47)

-- Patch Links --

https://github.com/whatwg/streams/pull/535.patch
https://github.com/whatwg/streams/pull/535.diff

-- 
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/535

Received on Thursday, 13 October 2016 06:54:14 UTC