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

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

Issue 2195903002: Add Double{Size, Point, Rect} pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geometryPrettyPrinters2
Patch Set: Remove unnecessary String casts 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/DoubleRectTest.cpp
diff --git a/third_party/WebKit/Source/platform/geometry/DoubleRectTest.cpp b/third_party/WebKit/Source/platform/geometry/DoubleRectTest.cpp
index dae9e85cd40f744a54c55e090b50fab0c1fbdff6..1e21ee2e56d0fc6fb53c09301bd4ccb2d5cb273f 100644
--- a/third_party/WebKit/Source/platform/geometry/DoubleRectTest.cpp
+++ b/third_party/WebKit/Source/platform/geometry/DoubleRectTest.cpp
@@ -9,18 +9,16 @@
namespace blink {
-#ifndef NDEBUG
TEST(DoubleRectTest, ToString)
{
DoubleRect emptyRect = DoubleRect();
- EXPECT_EQ(String("0.000000,0.000000 0.000000x0.000000"), emptyRect.toString());
+ EXPECT_EQ("0,0 0x0", emptyRect.toString());
DoubleRect rect(1, 2, 3, 4);
- EXPECT_EQ(String("1.000000,2.000000 3.000000x4.000000"), rect.toString());
+ EXPECT_EQ("1,2 3x4", rect.toString());
DoubleRect granularRect(1.6, 2.7, 3.8, 4.9);
- EXPECT_EQ(String("1.600000,2.700000 3.800000x4.900000"), granularRect.toString());
+ EXPECT_EQ("1.6,2.7 3.8x4.9", granularRect.toString());
}
-#endif
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/DoubleRect.cpp ('k') | third_party/WebKit/Source/platform/geometry/DoubleSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698