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

Unified Diff: LayoutTests/http/tests/serviceworker/request-end-to-end.html

Issue 1320023005: Set the fetch API request flags correctly for navigation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: delegated constructors Created 5 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/request-end-to-end.html
diff --git a/LayoutTests/http/tests/serviceworker/request-end-to-end.html b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
index 4ac9fed777ff1ceafc04cb653400cd7e9cb323e7..a83a0b4e17f6322dc6b58e6a5d2881f9044cf318 100644
--- a/LayoutTests/http/tests/serviceworker/request-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
@@ -20,6 +20,9 @@ promise_test(t => {
assert_equals(result.url, frame.src, 'request.url');
assert_equals(result.method, 'GET', 'request.method');
assert_equals(result.referrer, location.href, 'request.referrer');
+ assert_equals(result.mode, 'same-origin', 'request.mode');
+ assert_equals(result.credentials, 'include', 'request.credentials');
+ assert_equals(result.redirect, 'manual', 'request.redirect');
assert_equals(result.headers['user-agent'], navigator.userAgent,
'User-Agent header');
assert_equals(result.append_header_error, 'TypeError',

Powered by Google App Engine
This is Rietveld 408576698