Index: ui/gfx/font_render_params_linux_unittest.cc |
diff --git a/ui/gfx/font_render_params_linux_unittest.cc b/ui/gfx/font_render_params_linux_unittest.cc |
index f89c3967067535c521260ccac86a03eff8b8a5dc..e025530ff31089f74f551b25a3912a6e72f0fcd7 100644 |
--- a/ui/gfx/font_render_params_linux_unittest.cc |
+++ b/ui/gfx/font_render_params_linux_unittest.cc |
@@ -273,6 +273,21 @@ TEST_F(FontRenderParamsTest, ForceFullHintingWhenAntialiasingIsDisabled) { |
EXPECT_FALSE(params.subpixel_positioning); |
} |
+#if defined(OS_CHROMEOS) |
+TEST_F(FontRenderParamsTest, ForceSubpixelPositioning) { |
+ SetFontRenderParamsDeviceScaleFactor(1.25f); |
+ |
+ // Subpixel positioning should be forced. |
+ { |
Daniel Erat
2014/08/20 04:21:00
you don't need this block, do you?
oshima
2014/08/20 18:36:21
Done.
|
+ FontRenderParams params = |
+ GetFontRenderParams(FontRenderParamsQuery(false), NULL); |
+ EXPECT_TRUE(params.antialiasing); |
+ EXPECT_TRUE(params.subpixel_positioning); |
+ } |
+ SetFontRenderParamsDeviceScaleFactor(1.0f); |
+} |
+#endif |
+ |
TEST_F(FontRenderParamsTest, OnlySetConfiguredValues) { |
// Configure the LinuxFontDelegate (which queries GtkSettings on desktop |
// Linux) to request subpixel rendering. |