| 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/cssom/FilteredComputedStylePropertyMap.h" | 5 #include "core/css/cssom/FilteredComputedStylePropertyMap.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/css/CSSComputedStyleDeclaration.h" | 8 #include "core/css/CSSComputedStyleDeclaration.h" |
| 8 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
| 9 #include "core/testing/DummyPageHolder.h" | 10 #include "core/testing/DummyPageHolder.h" |
| 10 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class FilteredComputedStylePropertyMapTest : public ::testing::Test { | 16 class FilteredComputedStylePropertyMapTest : public ::testing::Test { |
| 17 public: | 17 public: |
| 18 FilteredComputedStylePropertyMapTest() : m_page(DummyPageHolder::create()) { | 18 FilteredComputedStylePropertyMapTest() : m_page(DummyPageHolder::create()) { |
| 19 m_declaration = CSSComputedStyleDeclaration::create( | 19 m_declaration = CSSComputedStyleDeclaration::create( |
| 20 m_page->document().documentElement()); | 20 m_page->document().documentElement()); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 map->has("--quix", exceptionState); | 113 map->has("--quix", exceptionState); |
| 114 EXPECT_TRUE(exceptionState.hadException()); | 114 EXPECT_TRUE(exceptionState.hadException()); |
| 115 exceptionState.clearException(); | 115 exceptionState.clearException(); |
| 116 | 116 |
| 117 map->getAll("--quix", exceptionState); | 117 map->getAll("--quix", exceptionState); |
| 118 EXPECT_TRUE(exceptionState.hadException()); | 118 EXPECT_TRUE(exceptionState.hadException()); |
| 119 exceptionState.clearException(); | 119 exceptionState.clearException(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| OLD | NEW |