From d8858723ef0b6d0a17812550fbefb86f087d9fba Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Mon, 23 Sep 2019 10:33:34 -0400 Subject: [PATCH] [Typography] Fix scaling test. (#8477) Corrects a bug in an font scaling test that assumed the test host had its content sizes category set to `UIContentSizeCategoryLarge`. Discovered while authoring #8476. --- .../Typography/tests/unit/UIFont+MaterialTypographyTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Typography/tests/unit/UIFont+MaterialTypographyTests.m b/components/Typography/tests/unit/UIFont+MaterialTypographyTests.m index e280a7822da..3fc372aaa08 100644 --- a/components/Typography/tests/unit/UIFont+MaterialTypographyTests.m +++ b/components/Typography/tests/unit/UIFont+MaterialTypographyTests.m @@ -46,8 +46,8 @@ - (void)testScaledFontForTraitEnvironmentOniOS10AndAboveConsultsTheTraitEnvironm if (@available(iOS 10.0, *)) { // Given UIFont *font = [UIFont systemFontOfSize:22.0]; - font = - [[MDCFontScaler scalerForMaterialTextStyle:MDCTextStyleHeadline1] scaledFontWithFont:font]; + font = [[[MDCFontScaler scalerForMaterialTextStyle:MDCTextStyleHeadline1] + scaledFontWithFont:font] mdc_scaledFontAtDefaultSize]; MDCTypographyMockTraitEnvironment *traitEnvironment = [[MDCTypographyMockTraitEnvironment alloc] init]; traitEnvironment.traitCollection = [UITraitCollection