-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[_ASPendingState] Make sure accessibility strings are not nil before allocating attributed strings for them #trivial #581
Conversation
nguyenhuy
commented
Sep 25, 2017
- Fix crashes caused by Added attributed versions of accessibilityLabel, accessibilityHint, accessibilityValue #554
🚫 CI failed with log |
🚫 CI failed with log |
Tests/ASDisplayNodeTests.mm
Outdated
@@ -353,7 +353,7 @@ - (void)checkValuesMatchDefaults:(ASDisplayNode *)node isLayerBacked:(BOOL)isLay | |||
XCTAssertEqual((id)nil, node.accessibilityLabel, @"default accessibilityLabel is broken %@", hasLoadedView); | |||
XCTAssertEqual((id)nil, node.accessibilityHint, @"default accessibilityHint is broken %@", hasLoadedView); | |||
XCTAssertEqual((id)nil, node.accessibilityValue, @"default accessibilityValue is broken %@", hasLoadedView); | |||
if (AS_AT_LEAST_IOS11) { | |||
if (@available(iOS 11.0, *)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to @available
to make CI happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're assuming everyone is using Xcode 9 now I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is only for CI and contributors. Users aren't forced into Xcode 9.
🚫 CI failed with log |
🚫 CI failed with log |
Tests/ASDisplayNodeTests.mm
Outdated
@@ -353,7 +353,7 @@ - (void)checkValuesMatchDefaults:(ASDisplayNode *)node isLayerBacked:(BOOL)isLay | |||
XCTAssertEqual((id)nil, node.accessibilityLabel, @"default accessibilityLabel is broken %@", hasLoadedView); | |||
XCTAssertEqual((id)nil, node.accessibilityHint, @"default accessibilityHint is broken %@", hasLoadedView); | |||
XCTAssertEqual((id)nil, node.accessibilityValue, @"default accessibilityValue is broken %@", hasLoadedView); | |||
if (AS_AT_LEAST_IOS11) { | |||
if (@available(iOS 11.0, *)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're assuming everyone is using Xcode 9 now I guess?
9c085e8
to
0192449
Compare
🚫 CI failed with log |
…ted strings for them - Fix crashes caused by TextureGroup#554
0192449
to
55fe868
Compare
…allocating attributed strings for them #trivial (TextureGroup#581) * Make sure accessibility strings are not nil before allocating attributed strings for them - Fix crashes caused by TextureGroup#554 * Update tests