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

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

Issue 1920193003: Remove View::focusable(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
Patch Set: Rebased. Created 4 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
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 408212b385cfb68513b7ef29df9c089cc21eccb6..946c6a5f9a48801adad1bb1b3ace11564a9a29bd 100644
--- a/ui/views/controls/styled_label_unittest.cc
+++ b/ui/views/controls/styled_label_unittest.cc
@@ -200,7 +200,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());
}
@@ -409,10 +409,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());

Powered by Google App Engine
This is Rietveld 408576698