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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp

Issue 2496343002: Support as=<UPPERCASE VALUE> for link preloads in preload scanner (Closed)
Patch Set: add another test case Created 4 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 | « third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.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/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 6d4eacf163f02f6fc62b9c11f038973f93d77757..bab5adaccb6fdd90155dbc63ce03e284756c3790 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScannerTest.cpp
@@ -803,4 +803,17 @@ TEST_F(HTMLPreloadScannerTest, testScriptTypeAndLanguage) {
test(testCase);
}
+// Regression test for crbug.com/664744.
+TEST_F(HTMLPreloadScannerTest, testUppercaseAsValues) {
+ TestCase testCases[] = {
+ {"http://example.test", "<link rel=preload href=bla as=SCRIPT>", "bla",
+ "http://example.test/", Resource::Script, 0},
+ {"http://example.test", "<link rel=preload href=bla as=fOnT>", "bla",
+ "http://example.test/", Resource::Font, 0},
+ };
+
+ for (const auto& testCase : testCases)
+ test(testCase);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698