| 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 f3f588b5fab813752b22d9fd7af0009d31bbfdb2..7c8f3c64a124c1d1e9c5d725abdbf2ef97d07eaa 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| @@ -78,4 +78,18 @@ TEST(ComputedStyleTest, Preserve3dForceStackingContext) {
|
| EXPECT_TRUE(style->isStackingContext());
|
| }
|
|
|
| +TEST(ComputedStyleTest, FirstPublicPseudoStyle) {
|
| + RefPtr<ComputedStyle> style = ComputedStyle::create();
|
| + style->setHasPseudoStyle(PseudoIdFirstLine);
|
| + EXPECT_TRUE(style->hasPseudoStyle(PseudoIdFirstLine));
|
| + EXPECT_TRUE(style->hasAnyPublicPseudoStyles());
|
| +}
|
| +
|
| +TEST(ComputedStyleTest, LastPublicPseudoStyle) {
|
| + RefPtr<ComputedStyle> style = ComputedStyle::create();
|
| + style->setHasPseudoStyle(PseudoIdScrollbar);
|
| + EXPECT_TRUE(style->hasPseudoStyle(PseudoIdScrollbar));
|
| + EXPECT_TRUE(style->hasAnyPublicPseudoStyles());
|
| +}
|
| +
|
| } // namespace blink
|
|
|