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

Unified Diff: Source/core/css/RuleSetTest.cpp

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/css/RuleFeature.cpp ('k') | Source/core/css/html.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RuleSetTest.cpp
diff --git a/Source/core/css/RuleSetTest.cpp b/Source/core/css/RuleSetTest.cpp
index 7ada3455e259aa9133ea567e3f1387fc851b7769..038d3ee920424d33ebe414851990c23669c921be 100644
--- a/Source/core/css/RuleSetTest.cpp
+++ b/Source/core/css/RuleSetTest.cpp
@@ -47,6 +47,17 @@ TEST(RuleSetTest, findBestRuleSetAndAdd_CustomPseudoElements)
ASSERT_EQ(str, rules->at(0).selector().value());
}
+TEST(RuleSetTest, findBestRuleSetAndAdd_MarkerElementNotAllowedInNonUAStyle)
+{
+ CSSTestHelper helper;
+
+ helper.tryAddCSSRules("li::marker { }");
+ RuleSet& ruleSet = helper.ruleSet();
+ AtomicString str("li");
+ const TerminatedArray<RuleData>* rules = ruleSet.tagRules(str);
+ ASSERT_EQ(0u, rules->size());
+}
+
TEST(RuleSetTest, findBestRuleSetAndAdd_Id)
{
CSSTestHelper helper;
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | Source/core/css/html.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698