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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextTest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/core/layout/LayoutTextTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp b/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp
index 33ef8115d003d17d3975325a50fe9a3d8f661c4c..304d9ce4054a1de0ce4c99ac581694094bd86e10 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp
@@ -30,14 +30,16 @@ const char* kTacoText = "Los Compadres Taco Truck";
TEST_F(LayoutTextTest, WidthZeroFromZeroLength) {
setBasicBody(kTacoText);
- ASSERT_EQ(0, getBasicText()->width(0u, 0u, LayoutUnit(), TextDirection::kLtr,
- false));
+ ASSERT_EQ(
+ 0,
+ getBasicText()->width(0u, 0u, LayoutUnit(), TextDirection::kLtr, false));
}
TEST_F(LayoutTextTest, WidthMaxFromZeroLength) {
setBasicBody(kTacoText);
- ASSERT_EQ(0, getBasicText()->width(std::numeric_limits<unsigned>::max(), 0u,
- LayoutUnit(), TextDirection::kLtr, false));
+ ASSERT_EQ(0,
+ getBasicText()->width(std::numeric_limits<unsigned>::max(), 0u,
+ LayoutUnit(), TextDirection::kLtr, false));
}
TEST_F(LayoutTextTest, WidthZeroFromMaxLength) {
@@ -52,9 +54,10 @@ TEST_F(LayoutTextTest, WidthZeroFromMaxLength) {
TEST_F(LayoutTextTest, WidthMaxFromMaxLength) {
setBasicBody(kTacoText);
- ASSERT_EQ(0, getBasicText()->width(std::numeric_limits<unsigned>::max(),
- std::numeric_limits<unsigned>::max(),
- LayoutUnit(), TextDirection::kLtr, false));
+ ASSERT_EQ(0,
+ getBasicText()->width(std::numeric_limits<unsigned>::max(),
+ std::numeric_limits<unsigned>::max(),
+ LayoutUnit(), TextDirection::kLtr, false));
}
TEST_F(LayoutTextTest, WidthWithHugeLengthAvoidsOverflow) {
@@ -80,8 +83,9 @@ TEST_F(LayoutTextTest, WidthWithHugeLengthAvoidsOverflow) {
TEST_F(LayoutTextTest, WidthFromBeyondLength) {
setBasicBody("x");
- ASSERT_EQ(0u, getBasicText()->width(1u, 1u, LayoutUnit(), TextDirection::kLtr,
- false));
+ ASSERT_EQ(
+ 0u,
+ getBasicText()->width(1u, 1u, LayoutUnit(), TextDirection::kLtr, false));
}
TEST_F(LayoutTextTest, WidthLengthBeyondLength) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextControl.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698