Chromium Code Reviews| Index: Source/core/css/RuleSetTest.cpp |
| diff --git a/Source/core/css/RuleSetTest.cpp b/Source/core/css/RuleSetTest.cpp |
| index e9b70df4b3a214603d70ea31681689d8f0bb0ab8..414bfe83317e4f0a80591a5631d1d3539ad7489b 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()); |
| +} |
|
Julien - ping for review
2014/12/05 19:44:03
Only one unit test?
|
| + |
| TEST(RuleSetTest, findBestRuleSetAndAdd_Id) |
| { |
| CSSTestHelper helper; |