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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp

Issue 2269713002: Remove redundant String casts in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 FloatRoundedRect::Radii radiiWithTooLargeCorner(FloatSize(55, 55), FloatSize (), FloatSize(), FloatSize()); 172 FloatRoundedRect::Radii radiiWithTooLargeCorner(FloatSize(55, 55), FloatSize (), FloatSize(), FloatSize());
173 FloatRoundedRect r2(FloatRect(0, 0, 100, 50), radiiWithTooLargeCorner); 173 FloatRoundedRect r2(FloatRect(0, 0, 100, 50), radiiWithTooLargeCorner);
174 EXPECT_TRUE(r2.radiusCenterRect().isEmpty()); 174 EXPECT_TRUE(r2.radiusCenterRect().isEmpty());
175 } 175 }
176 176
177 TEST(FloatRoundedRectTest, ToString) 177 TEST(FloatRoundedRectTest, ToString)
178 { 178 {
179 FloatSize cornerRect(1, 2); 179 FloatSize cornerRect(1, 2);
180 FloatRoundedRect roundedRect(FloatRect(3, 5, 7, 11), FloatRoundedRect::Radii (cornerRect, cornerRect, cornerRect, cornerRect)); 180 FloatRoundedRect roundedRect(FloatRect(3, 5, 7, 11), FloatRoundedRect::Radii (cornerRect, cornerRect, cornerRect, cornerRect));
181 EXPECT_EQ(String("3,5 7x11 radii:(tl:1x2; tr:1x2; bl:1x2; br:1x2)"), rounded Rect.toString()); 181 EXPECT_EQ("3,5 7x11 radii:(tl:1x2; tr:1x2; bl:1x2; br:1x2)", roundedRect.toS tring());
182 } 182 }
183 183
184 } // namespace blink 184 } // namespace blink
185 185
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698