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

Unified Diff: LayoutTests/http/tests/fetch/script-tests/request.js

Issue 1043133002: [Fetch] Remove Request.body. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/script-tests/request.js
diff --git a/LayoutTests/http/tests/fetch/script-tests/request.js b/LayoutTests/http/tests/fetch/script-tests/request.js
index 1f736874cf3220723030df931858383b83f64ee1..68931272955f23b5d79df66538468375d8b5fb22 100644
--- a/LayoutTests/http/tests/fetch/script-tests/request.js
+++ b/LayoutTests/http/tests/fetch/script-tests/request.js
@@ -689,7 +689,6 @@ promise_test(function(t) {
},
'MIME type unchanged if headers are modified after Request() constructor');
-// The following two tests follow different code paths in Body::readAsync().
promise_test(function(t) {
var req = new Request('http://localhost/',
{method: 'POST',
@@ -702,17 +701,4 @@ promise_test(function(t) {
});
}, 'Extract a MIME type (1)');
-promise_test(function(t) {
- var req = new Request('http://localhost/',
- {method: 'POST',
- body: new Blob([''], {type: 'Text/Plain'}),
- headers: [['Content-Type', 'Text/Html']]});
- req.body.cancel();
- return req.blob()
- .then(function(blob) {
- assert_equals(blob.type, 'text/html');
- assert_equals(req.headers.get('Content-Type'), 'Text/Html');
- });
- }, 'Extract a MIME type (2)');
-
done();
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698