Chromium Code Reviews| 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 392e89efb15b932da72d33dd1af78b9b7ffedf92..47c93a97ca10053853d37f4b5673638ee3c5321d 100644 |
| --- a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
| +++ b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp |
| @@ -102,7 +102,7 @@ TEST(ComputedStyleTest, |
| EXPECT_TRUE(diff.TransformChanged()); |
| } |
| -TEST(CompuetedStyleTest, HasOutlineWithCurrentColor) { |
| +TEST(ComputedStyleTest, HasOutlineWithCurrentColor) { |
|
nainar
2017/05/23 05:06:50
These were spelt incorrectly and never ran before.
|
| RefPtr<ComputedStyle> style = ComputedStyle::Create(); |
| EXPECT_FALSE(style->HasOutline()); |
| EXPECT_FALSE(style->HasOutlineWithCurrentColor()); |
| @@ -114,7 +114,7 @@ TEST(CompuetedStyleTest, HasOutlineWithCurrentColor) { |
| EXPECT_TRUE(style->HasOutlineWithCurrentColor()); |
| } |
| -TEST(CompuetedStyleTest, HasBorderColorReferencingCurrentColor) { |
| +TEST(ComputedStyleTest, HasBorderColorReferencingCurrentColor) { |
| RefPtr<ComputedStyle> style = ComputedStyle::Create(); |
| EXPECT_FALSE(style->HasBorderColorReferencingCurrentColor()); |
| style->SetBorderBottomColor(StyleColor::CurrentColor()); |
| @@ -125,4 +125,14 @@ TEST(CompuetedStyleTest, HasBorderColorReferencingCurrentColor) { |
| EXPECT_TRUE(style->HasBorderColorReferencingCurrentColor()); |
| } |
| +TEST(ComputedStyleTest, BorderWidth) { |
| + RefPtr<ComputedStyle> style = ComputedStyle::Create(); |
|
nainar
2017/05/23 05:06:50
Happy to copy this test for all Border*Width.
|
| + style->SetBorderBottomWidth(5); |
| + EXPECT_EQ(style->BorderBottomWidth(), 0); |
| + EXPECT_EQ(style->BorderBottom().Width(), 5); |
| + style->SetBorderBottomStyle(EBorderStyle::kSolid); |
| + EXPECT_EQ(style->BorderBottomWidth(), 5); |
| + EXPECT_EQ(style->BorderBottom().Width(), 5); |
| +} |
| + |
| } // namespace blink |