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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/FilteredComputedStylePropertyMapTest.cpp

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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/cssom/FilteredComputedStylePropertyMap.h" 5 #include "core/css/cssom/FilteredComputedStylePropertyMap.h"
6 6
7 #include "core/css/CSSComputedStyleDeclaration.h" 7 #include "core/css/CSSComputedStyleDeclaration.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/testing/DummyPageHolder.h" 9 #include "core/testing/DummyPageHolder.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include <memory> 12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 namespace cssom {
15 16
16 class FilteredComputedStylePropertyMapTest : public ::testing::Test { 17 class FilteredComputedStylePropertyMapTest : public ::testing::Test {
17 public: 18 public:
18 FilteredComputedStylePropertyMapTest() 19 FilteredComputedStylePropertyMapTest()
19 : m_page(DummyPageHolder::create()) 20 : m_page(DummyPageHolder::create())
20 { 21 {
21 m_declaration = CSSComputedStyleDeclaration::create(m_page->document().d ocumentElement()); 22 m_declaration = CSSComputedStyleDeclaration::create(m_page->document().d ocumentElement());
22 } 23 }
23 24
24 CSSComputedStyleDeclaration* declaration() const { return m_declaration.get( ); } 25 CSSComputedStyleDeclaration* declaration() const { return m_declaration.get( ); }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 104
104 map->has("--quix", exceptionState); 105 map->has("--quix", exceptionState);
105 EXPECT_TRUE(exceptionState.hadException()); 106 EXPECT_TRUE(exceptionState.hadException());
106 exceptionState.clearException(); 107 exceptionState.clearException();
107 108
108 map->getAll("--quix", exceptionState); 109 map->getAll("--quix", exceptionState);
109 EXPECT_TRUE(exceptionState.hadException()); 110 EXPECT_TRUE(exceptionState.hadException());
110 exceptionState.clearException(); 111 exceptionState.clearException();
111 } 112 }
112 113
114 } // namespace cssom
113 } // namespace blink 115 } // namespace blink
116
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698