| Index: LayoutTests/http/tests/fetch/script-tests/response.js
|
| diff --git a/LayoutTests/http/tests/fetch/script-tests/response.js b/LayoutTests/http/tests/fetch/script-tests/response.js
|
| index 6c3a6bd462f225d81a8e33f0a7696c7ecbb35e18..d9055519ffaf1de1db63cc78fe7a28d8a67aeb15 100644
|
| --- a/LayoutTests/http/tests/fetch/script-tests/response.js
|
| +++ b/LayoutTests/http/tests/fetch/script-tests/response.js
|
| @@ -121,6 +121,15 @@ test(function() {
|
| ' should throw');
|
| });
|
|
|
| + [204, 205, 304].forEach(function(status) {
|
| + assert_throws({name: 'TypeError'},
|
| + function() {
|
| + new Response(new Blob(), {status: status});
|
| + },
|
| + 'new Response with null body status ' + status +
|
| + ' and body is non-null should throw');
|
| + });
|
| +
|
| [300, 0, 304, 305, 306, 309, 500].forEach(function(status) {
|
| assert_throws({name: 'RangeError'},
|
| function() {
|
|
|