| 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 "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "core/animation/DeferredLegacyStyleInterpolation.h" | 6 #include "sky/engine/core/animation/DeferredLegacyStyleInterpolation.h" |
| 7 | 7 |
| 8 #include "core/css/CSSInheritedValue.h" | 8 #include "sky/engine/core/css/CSSInheritedValue.h" |
| 9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 10 #include "core/css/CSSValueList.h" | 10 #include "sky/engine/core/css/CSSValueList.h" |
| 11 #include "core/css/StylePropertySet.h" | 11 #include "sky/engine/core/css/StylePropertySet.h" |
| 12 #include "core/css/parser/BisonCSSParser.h" | 12 #include "sky/engine/core/css/parser/BisonCSSParser.h" |
| 13 | 13 |
| 14 #include <gtest/gtest.h> | 14 #include <gtest/gtest.h> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class AnimationDeferredLegacyStyleInterpolationTest : public ::testing::Test { | 18 class AnimationDeferredLegacyStyleInterpolationTest : public ::testing::Test { |
| 19 protected: | 19 protected: |
| 20 static bool test(CSSPropertyID propertyID, const String& string) | 20 static bool test(CSSPropertyID propertyID, const String& string) |
| 21 { | 21 { |
| 22 CSSParserMode parserMode = HTMLStandardMode; | 22 CSSParserMode parserMode = HTMLStandardMode; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco
lor)")); | 80 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco
lor)")); |
| 81 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)")); | 81 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)")); |
| 82 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)")); | 82 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)")); |
| 83 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)")); | 83 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)")); |
| 84 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)")); | 84 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)")); |
| 85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)")); | 85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)")); |
| 86 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)")); | 86 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)")); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } | 89 } |
| OLD | NEW |