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

Side by Side Diff: Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp

Issue 1249553002: CSSValue Immediates: Add move operators to CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_3_tagged_ptrs_with_copy_ops_mv_operators_ref_primvalue
Patch Set: Rebase Created 5 years, 4 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 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 "config.h" 5 #include "config.h"
6 #include "core/animation/SVGStrokeDasharrayStyleInterpolation.h" 6 #include "core/animation/SVGStrokeDasharrayStyleInterpolation.h"
7 7
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 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 EXPECT_EQ(value->length(), 5u); 63 EXPECT_EQ(value->length(), 5u);
64 testPrimitiveValue(value->item(0), 0, CSSPrimitiveValue::CSS_PX); 64 testPrimitiveValue(value->item(0), 0, CSSPrimitiveValue::CSS_PX);
65 testPrimitiveValue(value->item(1), 10, CSSPrimitiveValue::CSS_EMS); 65 testPrimitiveValue(value->item(1), 10, CSSPrimitiveValue::CSS_EMS);
66 testPrimitiveValue(value->item(2), 0, CSSPrimitiveValue::CSS_EMS); 66 testPrimitiveValue(value->item(2), 0, CSSPrimitiveValue::CSS_EMS);
67 testPrimitiveValue(value->item(3), 0, CSSPrimitiveValue::CSS_PERCENTAGE); 67 testPrimitiveValue(value->item(3), 0, CSSPrimitiveValue::CSS_PERCENTAGE);
68 testPrimitiveValue(value->item(4), 30, CSSPrimitiveValue::CSS_EMS); 68 testPrimitiveValue(value->item(4), 30, CSSPrimitiveValue::CSS_EMS);
69 } 69 }
70 70
71 TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, None) 71 TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, None)
72 { 72 {
73 RefPtrWillBeRawPtr<CSSPrimitiveValue> start = CSSPrimitiveValue::createIdent ifier(CSSValueNone); 73 CSSPrimitiveValue start = CSSPrimitiveValue::createIdentifier(CSSValueNone);
74 74
75 RefPtrWillBeRawPtr<CSSValueList> value = roundTrip(start); 75 RefPtrWillBeRawPtr<CSSValueList> value = roundTrip(start);
76 EXPECT_EQ(value->length(), 1u); 76 EXPECT_EQ(value->length(), 1u);
77 testPrimitiveValue(value->item(0), 0, CSSPrimitiveValue::CSS_PX); 77 testPrimitiveValue(value->item(0), 0, CSSPrimitiveValue::CSS_PX);
78 } 78 }
79 79
80 } 80 }
OLDNEW
« no previous file with comments | « Source/core/animation/ListStyleInterpolationTest.cpp ('k') | Source/core/animation/ShadowStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698