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

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

Issue 1773063002: MacViews: Fix failing label-related views_unittests after r377477 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I like this better Created 4 years, 9 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
« no previous file with comments | « no previous file | ui/views/controls/styled_label.cc » ('j') | ui/views/controls/styled_label.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label_unittest.cc
diff --git a/ui/views/controls/label_unittest.cc b/ui/views/controls/label_unittest.cc
index 9d0743341ea92c81d9c7181a68cd23ebe46fb1df..63a12a85c7f8b9ce54230be321feb915442dab96 100644
--- a/ui/views/controls/label_unittest.cc
+++ b/ui/views/controls/label_unittest.cc
@@ -322,7 +322,7 @@ TEST_F(LabelTest, TextChangeWithoutLayout) {
TEST_F(LabelTest, EmptyLabelSizing) {
Label label;
- const gfx::Size expected_size(0, gfx::FontList().GetHeight());
+ const gfx::Size expected_size(0, label.font_list().GetHeight());
EXPECT_EQ(expected_size, label.GetPreferredSize());
label.SetMultiLine(!label.multi_line());
EXPECT_EQ(expected_size, label.GetPreferredSize());
« no previous file with comments | « no previous file | ui/views/controls/styled_label.cc » ('j') | ui/views/controls/styled_label.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698