| 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) {
|
|
|