Index: ui/gfx/render_text_unittest.cc |
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc |
index ffa19174d28c18fa9a3b70e4a512778253a4d318..c8c50d428141cf2be2af4ae08c33b522a9befff6 100644 |
--- a/ui/gfx/render_text_unittest.cc |
+++ b/ui/gfx/render_text_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "base/format_macros.h" |
#include "base/memory/scoped_ptr.h" |
+#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/strings/utf_string_conversions.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -1156,11 +1157,14 @@ TEST_F(RenderTextTest, StringSizeEmptyString) { |
} |
#endif // !defined(OS_MACOSX) |
-// Disabled. http://crbug.com/316955 |
-TEST_F(RenderTextTest, DISABLED_StringSizeRespectsFontListMetrics) { |
+TEST_F(RenderTextTest, StringSizeRespectsFontListMetrics) { |
// Check that Arial and Symbol have different font metrics. |
Font arial_font("Arial", 16); |
+ ASSERT_EQ("arial", |
+ StringToLowerASCII(arial_font.GetActualFontNameForTesting())); |
Font symbol_font("Symbol", 16); |
+ ASSERT_EQ("symbol", |
+ StringToLowerASCII(symbol_font.GetActualFontNameForTesting())); |
EXPECT_NE(arial_font.GetHeight(), symbol_font.GetHeight()); |
EXPECT_NE(arial_font.GetBaseline(), symbol_font.GetBaseline()); |
// "a" should be rendered with Arial, not with Symbol. |
@@ -1213,8 +1217,7 @@ TEST_F(RenderTextTest, SetFont) { |
EXPECT_EQ(12, render_text->GetPrimaryFont().GetFontSize()); |
} |
-// Disabled. http://crbug.com/316955 |
-TEST_F(RenderTextTest, DISABLED_SetFontList) { |
+TEST_F(RenderTextTest, SetFontList) { |
scoped_ptr<RenderText> render_text(RenderText::CreateInstance()); |
render_text->SetFontList(FontList("Arial,Symbol, 13px")); |
const std::vector<Font>& fonts = render_text->font_list().GetFonts(); |