arc-a11y: Create an array of text properties to be checked.
The array will ensure that the same properties are checked in ComputeNameFromContents() and HasText(). This will address b:172611390, as the on/off status was propagated as stateDescription (in ARC++ R), as opposed to name. By having the same properties checked in ComputeNameFromContents() and HasText(), this will also mean that the switch will not receive focus. ....On/Off" Test: AccessibilityNodeInfoDataWrapperTest.NameFromTextProperties Test: manual. Toggling hangouts switch will read "Improve Hangouts Bug: b:172611390 Change-Id: Ibdedf1a2dcde5db1ba7d78043d056423d6f74cb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543527Reviewed-by:Hiroki Sato <hirokisato@chromium.org> Commit-Queue: Sara Kato <sarakato@chromium.org> Auto-Submit: Sara Kato <sarakato@chromium.org> Cr-Commit-Position: refs/heads/master@{#834513}
Showing
Please register or sign in to comment