haikuwebkit/LayoutTests/accessibility/button-with-aria-haspopup-r...

30 lines
973 B
Plaintext
Raw Permalink Normal View History

This tests the platform role exposed for buttons with aria-haspopup
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Enhance support of aria-haspopup per ARIA 1.1 specification. https://bugs.webkit.org/show_bug.cgi?id=199216 <rdar://problem/46221342> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-07-02 Reviewed by Chris Fleizach. Source/WebCore: Test button-with-aria-haspopup-role.html was expanded to cover testing of new functionality. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::popupValue const): replaces hasPopupValue. (WebCore::AccessibilityObject::hasPopupValue const): Deleted. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): method rename. * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): method rename. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper accessibilityPopupValue]): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Tools: * DumpRenderTree/AccessibilityUIElement.cpp: (getPopupValueCallback): (AccessibilityUIElement::getJSClass): * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (AccessibilityUIElement::popupValue const): * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::popupValue const): * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::popupValue const): LayoutTests: * accessibility/button-with-aria-haspopup-role-expected.txt: * accessibility/button-with-aria-haspopup-role.html: * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Canonical link: https://commits.webkit.org/213343@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-07-02 20:24:24 +00:00
test1 AXRole: AXButton for aria-haspopup = (null)
AX popupValue = 'false'
test2 AXRole: AXPopUpButton for aria-haspopup = 'true'
AX popupValue = 'menu'
test3 AXRole: AXButton for aria-haspopup = 'false'
AX popupValue = 'false'
test4 AXRole: AXPopUpButton for aria-haspopup = 'dialog'
AX popupValue = 'dialog'
test5 AXRole: AXPopUpButton for aria-haspopup = 'grid'
AX popupValue = 'grid'
test6 AXRole: AXPopUpButton for aria-haspopup = 'listbox'
AX popupValue = 'listbox'
test7 AXRole: AXPopUpButton for aria-haspopup = 'menu'
AX popupValue = 'menu'
test8 AXRole: AXPopUpButton for aria-haspopup = 'tree'
AX popupValue = 'tree'
test9 AXRole: AXButton for aria-haspopup = 'foo'
AX popupValue = 'false'
test10 AXRole: AXButton for aria-haspopup = ''
AX popupValue = 'false'
PASS successfullyParsed is true
TEST COMPLETE