OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/css/resolver/SharedStyleFinder.h" | 5 #include "core/css/resolver/SharedStyleFinder.h" |
6 | 6 |
7 #include "core/css/RuleFeature.h" | 7 #include "core/css/RuleFeature.h" |
8 #include "core/css/RuleSet.h" | 8 #include "core/css/RuleSet.h" |
9 #include "core/css/parser/CSSParser.h" | 9 #include "core/css/parser/CSSParser.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
11 #include "core/frame/FrameView.h" | 11 #include "core/frame/FrameView.h" |
| 12 #include "core/html/HTMLElement.h" |
12 #include "core/testing/DummyPageHolder.h" | 13 #include "core/testing/DummyPageHolder.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include <memory> | 15 #include <memory> |
15 | 16 |
16 namespace blink { | 17 namespace blink { |
17 | 18 |
18 class SharedStyleFinderTest : public ::testing::Test { | 19 class SharedStyleFinderTest : public ::testing::Test { |
19 protected: | 20 protected: |
20 SharedStyleFinderTest() = default; | 21 SharedStyleFinderTest() = default; |
21 ~SharedStyleFinderTest() override = default; | 22 ~SharedStyleFinderTest() override = default; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 ASSERT_TRUE(b); | 183 ASSERT_TRUE(b); |
183 | 184 |
184 EXPECT_FALSE(a->isDragged()); | 185 EXPECT_FALSE(a->isDragged()); |
185 EXPECT_FALSE(b->isDragged()); | 186 EXPECT_FALSE(b->isDragged()); |
186 | 187 |
187 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a)); | 188 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a)); |
188 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b)); | 189 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b)); |
189 } | 190 } |
190 | 191 |
191 } // namespace blink | 192 } // namespace blink |
OLD | NEW |