Accessible name of text fields on Android should prefer field value
commit67d42382e20617f55255a8024992cb040f691f4b
authordmazzoni <dmazzoni@chromium.org>
Tue, 21 Oct 2014 00:34:07 +0000 (20 17:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Oct 2014 00:34:30 +0000 (21 00:34 +0000)
treec5198012f9b5e1887a5206dd71d35c4e45910d03
parent6c3f81730d0cba1c2f16bbac0f011faee4381a2e
Accessible name of text fields on Android should prefer field value

On Android, each object can only have a single accessible text string
associated with it - so a text field can't simultaneously have a name
and a value. Have it always return the value if nonempty, and the
name/label otherwise.

BUG=425310

Review URL: https://codereview.chromium.org/661393005

Cr-Commit-Position: refs/heads/master@{#300389}
content/browser/accessibility/browser_accessibility_android.cc
content/browser/accessibility/dump_accessibility_tree_browsertest.cc
content/test/data/accessibility/input-text-value-expected-android.txt [new file with mode: 0644]
content/test/data/accessibility/input-text-value-expected-mac.txt [new file with mode: 0644]
content/test/data/accessibility/input-text-value-expected-win.txt [new file with mode: 0644]
content/test/data/accessibility/input-text-value.html [new file with mode: 0644]