| Index: third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
|
| index 4bf74af49e110f4541d331c937bbcb9799187083..080c25e70a904e3dd35abe855cbf88c52c0404b1 100644
|
| --- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
|
| +++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp
|
| @@ -321,4 +321,20 @@ TEST_F(RuleFeatureSetTest, tagName)
|
| expectTagNameInvalidation("e", invalidationLists.descendants);
|
| }
|
|
|
| +TEST_F(RuleFeatureSetTest, contentPseudo)
|
| +{
|
| + updateInvalidationSets(".a ::content .b");
|
| + updateInvalidationSets(".a .c");
|
| +
|
| + InvalidationLists invalidationLists;
|
| + collectInvalidationSetsForClass(invalidationLists, "a");
|
| + expectClassInvalidation("c", invalidationLists.descendants);
|
| +
|
| + updateInvalidationSets(".a .b");
|
| +
|
| + invalidationLists.descendants.clear();
|
| + collectInvalidationSetsForClass(invalidationLists, "a");
|
| + expectClassesInvalidation("b", "c", invalidationLists.descendants);
|
| +}
|
| +
|
| } // namespace blink
|
|
|