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

> +        assert_throws(new TypeError(), function() {
> +            new ReadableStream({}, {
> +                size: function() {
> +                    return 1;
> +                },
> +                highWaterMark
> +            });
> +        }, 'construction should throw a TypeError for ' + highWaterMark);
> +    }
> +}, 'Readable stream: invalid strategy.highWaterMark');
> +
> +var test2 = async_test('Readable stream: invalid strategy.size return value');
> +test2.step(function() {
> +    var numberOfCalls = 0;
> +    var elements = [NaN, -Infinity, +Infinity, -1];
> +    var theError = [];

theErrors

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

Received on Thursday, 15 October 2015 08:33:14 UTC