| Index: third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js b/third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js
|
| index 23e44ec1d35ce5c7c3010d84ad09571bf176c208..6fe86a246ea591502c079e4724c6bce8b97a05bc 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js
|
| @@ -17,6 +17,16 @@ self.templatedRSEmpty = (label, factory) => {
|
| assert_equals(typeof rs.tee, 'function', 'has a tee method');
|
|
|
| }, 'instances have the correct methods and properties');
|
| +
|
| + test(() => {
|
| + const rs = factory();
|
| +
|
| + assert_throws(new RangeError(), () => rs.getReader({ mode: '' }), 'empty string mode should throw');
|
| + assert_throws(new RangeError(), () => rs.getReader({ mode: null }), 'null mode should throw');
|
| + assert_throws(new RangeError(), () => rs.getReader({ mode: 'asdf' }), 'asdf mode should throw');
|
| + assert_throws(new TypeError(), () => rs.getReader(null), 'null should throw');
|
| +
|
| + }, 'calling getReader with invalid arguments should throw appropriate errors');
|
| };
|
|
|
| self.templatedRSClosed = (label, factory) => {
|
|
|