Chromium Code Reviews| 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..e1821621e4fed3dcad2b0073c0492a732174780d 100644 |
| --- a/ui/gfx/font_render_params_linux_unittest.cc |
| +++ b/ui/gfx/font_render_params_linux_unittest.cc |
| @@ -273,6 +273,19 @@ TEST_F(FontRenderParamsTest, ForceFullHintingWhenAntialiasingIsDisabled) { |
| EXPECT_FALSE(params.subpixel_positioning); |
| } |
| +#if defined(OS_CHROMEOS) |
| +TEST_F(FontRenderParamsTest, ForceSubpixelPositioning) { |
| + SetFontRenderParamsDeviceScaleFactor(1.25f); |
|
Daniel Erat
2014/08/20 20:14:42
nit: do a query before you increase it to 1.25 and
oshima
2014/08/20 21:54:40
Done.
|
| + |
| + // Subpixel positioning should be forced. |
| + 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. |