Index: third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
index 5d615bd9a17a3c34c41d247f324c840a84569e55..10e0975641ae1f20c9788db0daf98c480fa4e760 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
@@ -102,4 +102,27 @@ TEST(ComputedStyleTest, |
EXPECT_TRUE(diff.TransformChanged()); |
} |
+TEST(CompuetedStyleTest, HasOutlineWithCurrentColor) { |
+ RefPtr<ComputedStyle> style = ComputedStyle::Create(); |
+ EXPECT_FALSE(style->HasOutline()); |
+ EXPECT_FALSE(style->HasOutlineWithCurrentColor()); |
+ style->SetOutlineColor(StyleColor::CurrentColor()); |
+ EXPECT_FALSE(style->HasOutlineWithCurrentColor()); |
+ style->SetOutlineWidth(5); |
+ EXPECT_FALSE(style->HasOutlineWithCurrentColor()); |
+ style->SetOutlineStyle(kBorderStyleSolid); |
+ EXPECT_TRUE(style->HasOutlineWithCurrentColor()); |
+} |
+ |
+TEST(CompuetedStyleTest, HasBorderColorReferencingCurrentColor) { |
+ RefPtr<ComputedStyle> style = ComputedStyle::Create(); |
+ EXPECT_FALSE(style->HasBorderColorReferencingCurrentColor()); |
+ style->SetBorderBottomColor(StyleColor::CurrentColor()); |
+ EXPECT_FALSE(style->HasBorderColorReferencingCurrentColor()); |
+ style->SetBorderBottomWidth(5); |
+ EXPECT_FALSE(style->HasBorderColorReferencingCurrentColor()); |
+ style->SetBorderBottomStyle(kBorderStyleSolid); |
+ EXPECT_TRUE(style->HasBorderColorReferencingCurrentColor()); |
+} |
+ |
} // namespace blink |