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 "core/animation/PropertyHandle.h" | 5 #include "core/animation/PropertyHandle.h" |
6 | 6 |
7 #include "core/SVGNames.h" | 7 #include "core/SVGNames.h" |
8 #include "core/XLinkNames.h" | 8 #include "core/XLinkNames.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 { | 47 { |
48 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty()); | 48 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty()); |
49 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci
ty); | 49 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci
ty); |
50 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty()); | 50 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty()); |
51 | 51 |
52 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute()); | 52 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute()); |
53 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute()); | 53 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute()); |
54 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), amplitudeAttr); | 54 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), amplitudeAttr); |
55 } | 55 } |
56 | 56 |
57 } | 57 } // namespace blink |
OLD | NEW |