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

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

Issue 1448333002: Add requests omit-origin-header-flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | third_party/WebKit/Source/modules/fetch/FetchRequestData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js
index 9cd67290e28792a24144c8bca5219acfa0316bcd..2dd92080197f7feb7fba6629e5087e3b8ef62463 100644
--- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js
@@ -643,6 +643,12 @@ test(function() {
});
}, 'Request throw error test');
+test(function() {
+ var req = new Request(URL, {method: 'GET'});
+ assert_equals(req.referrer, 'about:client',
+ 'Request.referrer should be client');
+ }, 'Request referrer test, if inits members are present');
hiroshige 2015/11/19 11:17:41 This seems already tested? https://code.google.com
+
// Tests for MIME types.
promise_test(function(t) {
var req = new Request('http://localhost/',
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/FetchRequestData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698