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

Unified Diff: Source/core/html/LinkRelAttributeTest.cpp

Issue 235063003: Get rid of code duplication in LinkRelAttribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more silly Created 6 years, 8 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 | « Source/core/html/LinkRelAttribute.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/LinkRelAttributeTest.cpp
diff --git a/Source/core/html/LinkRelAttributeTest.cpp b/Source/core/html/LinkRelAttributeTest.cpp
index aecfe9d6ebbe674e775b43877ff7f22bb556a3fb..5dab3651c736f5537f78d953fb0673108662cb88 100644
--- a/Source/core/html/LinkRelAttributeTest.cpp
+++ b/Source/core/html/LinkRelAttributeTest.cpp
@@ -115,6 +115,7 @@ TEST_F(LinkRelAttributeTest, ConstructorTouchIconLoadingEnabled)
testLinkRelAttribute("dns-prefetch", false, InvalidIcon, false, true, false, false);
testLinkRelAttribute("dNs-pReFeTcH", false, InvalidIcon, false, true, false, false);
+ testLinkRelAttribute("alternate dNs-pReFeTcH", false, InvalidIcon, true, true, false, false);
testLinkRelAttribute("apple-touch-icon", false, TouchIcon, false, false, false, false);
testLinkRelAttribute("aPpLe-tOuCh-IcOn", false, TouchIcon, false, false, false, false);
@@ -131,7 +132,7 @@ TEST_F(LinkRelAttributeTest, ConstructorTouchIconLoadingEnabled)
testLinkRelAttribute("alternate icon stylesheet", true, Favicon, true, false, false, false);
testLinkRelAttribute("import", false, InvalidIcon, false, false, false, false, true);
- // "import" is mutually exclusive and "stylesheet" wins when they conflict.
+ testLinkRelAttribute("alternate import", false, InvalidIcon, true, false, false, false, true);
testLinkRelAttribute("stylesheet import", true, InvalidIcon, false, false, false, false, false);
}
« no previous file with comments | « Source/core/html/LinkRelAttribute.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698