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 |