| 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,
|
|
|