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 "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
6 #include "sky/engine/core/animation/DeferredLegacyStyleInterpolation.h" | 6 #include "sky/engine/core/animation/DeferredLegacyStyleInterpolation.h" |
7 | 7 |
8 #include "sky/engine/core/css/CSSInheritedValue.h" | 8 #include "sky/engine/core/css/CSSInheritedValue.h" |
9 #include "sky/engine/core/css/CSSPrimitiveValue.h" | 9 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
10 #include "sky/engine/core/css/CSSValueList.h" | 10 #include "sky/engine/core/css/CSSValueList.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Transform) | 64 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Transform) |
65 { | 65 { |
66 EXPECT_TRUE(test(CSSPropertyTransform, "translateX(1em)")); | 66 EXPECT_TRUE(test(CSSPropertyTransform, "translateX(1em)")); |
67 EXPECT_FALSE(test(CSSPropertyTransform, "translateY(20px)")); | 67 EXPECT_FALSE(test(CSSPropertyTransform, "translateY(20px)")); |
68 EXPECT_FALSE(test(CSSPropertyTransform, "skewX(10rad) perspective(400px)")); | 68 EXPECT_FALSE(test(CSSPropertyTransform, "skewX(10rad) perspective(400px)")); |
69 EXPECT_TRUE(test(CSSPropertyTransform, "skewX(20rad) perspective(50em)")); | 69 EXPECT_TRUE(test(CSSPropertyTransform, "skewX(20rad) perspective(50em)")); |
70 } | 70 } |
71 | 71 |
72 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Filter) | 72 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Filter) |
73 { | 73 { |
74 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "hue-rotate(180deg) blur(6px)")); | 74 EXPECT_FALSE(test(CSSPropertyFilter, "hue-rotate(180deg) blur(6px)")); |
75 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(0) blur(0px)")); | 75 EXPECT_FALSE(test(CSSPropertyFilter, "grayscale(0) blur(0px)")); |
76 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "none")); | 76 EXPECT_FALSE(test(CSSPropertyFilter, "none")); |
77 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "brightness(0) contrast(0)")); | 77 EXPECT_FALSE(test(CSSPropertyFilter, "brightness(0) contrast(0)")); |
78 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10px green)")); | 78 EXPECT_FALSE(test(CSSPropertyFilter, "drop-shadow(20px 10px green)")); |
79 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10vw green)")); | 79 EXPECT_TRUE(test(CSSPropertyFilter, "drop-shadow(20px 10vw green)")); |
80 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco
lor)")); | 80 EXPECT_TRUE(test(CSSPropertyFilter, "drop-shadow(0px 0px 0px currentcolor)")
); |
81 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)")); | 81 EXPECT_FALSE(test(CSSPropertyFilter, "opacity(1)")); |
82 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)")); | 82 EXPECT_FALSE(test(CSSPropertyFilter, "saturate(0)")); |
83 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)")); | 83 EXPECT_FALSE(test(CSSPropertyFilter, "grayscale(1)")); |
84 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)")); | 84 EXPECT_FALSE(test(CSSPropertyFilter, "invert(1)")); |
85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)")); | 85 EXPECT_FALSE(test(CSSPropertyFilter, "sepia(1)")); |
86 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)")); | 86 EXPECT_TRUE(test(CSSPropertyFilter, "url(#svgfilter)")); |
87 } | 87 } |
88 | 88 |
89 } | 89 } |
OLD | NEW |