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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleTest.cpp

Issue 2729373003: Bit-mask incorrectly removed first-line pseudo bit. (Closed)
Patch Set: Fixed issues. Created 3 years, 9 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 | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('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/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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698