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

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

Issue 144143005: Preserve shape-box order in non-computed values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updating patch to trunk Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/AnimatableShapeValue.cpp ('k') | Source/core/css/BasicShapeFunctions.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 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 EXPECT_EQ( 126 EXPECT_EQ(
127 ::std::string("AnimatableSVGPaint(#ff0000)"), 127 ::std::string("AnimatableSVGPaint(#ff0000)"),
128 PrintToString(AnimatableSVGPaint::create(SVGPaint::SVG_PAINTTYPE_RGBCOLO R, Color(0xFFFF0000), ""))); 128 PrintToString(AnimatableSVGPaint::create(SVGPaint::SVG_PAINTTYPE_RGBCOLO R, Color(0xFFFF0000), "")));
129 129
130 EXPECT_EQ( 130 EXPECT_EQ(
131 ::std::string("AnimatableSVGPaint(url(abc))"), 131 ::std::string("AnimatableSVGPaint(url(abc))"),
132 PrintToString(AnimatableSVGPaint::create(SVGPaint::SVG_PAINTTYPE_URI, Co lor(0xFFFF0000), "abc"))); 132 PrintToString(AnimatableSVGPaint::create(SVGPaint::SVG_PAINTTYPE_URI, Co lor(0xFFFF0000), "abc")));
133 133
134 EXPECT_THAT( 134 EXPECT_THAT(
135 PrintToString(AnimatableShapeValue::create(ShapeValue::createShapeValue( BasicShapeCircle::create().get()).get())), 135 PrintToString(AnimatableShapeValue::create(ShapeValue::createShapeValue( BasicShapeCircle::create().get(), ContentBox).get())),
136 testing::StartsWith("AnimatableShapeValue@")); 136 testing::StartsWith("AnimatableShapeValue@"));
137 137
138 RefPtr<SVGLengthList> l2 = SVGLengthList::create(); 138 RefPtr<SVGLengthList> l2 = SVGLengthList::create();
139 l2->append(length1cm); 139 l2->append(length1cm);
140 l2->append(length2cm); 140 l2->append(length2cm);
141 EXPECT_EQ( 141 EXPECT_EQ(
142 ::std::string("AnimatableStrokeDasharrayList(1cm, 2cm)"), 142 ::std::string("AnimatableStrokeDasharrayList(1cm, 2cm)"),
143 PrintToString(AnimatableStrokeDasharrayList::create(l2))); 143 PrintToString(AnimatableStrokeDasharrayList::create(l2)));
144 144
145 TransformOperations operations1; 145 TransformOperations operations1;
(...skipping 11 matching lines...) Expand all
157 EXPECT_EQ( 157 EXPECT_EQ(
158 ::std::string("AnimatableUnknown(none)"), 158 ::std::string("AnimatableUnknown(none)"),
159 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get()))); 159 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get())));
160 160
161 EXPECT_EQ( 161 EXPECT_EQ(
162 ::std::string("AnimatableVisibility(VISIBLE)"), 162 ::std::string("AnimatableVisibility(VISIBLE)"),
163 PrintToString(AnimatableVisibility::create(VISIBLE))); 163 PrintToString(AnimatableVisibility::create(VISIBLE)));
164 } 164 }
165 165
166 } // namespace 166 } // namespace
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableShapeValue.cpp ('k') | Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698