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 f27597af8df9d71fd1c7474fa6a941555cf458cd..91f90bccb5f9ac8d10e5942ce5106aa3e7511687 100644 |
--- a/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp |
+++ b/third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp |
@@ -101,6 +101,12 @@ public: |
EXPECT_TRUE(invalidationSets[0]->invalidatesSelf()); |
} |
+ void expectNoSelfInvalidation(InvalidationSetVector& invalidationSets) |
+ { |
+ EXPECT_EQ(1u, invalidationSets.size()); |
+ EXPECT_FALSE(invalidationSets[0]->invalidatesSelf()); |
+ } |
+ |
void expectClassInvalidation(const AtomicString& className, InvalidationSetVector& invalidationSets) |
{ |
EXPECT_EQ(1u, invalidationSets.size()); |
@@ -201,10 +207,11 @@ TEST_F(RuleFeatureSetTest, interleavedDescendantSibling2) |
TEST_F(RuleFeatureSetTest, interleavedDescendantSibling3) |
{ |
- updateInvalidationSets(".n .o + .p"); |
+ updateInvalidationSets(".m + .n .o + .p"); |
InvalidationLists invalidationLists; |
collectInvalidationSetsForClass(invalidationLists, "n"); |
+ expectNoSelfInvalidation(invalidationLists.descendants); |
expectClassInvalidation("p", invalidationLists.descendants); |
expectNoInvalidation(invalidationLists.siblings); |
} |