| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | |
| 6 #include "core/style/SVGComputedStyle.h" | 5 #include "core/style/SVGComputedStyle.h" |
| 7 | 6 |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 // Ensures RefPtr values are compared by their values, not by pointers. | 11 // Ensures RefPtr values are compared by their values, not by pointers. |
| 13 #define TEST_STYLE_REFPTR_VALUE_NO_DIFF(type, fieldName) \ | 12 #define TEST_STYLE_REFPTR_VALUE_NO_DIFF(type, fieldName) \ |
| 14 { \ | 13 { \ |
| 15 RefPtr<SVGComputedStyle> svg1 = SVGComputedStyle::create(); \ | 14 RefPtr<SVGComputedStyle> svg1 = SVGComputedStyle::create(); \ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 58 |
| 60 TEST(SVGComputedStyleTest, MiscStyleShouldCompareValue) | 59 TEST(SVGComputedStyleTest, MiscStyleShouldCompareValue) |
| 61 { | 60 { |
| 62 TEST_STYLE_VALUE_NO_DIFF(Color, FloodColor); | 61 TEST_STYLE_VALUE_NO_DIFF(Color, FloodColor); |
| 63 TEST_STYLE_VALUE_NO_DIFF(float, FloodOpacity); | 62 TEST_STYLE_VALUE_NO_DIFF(float, FloodOpacity); |
| 64 TEST_STYLE_VALUE_NO_DIFF(Color, LightingColor); | 63 TEST_STYLE_VALUE_NO_DIFF(Color, LightingColor); |
| 65 TEST_STYLE_VALUE_NO_DIFF(Length, BaselineShiftValue); | 64 TEST_STYLE_VALUE_NO_DIFF(Length, BaselineShiftValue); |
| 66 } | 65 } |
| 67 | 66 |
| 68 } // namespace blink | 67 } // namespace blink |
| OLD | NEW |