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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fastest logging this side of the mississippi 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp b/third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp
index 272417ab0615ad78d6bd0709333fa90cf866391a..bb95217e6c64df95c574f3bb54e80da4a61c01d6 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatRoundedRectTest.cpp
@@ -30,6 +30,7 @@
#include "platform/geometry/FloatRoundedRect.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/text/WTFString.h"
wkorman 2016/08/19 22:18:44 Same re: Forward.h
namespace blink {
@@ -173,5 +174,12 @@ TEST(FloatRoundedRectTest, radiusCenterRect)
EXPECT_TRUE(r2.radiusCenterRect().isEmpty());
}
+TEST(FloatRoundedRectTest, ToString)
+{
+ FloatSize cornerRect(1, 2);
+ FloatRoundedRect roundedRect(FloatRect(3, 5, 7, 11), FloatRoundedRect::Radii(cornerRect, cornerRect, cornerRect, cornerRect));
+ EXPECT_EQ(String("3,5 7x11 radii:(tl:1x2; tr:1x2; bl:1x2; br:1x2)"), roundedRect.toString());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698