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

[_ASPendingState] Make sure accessibility strings are not nil before allocating attributed strings for them #trivial #581

Merged
merged 2 commits into from
Sep 27, 2017

Conversation

nguyenhuy
Copy link
Member

@ghost
Copy link

ghost commented Sep 25, 2017

🚫 CI failed with log

@ghost
Copy link

ghost commented Sep 25, 2017

🚫 CI failed with log

@@ -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, *)) {
Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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.

@ghost
Copy link

ghost commented Sep 25, 2017

🚫 CI failed with log

@ghost
Copy link

ghost commented Sep 25, 2017

🚫 CI failed with log

@@ -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, *)) {
Copy link
Contributor

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?

@ghost
Copy link

ghost commented Sep 26, 2017

🚫 CI failed with log

@nguyenhuy nguyenhuy merged commit 9e178dc into TextureGroup:master Sep 27, 2017
@nguyenhuy nguyenhuy deleted the HNNilLabels branch September 27, 2017 10:34
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants