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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 3 years, 12 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 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/css/parser/CSSParserContext.h"
10 #include "core/dom/Document.h" 11 #include "core/dom/Document.h"
11 #include "core/frame/FrameView.h" 12 #include "core/frame/FrameView.h"
12 #include "core/html/HTMLElement.h" 13 #include "core/html/HTMLElement.h"
13 #include "core/testing/DummyPageHolder.h" 14 #include "core/testing/DummyPageHolder.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include <memory> 16 #include <memory>
16 17
17 namespace blink { 18 namespace blink {
18 19
19 class SharedStyleFinderTest : public ::testing::Test { 20 class SharedStyleFinderTest : public ::testing::Test {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ASSERT_TRUE(b); 176 ASSERT_TRUE(b);
176 177
177 EXPECT_FALSE(a->isDragged()); 178 EXPECT_FALSE(a->isDragged());
178 EXPECT_FALSE(b->isDragged()); 179 EXPECT_FALSE(b->isDragged());
179 180
180 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a)); 181 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*a));
181 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b)); 182 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*b));
182 } 183 }
183 184
184 } // namespace blink 185 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698