[whatwg/streams] Prot writable stream abort tests to wpt (#540)

Just ported another test file to wpt. There is one thing where I'm unsure if this is the correct way for assertion. In some tests the constructor of the error object is compared. I couldn't get it to work without casting it to a string first.

For example:
```js
const ws = new WritableStream();
const writer = ws.getWriter();
writer.write().then(
   () => { throw new Error('something failed'); },
   r => assert_equals(r.constructor.toString(), TypeError.toString(), 'err message')
);
```
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Prot writable stream abort tests to wpt

-- File Changes --

    D reference-implementation/test/writable-stream-abort.js (287)
    M reference-implementation/to-upstream-wpts/writable-streams/aborting.https.html (1)
    M reference-implementation/to-upstream-wpts/writable-streams/aborting.js (257)

-- Patch Links --

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

Received on Friday, 14 October 2016 17:14:21 UTC