OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/css/analyzer/DescendantInvalidationSet.h" | 6 #include "core/css/invalidation/DescendantInvalidationSet.h" |
7 | 7 |
8 #include <gtest/gtest.h> | 8 #include <gtest/gtest.h> |
9 | 9 |
10 using namespace WebCore; | 10 using namespace WebCore; |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 // Once we setWholeSubtreeInvalid, we should not keep the HashSets. | 14 // Once we setWholeSubtreeInvalid, we should not keep the HashSets. |
15 TEST(DescendantInvalidationSetTest, SubtreeInvalid_AddBefore) | 15 TEST(DescendantInvalidationSetTest, SubtreeInvalid_AddBefore) |
16 { | 16 { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 set1->combine(*set2); | 67 set1->combine(*set2); |
68 | 68 |
69 Vector<AtomicString> classes; | 69 Vector<AtomicString> classes; |
70 set1->getClasses(classes); | 70 set1->getClasses(classes); |
71 | 71 |
72 ASSERT_TRUE(set1->wholeSubtreeInvalid()); | 72 ASSERT_TRUE(set1->wholeSubtreeInvalid()); |
73 ASSERT_TRUE(classes.isEmpty()); | 73 ASSERT_TRUE(classes.isEmpty()); |
74 } | 74 } |
75 | 75 |
76 } // namespace | 76 } // namespace |
OLD | NEW |