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

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

Issue 2405633002: Reformat comments in core/layout (Closed)
Patch Set: Created 4 years, 2 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 4d7f310e99adeb395d3f27888414f12aeaa68c22..d379930d092d61317d800089bf9aef8edc0c99d4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextTest.cpp
@@ -43,7 +43,8 @@ TEST_F(LayoutTextTest, WidthZeroFromMaxLength) {
setBasicBody(kTacoText);
float width = getBasicText()->width(0u, std::numeric_limits<unsigned>::max(),
LayoutUnit(), LTR, false);
- // Width may vary by platform and we just want to make sure it's something roughly reasonable.
+ // Width may vary by platform and we just want to make sure it's something
+ // roughly reasonable.
ASSERT_GE(width, 100.f);
ASSERT_LE(width, 160.f);
}
@@ -56,7 +57,8 @@ TEST_F(LayoutTextTest, WidthMaxFromMaxLength) {
}
TEST_F(LayoutTextTest, WidthWithHugeLengthAvoidsOverflow) {
- // The test case from http://crbug.com/647820 uses a 288-length string, so for posterity we follow that closely.
+ // The test case from http://crbug.com/647820 uses a 288-length string, so for
+ // posterity we follow that closely.
setBodyInnerHTML(
"<div "
"id='target'>"
@@ -67,7 +69,8 @@ TEST_F(LayoutTextTest, WidthWithHugeLengthAvoidsOverflow) {
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"</div>");
- // Width may vary by platform and we just want to make sure it's something roughly reasonable.
+ // Width may vary by platform and we just want to make sure it's something
+ // roughly reasonable.
float width =
getBasicText()->width(23u, 4294967282u, LayoutUnit(2.59375), RTL, false);
ASSERT_GE(width, 100.f);
@@ -81,7 +84,8 @@ TEST_F(LayoutTextTest, WidthFromBeyondLength) {
TEST_F(LayoutTextTest, WidthLengthBeyondLength) {
setBasicBody("x");
- // Width may vary by platform and we just want to make sure it's something roughly reasonable.
+ // Width may vary by platform and we just want to make sure it's something
+ // roughly reasonable.
float width = getBasicText()->width(0u, 2u, LayoutUnit(), LTR, false);
ASSERT_GE(width, 4.f);
ASSERT_LE(width, 20.f);

Powered by Google App Engine
This is Rietveld 408576698