-
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
Disable a11y cache #1274
Disable a11y cache #1274
Conversation
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.
Nits aside, LGTM. Changes in the framework are minimal.
|
||
@interface ASDisplayViewAccessibilityTests : XCTestCase | ||
@end | ||
|
||
@implementation ASDisplayViewAccessibilityTests | ||
|
||
- (void)setUp { |
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.
Bracket on the following line please.
NSArray<UIAccessibilityElement *> *updatedElements2 = contianer.view.accessibilityElements; | ||
XCTAssertTrue([[updatedElements2.firstObject accessibilityLabel] isEqualToString:@"hello, world, !!!!"]); | ||
} | ||
- (void)testAccessibilityNonLayerbackedNodesOperationInContainer { |
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.
Same here. Also separate these methods by new lines.
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.
LGTM. Thanks @wsdwsd0829
* disable a11y cache * style update
* disable a11y cache * style update
Disable because a11y not update correctly as layer backed nodes inserted/removed/updated.
A few other case will fail otherwise as shown in tests.
Fixes: #1161
Attempt to invalidate a11y (instead of disable cache) code is here: #1260 while does not seem worth the effort.