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 5abdafc4441a488f3aa0cf6da302cc936f183936..d8241227e6327538a451b4eb2f5b8123e235c03e 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'); |