[ATK] Expose the value of aria-roledescription via an AtkObject attribute
https://bugs.webkit.org/show_bug.cgi?id=146719
Reviewed by Chris Fleizach.
Source/WebCore:
The author-provided value is now exposed via an AtkObject attribute.
Implementation is already covered by aria-roledescription.html. The ATK
expectations are slightly different than those for AX API because falling
back on the default role description is done by assistive technologies.
That this fall back is needed is identified by the lack of an author-
provided value. Thus we do not wish to expose the default role description
in our implementation.
* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetAttributes):
Tools:
Implement roleDescription() so that the implementation can be tested.
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::roleDescription):
LayoutTests:
Platform-specific expectations are needed because falling back on the default
role description is done by assistive technologies. That this fall back is needed
is identified by the lack of an author-provided value. Thus we do not wish to
expose the default role description in our implementation.
* platform/gtk/TestExpectations: Unskipped the failing test.
* platform/gtk/accessibility/aria-roledescription-expected.txt: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed