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

Unified Diff: LayoutTests/http/tests/serviceworker/fetch-access-control.html

Issue 555443002: [Fetch API] Put body members directly on Response/Request (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment Created 6 years, 3 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: LayoutTests/http/tests/serviceworker/fetch-access-control.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch-access-control.html b/LayoutTests/http/tests/serviceworker/fetch-access-control.html
index e9ef0a81385ea3def368e5d6fa9298efd4f430d5..cc2399c2db4dfb702e8a39d3dc42aa7f1ca1df31 100644
--- a/LayoutTests/http/tests/serviceworker/fetch-access-control.html
+++ b/LayoutTests/http/tests/serviceworker/fetch-access-control.html
@@ -21,9 +21,13 @@ var checkFetchResponseBody = function (hasBody, url, data) {
assert_equals(data.fetchResult,
'resolved',
'fetchResult must be resolved. url: ' + url);
- assert_equals(data.hasBody,
- hasBody,
- 'hasBody must match. url: ' + url);
+ if (hasBody) {
+ assert_not_equals(data.body, '',
+ 'response must have body. url: ' + url);
+ } else {
+ assert_equals(data.body, '',
+ 'response must not have body. url: ' + url);
+ }
};
var checkFetchResponseHeader = function (name, expected, url, data) {
assert_equals(data.fetchResult,

Powered by Google App Engine
This is Rietveld 408576698