| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |