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

Side by Side Diff: third_party/WebKit/Source/core/animation/PropertyHandleTest.cpp

Issue 1410993004: Make PropertyHandle::svgAttribute() return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_unCSSInterpolationType
Patch Set: Created 5 years, 2 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/PropertyHandle.h" 6 #include "core/animation/PropertyHandle.h"
7 7
8 #include "core/SVGNames.h" 8 #include "core/SVGNames.h"
9 #include "core/XLinkNames.h" 9 #include "core/XLinkNames.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 TEST_F(PropertyHandleTest, Accessors) 48 TEST_F(PropertyHandleTest, Accessors)
49 { 49 {
50 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty()); 50 EXPECT_TRUE(PropertyHandle(CSSPropertyOpacity).isCSSProperty());
51 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci ty); 51 EXPECT_EQ(PropertyHandle(CSSPropertyOpacity).cssProperty(), CSSPropertyOpaci ty);
52 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty()); 52 EXPECT_FALSE(PropertyHandle(amplitudeAttr).isCSSProperty());
53 53
54 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute()); 54 EXPECT_FALSE(PropertyHandle(CSSPropertyOpacity).isSVGAttribute());
55 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute()); 55 EXPECT_TRUE(PropertyHandle(amplitudeAttr).isSVGAttribute());
56 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), &amplitudeAttr); 56 EXPECT_EQ(PropertyHandle(amplitudeAttr).svgAttribute(), amplitudeAttr);
57 } 57 }
58 58
59 } 59 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/PropertyHandle.h ('k') | third_party/WebKit/Source/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698