| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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" | 5 #include "config.h" |
| 6 #include "core/animation/PropertyHandle.h" | 6 #include "core/animation/PropertyHandle.h" |
| 7 | 7 |
| 8 #include "core/SVGNames.h" | 8 #include "core/SVGNames.h" |
| 9 #include "core/XLinkNames.h" | 9 #include "core/XLinkNames.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 TEST_F(PropertyHandleTest, Accessors) | 48 TEST_F(PropertyHandleTest, Accessors) |
| 49 { | 49 { |
| 50 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty()); | 50 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty()); |
| 51 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci
ty); | 51 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci
ty); |
| 52 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty()); | 52 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty()); |
| 53 | 53 |
| 54 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute()); | 54 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute()); |
| 55 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute()); | 55 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute()); |
| 56 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), &litudeAttr); | 56 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), amplitudeAttr); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } | 59 } |
| OLD | NEW |