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

Unified Diff: ui/views/controls/styled_label_unittest.cc

Issue 2595163002: Add origin() method on View and use it to simplify some callers. (Closed)
Patch Set: Created 4 years 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: ui/views/controls/styled_label_unittest.cc
diff --git a/ui/views/controls/styled_label_unittest.cc b/ui/views/controls/styled_label_unittest.cc
index 729e867b0f41b304a85d9373d03694e1b0dbd750..78b7238ea39d1bc8e77b066747cb618f9e1c238f 100644
--- a/ui/views/controls/styled_label_unittest.cc
+++ b/ui/views/controls/styled_label_unittest.cc
@@ -192,10 +192,10 @@ TEST_F(StyledLabelTest, WrapLongWords) {
styled()->Layout();
ASSERT_EQ(2, styled()->child_count());
- ASSERT_EQ(gfx::Point(), styled()->bounds().origin());
- EXPECT_EQ(gfx::Point(), styled()->child_at(0)->bounds().origin());
+ ASSERT_EQ(gfx::Point(), styled()->origin());
+ EXPECT_EQ(gfx::Point(), styled()->child_at(0)->origin());
EXPECT_EQ(gfx::Point(0, styled()->height() / 2),
- styled()->child_at(1)->bounds().origin());
+ styled()->child_at(1)->origin());
EXPECT_FALSE(static_cast<Label*>(styled()->child_at(0))->text().empty());
EXPECT_FALSE(static_cast<Label*>(styled()->child_at(1))->text().empty());

Powered by Google App Engine
This is Rietveld 408576698