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

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

Issue 2810403002: Views: Don't add insets for views::Link focus rings under MD. (Closed)
Patch Set: Tests passing Created 3 years, 8 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
« ui/views/controls/styled_label.cc ('K') | « ui/views/controls/styled_label.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68a6720c7b886b98ed921050a942b02beb209a75..2f2f85f50c97e43e4a0860ca7d64421e7857b43a 100644
--- a/ui/views/controls/styled_label_unittest.cc
+++ b/ui/views/controls/styled_label_unittest.cc
@@ -250,7 +250,7 @@ TEST_F(StyledLabelTest, DontBreakLinks) {
ASSERT_EQ(2, styled()->child_count());
// The label has no focus border while the link (and thus overall styled
// label) does, so the label should be inset by the width of the focus border.
- EXPECT_EQ(Label::kFocusBorderPadding, styled()->child_at(0)->x());
+ EXPECT_EQ(Link::kFocusBorderPadding, styled()->child_at(0)->x());
EXPECT_EQ(0, styled()->child_at(1)->x());
}
@@ -466,10 +466,10 @@ TEST_F(StyledLabelTest, StyledRangeWithTooltip) {
// The labels have no focus border while the link (and thus overall styled
// label) does, so the labels should be inset by the width of the focus
// border.
- EXPECT_EQ(Label::kFocusBorderPadding, styled()->child_at(0)->x());
+ EXPECT_EQ(Link::kFocusBorderPadding, styled()->child_at(0)->x());
EXPECT_EQ(styled()->child_at(0)->bounds().right(),
styled()->child_at(1)->x());
- EXPECT_EQ(Label::kFocusBorderPadding, styled()->child_at(2)->x());
+ EXPECT_EQ(Link::kFocusBorderPadding, styled()->child_at(2)->x());
EXPECT_EQ(styled()->child_at(2)->bounds().right(),
styled()->child_at(3)->x());
EXPECT_EQ(0, styled()->child_at(4)->x());
« ui/views/controls/styled_label.cc ('K') | « ui/views/controls/styled_label.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698