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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp

Issue 2903653005: [preload] Mandatory `as` value and related spec alignments (Closed)
Patch Set: IDL changes Created 3 years, 7 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 | « third_party/WebKit/Source/core/loader/LinkLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
index 23463afe4b8be089e506a12b11f6be92c37ee0f6..6d9aaa319f37f199208f414e30a2dbaff4951cd9 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp
@@ -166,12 +166,15 @@ constexpr PreloadTestParams kPreloadTestParams[] = {
kReferrerPolicyDefault},
// TODO(yoav): subresource should be *very* low priority (rather than
// low).
- {"http://example.test/cat.empty", "", "", "", kReferrerPolicyDefault,
+ {"http://example.test/cat.empty", "fetch", "", "", kReferrerPolicyDefault,
kResourceLoadPriorityHigh, WebURLRequest::kRequestContextSubresource, true,
true, kReferrerPolicyDefault},
{"http://example.test/cat.blob", "blabla", "", "", kReferrerPolicyDefault,
kResourceLoadPriorityLow, WebURLRequest::kRequestContextSubresource, false,
false, kReferrerPolicyDefault},
+ {"http://example.test/cat.blob", "", "", "", kReferrerPolicyDefault,
+ kResourceLoadPriorityLow, WebURLRequest::kRequestContextSubresource, false,
+ false, kReferrerPolicyDefault},
{"bla://example.test/cat.gif", "image", "", "", kReferrerPolicyDefault,
kResourceLoadPriorityUnresolved, WebURLRequest::kRequestContextImage,
false, false, kReferrerPolicyDefault},
@@ -222,13 +225,17 @@ constexpr PreloadTestParams kPreloadTestParams[] = {
{"http://example.test/cat.woff", "font", "font/woff84", "",
kReferrerPolicyDefault, kResourceLoadPriorityUnresolved,
WebURLRequest::kRequestContextFont, false, false, kReferrerPolicyDefault},
- {"http://example.test/cat.empty", "", "foo/bar", "", kReferrerPolicyDefault,
- kResourceLoadPriorityHigh, WebURLRequest::kRequestContextSubresource, true,
- true, kReferrerPolicyDefault},
+ {"http://example.test/cat.empty", "fetch", "foo/bar", "",
+ kReferrerPolicyDefault, kResourceLoadPriorityHigh,
+ WebURLRequest::kRequestContextSubresource, true, true,
+ kReferrerPolicyDefault},
{"http://example.test/cat.blob", "blabla", "foo/bar", "",
kReferrerPolicyDefault, kResourceLoadPriorityLow,
WebURLRequest::kRequestContextSubresource, false, false,
kReferrerPolicyDefault},
+ {"http://example.test/cat.blob", "", "foo/bar", "", kReferrerPolicyDefault,
+ kResourceLoadPriorityLow, WebURLRequest::kRequestContextSubresource, false,
+ false, kReferrerPolicyDefault},
// Media tests
{"http://example.test/cat.gif", "image", "image/gif", "(max-width: 600px)",
kReferrerPolicyDefault, kResourceLoadPriorityLow,
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698