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

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: More global-interface-listing*-expected.txt, urlencoded-parser-expected.txt Created 3 years, 7 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 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');

Powered by Google App Engine
This is Rietveld 408576698