Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: sky/engine/core/animation/DeferredLegacyStyleInterpolationTest.cpp

Issue 850103003: Unprefix -webkit-filter and add a pixel test for it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/HACKING.md ('k') | sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sky/HACKING.md ('k') | sky/engine/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698