Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/response.js

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');

Powered by Google App Engine
This is Rietveld 408576698