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

30 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
This tests the platform attributes exposed for buttons with aria-haspopup
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS element.hasAttribute('aria-haspopup') is true
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
AX popupValue = 'menu'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test1 has trait haspopup = true with aria-haspopup attribute = dialog
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
AX popupValue = 'dialog'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test2 has trait haspopup = true with aria-haspopup attribute = grid
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
AX popupValue = 'grid'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test3 has trait haspopup = true with aria-haspopup attribute = listbox
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
AX popupValue = 'listbox'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test4 has trait haspopup = true with aria-haspopup attribute = menu
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
AX popupValue = 'menu'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test5 has trait haspopup = true with aria-haspopup attribute = tree
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
AX popupValue = 'tree'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test6 has trait haspopup = false with aria-haspopup attribute = null
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
AX popupValue = 'false'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test7 has trait haspopup = false with aria-haspopup attribute = false
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
AX popupValue = 'false'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
test8 has trait haspopup = false with aria-haspopup attribute = foo
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
AX popupValue = 'false'
test9 has trait haspopup = false with aria-haspopup attribute =
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
AX popupValue = 'false'
Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. https://bugs.webkit.org/show_bug.cgi?id=199107 <rdar://problem/43663611> Patch by Andres Gonzalez <andresg_22@apple.com> on 2019-06-22 Reviewed by Chris Fleizach. Source/WebCore: Tests: accessibility/ios-simulator/button-with-aria-haspopup-role.html accessibility/ios-simulator/element-haspopup.html If an accessibility object is contained within an <a>, we should check the aria-haspopup attribute on the ancestor <a> element. This was done before in the iOS WebKit accessibility bunddle override. * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::hasPopup const): Tools: iOS implementation for AccessibilityUIElement::hasPopup. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::AccessibilityUIElement::hasPopup const): LayoutTests: * accessibility/element-haspopup-expected.txt: * accessibility/element-haspopup.html: Added cases for a <p> element contained within <a>. * accessibility/ios-simulator/button-with-aria-haspopup-role-expected.txt: Added. * accessibility/ios-simulator/button-with-aria-haspopup-role.html: Added. Existed for MacOS and now also for iOS. * accessibility/ios-simulator/element-haspopup-expected.txt: Copied from LayoutTests/accessibility/element-haspopup-expected.txt. * accessibility/ios-simulator/element-haspopup.html: Added. Canonical link: https://commits.webkit.org/213100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-06-22 18:59:18 +00:00
PASS successfullyParsed is true
TEST COMPLETE