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

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

Issue 1068783005: {Request, Response}.blob() should release its lock when resolved. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@request-body-setting
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/response.js » ('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 7de3ba6c804ee5673f747f1fd1eef15b95e6e593..44ef797bf80e9f255a731fae91c734315fbbf0ce 100644
--- a/LayoutTests/http/tests/fetch/script-tests/request.js
+++ b/LayoutTests/http/tests/fetch/script-tests/request.js
@@ -525,10 +525,9 @@ promise_test(function(t) {
.then(function(blob) {
assert_equals(blob.type, 'text/plain');
assert_equals(req.headers.get('Content-Type'), 'text/plain');
-// TODO(yhirano): Currently blob() calling sets |bodyUsed| parmanently. Fix it.
-// return new Request(req).blob();
-// }).then(function(blob) {
-// assert_equals(blob.type, 'text/plain');
+ return new Request(req).blob();
+ }).then(function(blob) {
+ assert_equals(blob.type, 'text/plain');
});
}, 'MIME type for Blob with non-empty type');
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/response.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698