AX: [ATK] The value of aria-level is not exposed on non-heading roles
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Oct 2017 01:02:47 +0000 (01:02 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Oct 2017 01:02:47 +0000 (01:02 +0000)
commitf7623cf81fe34020e27d9ebaafdb7d1aafc26cda
treeebe73c7350c380dec7c056e127323b8040e14b52
parentdcf4f3ecd22c8c598b067f5d15b1bd4a15c73a68
AX: [ATK] The value of aria-level is not exposed on non-heading roles
https://bugs.webkit.org/show_bug.cgi?id=177775

Reviewed by Chris Fleizach.

Source/WebCore:

Expose the value of aria-level via the "level" AtkObject attribute, as is currently
done for headings.

Test: accessibility/gtk/aria-level.html

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetAttributes):

Tools:

* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::hierarchicalLevel const):

LayoutTests:

* accessibility/gtk/aria-level-expected.txt: Added.
* accessibility/gtk/aria-level.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/gtk/aria-level-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/gtk/aria-level.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp
Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp