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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.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
Index: third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
index f4824ff6b429000a57a9fbe5e55905f3f1e555df..b0f722276ad5adc3cf12740cdedf5499507230b5 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
@@ -797,7 +797,7 @@ TEST_F(HTMLPreloadScannerTest, testReferrerPolicyOnDocument) {
TEST_F(HTMLPreloadScannerTest, testLinkRelPreload) {
TestCase test_cases[] = {
- {"http://example.test", "<link rel=preload href=bla>", "bla",
+ {"http://example.test", "<link rel=preload as=fetch href=bla>", "bla",
"http://example.test/", Resource::kRaw, 0},
{"http://example.test", "<link rel=preload href=bla as=script>", "bla",
"http://example.test/", Resource::kScript, 0},
@@ -838,6 +838,8 @@ TEST_F(HTMLPreloadScannerTest, testLinkRelPreload) {
{"http://example.test",
"<link rel=preload href=bla as=image media=\"(max-width: 400px)\">",
nullptr, "http://example.test/", Resource::kImage, 0},
+ {"http://example.test", "<link rel=preload href=bla>", nullptr,
+ "http://example.test/", Resource::kRaw, 0},
};
for (const auto& test_case : test_cases)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLLinkElement.idl ('k') | third_party/WebKit/Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698