[whatwg/streams] Port close() tests to web-platform-tests (#529)

Move tests relating to the WritableStream sink's close() method to the
testharness.js framework.

To reduce the risk of functional changes, changes to the tests are
intentionally minimal. The only kinds of changes are:

* Use testharness.js syntax
* Match web-platform-tests style

async_test was used where necessary to retain the existing
semantics. It will be changed to promise_test in a separate commit.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Port close() tests to web-platform-tests

-- File Changes --

    M reference-implementation/test/writable-stream.js (103)
    A reference-implementation/to-upstream-wpts/writable-streams/close.https.html (12)
    A reference-implementation/to-upstream-wpts/writable-streams/close.js (87)

-- Patch Links --

https://github.com/whatwg/streams/pull/529.patch
https://github.com/whatwg/streams/pull/529.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/529

Received on Tuesday, 11 October 2016 06:15:45 UTC