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

Side by Side Diff: Source/core/layout/style/SVGLayoutStyleTest.cpp

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. 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
OLDNEW
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 "config.h"
6 #include "core/layout/style/SVGLayoutStyle.h" 6 #include "core/layout/style/SVGLayoutStyle.h"
7 7
8 #include "core/layout/ClipPathOperation.h" 8 #include "core/layout/ClipPathOperation.h"
9 #include "core/layout/style/ShapeValue.h" 9 #include "core/layout/style/ShapeValue.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 svg2->setStrokePaint(SVGLayoutStyle::initialStrokePaintType(), SVGLayout Style::initialStrokePaintColor(), SVGLayoutStyle::initialStrokePaintUri(), false , true); 60 svg2->setStrokePaint(SVGLayoutStyle::initialStrokePaintType(), SVGLayout Style::initialStrokePaintColor(), SVGLayoutStyle::initialStrokePaintUri(), false , true);
61 EXPECT_FALSE(svg1->diff(svg2.get()).hasDifference()); 61 EXPECT_FALSE(svg1->diff(svg2.get()).hasDifference());
62 } 62 }
63 } 63 }
64 64
65 TEST(SVGLayoutStyleTest, MiscStyleShouldCompareValue) 65 TEST(SVGLayoutStyleTest, MiscStyleShouldCompareValue)
66 { 66 {
67 TEST_STYLE_VALUE_NO_DIFF(Color, FloodColor); 67 TEST_STYLE_VALUE_NO_DIFF(Color, FloodColor);
68 TEST_STYLE_VALUE_NO_DIFF(float, FloodOpacity); 68 TEST_STYLE_VALUE_NO_DIFF(float, FloodOpacity);
69 TEST_STYLE_VALUE_NO_DIFF(Color, LightingColor); 69 TEST_STYLE_VALUE_NO_DIFF(Color, LightingColor);
70 TEST_STYLE_REFPTR_VALUE_NO_DIFF(SVGLength, BaselineShiftValue); 70 TEST_STYLE_VALUE_NO_DIFF(Length, BaselineShiftValue);
71 } 71 }
72 72
73 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698