| Index: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
|
| index 66bccf2d4f520d9c57ca4ac6591741deeb8012ed..b97a0edbfba9ce88f74c82c9205bfd8d5b6a6242 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js
|
| @@ -270,7 +270,13 @@ promise_test(function(t) {
|
| }, 'call blob() on null body response');
|
|
|
| promise_test(function(t) {
|
| - return new Response().json().then(unreached_rejection(t), e => {
|
| + return new Response().formData().then(unreached_fulfillment(t), e => {
|
| + assert_equals(e.constructor, TypeError);
|
| + });
|
| + }, 'call formData() on null body response');
|
| +
|
| +promise_test(function(t) {
|
| + return new Response().json().then(unreached_fulfillment(t), e => {
|
| assert_equals(e.constructor, SyntaxError);
|
| });
|
| }, 'call json() on null body response');
|
|
|