[whatwg/streams] Port write() tests to web-platform-tests (#527)

Move tests relating to the WritableStream sink's stream() 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
* Use promise_rejects() instead of explicitly checking .then()
* Use assert_equals() instead of if(!equal) fail()
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

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

-- File Changes --

    M reference-implementation/test/writable-stream.js (289)
    A reference-implementation/to-upstream-wpts/writable-streams/write.https.html (12)
    A reference-implementation/to-upstream-wpts/writable-streams/write.js (219)

-- Patch Links --

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

Received on Friday, 7 October 2016 12:04:29 UTC