Re: [streams] Port a bunch of tests to web-platform-tests format (#397)

> +            }
> +        });
> +    }, 'constructing the stream should re-throw the error');
> +}, 'Underlying source start: throwing method');
> +
> +var test1 = async_test('Underlying source: throwing pull getter (initial pull)');
> +test1.step(function() {
> +    var theError = new Error('a unique string');
> +    var rs = new ReadableStream({
> +        get pull() {
> +            throw theError;
> +        }
> +    });
> +
> +    rs.getReader().closed.then(
> +        test1.step_func(function() { assert_unreached('closed should not fulfill'); }),

you can use test1.unreached_func

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/397/files#r42096939

Received on Thursday, 15 October 2015 08:45:31 UTC