Index: Source/core/css/invalidation/DescendantInvalidationSetTest.cpp |
diff --git a/Source/core/css/invalidation/DescendantInvalidationSetTest.cpp b/Source/core/css/invalidation/DescendantInvalidationSetTest.cpp |
index e201215175de8c0d520426c11f441128ea74a3c4..c49328887b1276e18c7d85b99da747dd870f8a9e 100644 |
--- a/Source/core/css/invalidation/DescendantInvalidationSetTest.cpp |
+++ b/Source/core/css/invalidation/DescendantInvalidationSetTest.cpp |
@@ -61,6 +61,16 @@ TEST(DescendantInvalidationSetTest, SubtreeInvalid_Combine_2) |
ASSERT_TRUE(set1->isEmpty()); |
} |
+TEST(DescendantInvalidationSetTest, SubtreeInvalid_AddCustomPseudoBefore) |
+{ |
+ RefPtrWillBeRawPtr<DescendantInvalidationSet> set = DescendantInvalidationSet::create(); |
+ set->setCustomPseudoInvalid(); |
+ ASSERT_FALSE(set->isEmpty()); |
+ |
+ set->setWholeSubtreeInvalid(); |
+ ASSERT_TRUE(set->isEmpty()); |
+} |
+ |
#ifndef NDEBUG |
TEST(DescendantInvalidationSetTest, ShowDebug) |
{ |