Do not insert empty string in name computation
When the node is non-editable and doesn't have a text property, the accessibility name field had an extra space. This fixes the issue. This CL also refines unit test (AccessibleNameComputationTextField). Bug: None Test: unit_tests --gtest_filter="AXTreeSourceArcTest.*" Change-Id: I2dca6990215e98bdf2a9a57a0888f05298a2985a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1874995Reviewed-by:David Tseng <dtseng@chromium.org> Reviewed-by:
Sara Kato <sarakato@chromium.org> Commit-Queue: Hiroki Sato <hirokisato@chromium.org> Cr-Commit-Position: refs/heads/master@{#709781}
Showing
Please register or sign in to comment