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

Side by Side Diff: third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolationTest.cpp

Issue 2065593002: Unprefix the CSS 'filter' property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove disabler. Try different DCHECK expressions. Created 4 years, 6 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
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 "core/animation/DeferredLegacyStyleInterpolation.h" 5 #include "core/animation/DeferredLegacyStyleInterpolation.h"
6 6
7 #include "core/css/CSSInheritedValue.h" 7 #include "core/css/CSSInheritedValue.h"
8 #include "core/css/CSSPrimitiveValue.h" 8 #include "core/css/CSSPrimitiveValue.h"
9 #include "core/css/CSSValueList.h" 9 #include "core/css/CSSValueList.h"
10 #include "core/css/StylePropertySet.h" 10 #include "core/css/StylePropertySet.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Transform) 66 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Transform)
67 { 67 {
68 EXPECT_TRUE(test(CSSPropertyTransform, "translateX(1em)")); 68 EXPECT_TRUE(test(CSSPropertyTransform, "translateX(1em)"));
69 EXPECT_FALSE(test(CSSPropertyTransform, "translateY(20px)")); 69 EXPECT_FALSE(test(CSSPropertyTransform, "translateY(20px)"));
70 EXPECT_FALSE(test(CSSPropertyTransform, "skewX(10rad) perspective(400px)")); 70 EXPECT_FALSE(test(CSSPropertyTransform, "skewX(10rad) perspective(400px)"));
71 EXPECT_TRUE(test(CSSPropertyTransform, "skewX(20rad) perspective(50em)")); 71 EXPECT_TRUE(test(CSSPropertyTransform, "skewX(20rad) perspective(50em)"));
72 } 72 }
73 73
74 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Filter) 74 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, Filter)
75 { 75 {
76 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "hue-rotate(180deg) blur(6px)")); 76 EXPECT_FALSE(test(CSSPropertyFilter, "hue-rotate(180deg) blur(6px)"));
77 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(0) blur(0px)")); 77 EXPECT_FALSE(test(CSSPropertyFilter, "grayscale(0) blur(0px)"));
78 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "none")); 78 EXPECT_FALSE(test(CSSPropertyFilter, "none"));
79 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "brightness(0) contrast(0)")); 79 EXPECT_FALSE(test(CSSPropertyFilter, "brightness(0) contrast(0)"));
80 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10px green)")); 80 EXPECT_FALSE(test(CSSPropertyFilter, "drop-shadow(20px 10px green)"));
81 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10vw green)")); 81 EXPECT_TRUE(test(CSSPropertyFilter, "drop-shadow(20px 10vw green)"));
82 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco lor)")); 82 EXPECT_TRUE(test(CSSPropertyFilter, "drop-shadow(0px 0px 0px currentcolor)") );
83 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)")); 83 EXPECT_FALSE(test(CSSPropertyFilter, "opacity(1)"));
84 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)")); 84 EXPECT_FALSE(test(CSSPropertyFilter, "saturate(0)"));
85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)")); 85 EXPECT_FALSE(test(CSSPropertyFilter, "grayscale(1)"));
86 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)")); 86 EXPECT_FALSE(test(CSSPropertyFilter, "invert(1)"));
87 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)")); 87 EXPECT_FALSE(test(CSSPropertyFilter, "sepia(1)"));
88 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)")); 88 EXPECT_TRUE(test(CSSPropertyFilter, "url(#svgfilter)"));
89 } 89 }
90 90
91 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, BackdropFilter) 91 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, BackdropFilter)
92 { 92 {
93 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "hue-rotate(180deg) blur(6px)") ); 93 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "hue-rotate(180deg) blur(6px)") );
94 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(0) blur(0px)")); 94 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(0) blur(0px)"));
95 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "none")); 95 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "none"));
96 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "brightness(0) contrast(0)")); 96 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "brightness(0) contrast(0)"));
97 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10px green)") ); 97 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10px green)") );
98 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10vw green)")) ; 98 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10vw green)")) ;
99 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(0px 0px 0px current color)")); 99 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(0px 0px 0px current color)"));
100 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "opacity(1)")); 100 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "opacity(1)"));
101 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "saturate(0)")); 101 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "saturate(0)"));
102 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(1)")); 102 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(1)"));
103 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "invert(1)")); 103 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "invert(1)"));
104 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "sepia(1)")); 104 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "sepia(1)"));
105 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "url(#svgfilter)")); 105 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "url(#svgfilter)"));
106 } 106 }
107 } // namespace blink 107 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698