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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatBoxTest.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: Fewer redundant spaces, more toString tests 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/FloatBoxTest.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/FloatBoxTest.cpp b/third_party/WebKit/Source/platform/geometry/FloatBoxTest.cpp
index 655c43b0e36b0ce492b58a94b2f85ae29e2c6d26..caad8a0835a3080a9d9d4240de83c4ffb5e9e3d0 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatBoxTest.cpp
+++ b/third_party/WebKit/Source/platform/geometry/FloatBoxTest.cpp
@@ -26,6 +26,7 @@
#include "platform/geometry/FloatBoxTestHelpers.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -114,4 +115,10 @@ TEST(FloatBoxTest, EmptyBoxTest)
EXPECT_FALSE(box.isEmpty());
}
+TEST(FloatBoxTest, ToString)
+{
+ FloatBox box(2, 3, 5, 7, 11, 13);
+ EXPECT_EQ(String("2,3,5 7x11x13"), box.toString());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/FloatBox.cpp ('k') | third_party/WebKit/Source/platform/geometry/FloatPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698