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

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

Issue 966923003: Make SVGLengthMode an enum class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « no previous file | Source/core/layout/svg/LayoutSVGRect.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 ); 64 );
65 65
66 EXPECT_EQ( 66 EXPECT_EQ(
67 ::std::string("AnimatableColor(rgba(0, 0, 0, 0), #ff0000)"), 67 ::std::string("AnimatableColor(rgba(0, 0, 0, 0), #ff0000)"),
68 PrintToString(AnimatableColor::create(Color(0x000000FF), Color(0xFFFF000 0)))); 68 PrintToString(AnimatableColor::create(Color(0x000000FF), Color(0xFFFF000 0))));
69 69
70 EXPECT_THAT( 70 EXPECT_THAT(
71 PrintToString(const_cast<AnimatableValue*>(AnimatableValue::neutralValue ())), 71 PrintToString(const_cast<AnimatableValue*>(AnimatableValue::neutralValue ())),
72 testing::StartsWith("AnimatableNeutral@")); 72 testing::StartsWith("AnimatableNeutral@"));
73 73
74 RefPtrWillBeRawPtr<SVGLength> length1cm = SVGLength::create(LengthModeOther) ; 74 RefPtrWillBeRawPtr<SVGLength> length1cm = SVGLength::create();
75 RefPtrWillBeRawPtr<SVGLength> length2cm = SVGLength::create(LengthModeOther) ; 75 RefPtrWillBeRawPtr<SVGLength> length2cm = SVGLength::create();
76 length1cm->setValueAsString("1cm", ASSERT_NO_EXCEPTION); 76 length1cm->setValueAsString("1cm", ASSERT_NO_EXCEPTION);
77 length2cm->setValueAsString("2cm", ASSERT_NO_EXCEPTION); 77 length2cm->setValueAsString("2cm", ASSERT_NO_EXCEPTION);
78 78
79 EXPECT_EQ( 79 EXPECT_EQ(
80 ::std::string("AnimatableSVGLength(1cm)"), 80 ::std::string("AnimatableSVGLength(1cm)"),
81 PrintToString(AnimatableSVGLength::create(length1cm))); 81 PrintToString(AnimatableSVGLength::create(length1cm)));
82 82
83 EXPECT_THAT( 83 EXPECT_THAT(
84 PrintToString(AnimatableShapeValue::create(ShapeValue::createShapeValue( BasicShapeCircle::create().get(), ContentBox).get())), 84 PrintToString(AnimatableShapeValue::create(ShapeValue::createShapeValue( BasicShapeCircle::create().get(), ContentBox).get())),
85 testing::StartsWith("AnimatableShapeValue@")); 85 testing::StartsWith("AnimatableShapeValue@"));
(...skipping 20 matching lines...) Expand all
106 EXPECT_EQ( 106 EXPECT_EQ(
107 ::std::string("AnimatableUnknown(none)"), 107 ::std::string("AnimatableUnknown(none)"),
108 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get()))); 108 PrintToString(AnimatableUnknown::create(CSSPrimitiveValue::createIdentif ier(CSSValueNone).get())));
109 109
110 EXPECT_EQ( 110 EXPECT_EQ(
111 ::std::string("AnimatableVisibility(VISIBLE)"), 111 ::std::string("AnimatableVisibility(VISIBLE)"),
112 PrintToString(AnimatableVisibility::create(VISIBLE))); 112 PrintToString(AnimatableVisibility::create(VISIBLE)));
113 } 113 }
114 114
115 } // namespace 115 } // namespace
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698