| 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() : page_(DummyPageHolder::Create()) { | 18 FilteredComputedStylePropertyMapTest() : page_(DummyPageHolder::Create()) { |
| 19 declaration_ = CSSComputedStyleDeclaration::Create( | 19 declaration_ = CSSComputedStyleDeclaration::Create( |
| 20 page_->GetDocument().documentElement()); | 20 page_->GetDocument().documentElement()); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 map->has("--quix", exception_state); | 115 map->has("--quix", exception_state); |
| 116 EXPECT_TRUE(exception_state.HadException()); | 116 EXPECT_TRUE(exception_state.HadException()); |
| 117 exception_state.ClearException(); | 117 exception_state.ClearException(); |
| 118 | 118 |
| 119 map->getAll("--quix", exception_state); | 119 map->getAll("--quix", exception_state); |
| 120 EXPECT_TRUE(exception_state.HadException()); | 120 EXPECT_TRUE(exception_state.HadException()); |
| 121 exception_state.ClearException(); | 121 exception_state.ClearException(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| OLD | NEW |