Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASTraitCollection] Add missing properties to ASTraitCollection #625

Merged
Prev Previous commit
Fix failing test
  • Loading branch information
ypogribnyi committed Jan 16, 2018
commit 11dc888bb172f71279f26832fa5e854389d57d42
2 changes: 1 addition & 1 deletion Tests/ASCollectionViewTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ - (void)testTraitCollectionChangesMidUpdate
[window layoutIfNeeded];

// The initial reload is async, changing the trait collection here should be "mid-update"
ASPrimitiveTraitCollection traitCollection;
ASPrimitiveTraitCollection traitCollection = ASPrimitiveTraitCollectionMakeDefault();
traitCollection.displayScale = cn.primitiveTraitCollection.displayScale + 1; // Just a dummy change
traitCollection.containerSize = screenBounds.size;
cn.primitiveTraitCollection = traitCollection;
Expand Down