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

Unified Diff: ui/gfx/font_unittest.cc

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 2 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 | « ui/gfx/font.h ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_unittest.cc
diff --git a/ui/gfx/font_unittest.cc b/ui/gfx/font_unittest.cc
index 247b2f3f1badeceb8ea6da060a8761013c1db106..073ffb51f651370ecf5402d3fa7ed9f6d6179b6f 100644
--- a/ui/gfx/font_unittest.cc
+++ b/ui/gfx/font_unittest.cc
@@ -93,9 +93,9 @@ TEST_F(FontTest, CapHeight) {
EXPECT_GT(cf.GetCapHeight(), 0);
EXPECT_GT(cf.GetCapHeight(), cf.GetHeight() / 2);
#if defined(OS_CHROMEOS) || defined(OS_LINUX)
- EXPECT_EQ(cf.GetCapHeight(), cf.GetHeight());
+ EXPECT_EQ(cf.GetCapHeight(), cf.GetBaseline());
#else
- EXPECT_LT(cf.GetCapHeight(), cf.GetHeight());
+ EXPECT_LT(cf.GetCapHeight(), cf.GetBaseline());
#endif
}
« no previous file with comments | « ui/gfx/font.h ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698