Index: ui/views/controls/label_unittest.cc |
=================================================================== |
--- ui/views/controls/label_unittest.cc (revision 133692) |
+++ ui/views/controls/label_unittest.cc (working copy) |
@@ -21,11 +21,12 @@ |
TEST(LabelTest, FontPropertyCourier) { |
Label label; |
std::string font_name("courier"); |
- gfx::Font font(font_name, 30); |
+ // Note: This test is size dependent since Courier does not support all sizes. |
+ gfx::Font font(font_name, 26); |
label.SetFont(font); |
gfx::Font font_used = label.font(); |
EXPECT_EQ(font_name, font_used.GetFontName()); |
- EXPECT_EQ(30, font_used.GetFontSize()); |
+ EXPECT_EQ(26, font_used.GetFontSize()); |
} |
#endif |