AX: aria-checked not exposed correctly on menuitemcheckbox or menuitemradio roles
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 May 2013 23:25:46 +0000 (23:25 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 May 2013 23:25:46 +0000 (23:25 +0000)
commit84e6363374efa8905f47d5d6f73790d40d57de62
treea434b57e8ef1a4ec3fc66d1df728c6fe4fca3a54
parent2cfc19c9a63716f72a2f9000cba0f6112d2a98f6
AX: aria-checked not exposed correctly on menuitemcheckbox or menuitemradio roles
https://bugs.webkit.org/show_bug.cgi?id=115499

Reviewed by Tim Horton.

Source/WebCore:

Expose isChecked() for menu item objects.
Return the Mac-platform specific value that you find on menu items for "checked" menu items.

Test: platform/mac/accessibility/aria-menuitem-checked-value.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::isChecked):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

* platform/mac/accessibility/aria-menuitem-checked-value-expected.txt: Added.
* platform/mac/accessibility/aria-menuitem-checked-value.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/accessibility/aria-menuitem-checked-value-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/accessibility/aria-menuitem-checked-value.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityNodeObject.cpp
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm