| 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 d0c4b07ac1a85df0d485de2d085103ff19943a91..fd66193a6a8680571428e4b0672c3d3d3cc8d425 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
|
| @@ -281,7 +281,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');
|
|
|