Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp |
| diff --git a/third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp b/third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp |
| index 64e924d757a12d5e5eb3c4fc0bf672917cd7c768..8163f76c559bc58fec2b5323ce892570e46b1c5b 100644 |
| --- a/third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp |
| +++ b/third_party/WebKit/Source/core/css/resolver/FontBuilderTest.cpp |
| @@ -115,6 +115,14 @@ static void fontVariantCapsValue(FontBuilder& b) { b.setVariantCaps(FontDescript |
| static void fontVariantLigaturesBase(FontDescription& d) { d.setVariantLigatures(FontDescription::VariantLigatures(FontDescription::EnabledLigaturesState)); } |
| static void fontVariantLigaturesValue(FontBuilder& b) { b.setVariantLigatures(FontDescription::VariantLigatures(FontDescription::DisabledLigaturesState)); } |
| +static void fontVariantNumericBase(FontDescription &d) { d.setVariantNumeric(FontVariantNumeric()); } |
|
Timothy Loh
2016/05/10 05:26:25
& before the space
drott
2016/05/10 10:59:06
Done.
|
| +static void fontVariantNumericValue(FontBuilder& b) |
| +{ |
| + FontVariantNumeric variantNumeric; |
| + variantNumeric.setNumericFraction(FontVariantNumeric::StackedFractions); |
| + b.setVariantNumeric(variantNumeric); |
| +} |
| + |
| static void fontTextRenderingBase(FontDescription& d) { d.setTextRendering(GeometricPrecision); } |
| static void fontTextRenderingValue(FontBuilder& b) { b.setTextRendering(OptimizeLegibility); } |
| @@ -153,6 +161,7 @@ INSTANTIATE_TEST_CASE_P(AllFields, FontBuilderAdditiveTest, |
| FunctionPair(fontStyleBase, fontStyleValue), |
| FunctionPair(fontVariantCapsBase, fontVariantCapsValue), |
| FunctionPair(fontVariantLigaturesBase, fontVariantLigaturesValue), |
| + FunctionPair(fontVariantNumericBase, fontVariantNumericValue), |
| FunctionPair(fontTextRenderingBase, fontTextRenderingValue), |
| FunctionPair(fontKerningBase, fontKerningValue), |
| FunctionPair(fontFontSmoothingBase, fontFontSmoothingValue), |