Skip to content

Commit

Permalink
[Typography] Fix scaling test. (#8477)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Robert Moore committed Sep 23, 2019
1 parent 0f05123 commit d885872
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit d885872

Please sign in to comment.