Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: Source/core/css/invalidation/DescendantInvalidationSetTest.cpp

Issue 199633020: Move all style invalidation code into the css/invalidation directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698