haikuwebkit/LayoutTests/accessibility/label-with-pseudo-elements-...

39 lines
593 B
Plaintext
Raw Permalink Normal View History

This tests the accessible text alternatives results for labels with pseudo elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
AXTitle:
AXDescription:
AXTitleUIElement: non-null
AXTitle:
AXDescription:
AXTitleUIElement: non-null
AXTitle:
AXDescription:
AXTitleUIElement: non-null
AXTitle:
AXDescription:
AXTitleUIElement: null
AX: Listbox and Combobox roles embedded in labels should participate in name calculation https://bugs.webkit.org/show_bug.cgi?id=185521 Reviewed by Chris Fleizach. Source/WebCore: Take selected children into account when computing the name in accessibleNameForNode. Add ListBox to the roles for which accessibleNameDerivesFromContent returns false so that native select elements with size > 1 are treated the same way as ARIA listbox. Also add ListBox to the roles which are treated as controls when used in ARIA. Finally, prevent labels which contain unrelated controls from being used as an AXTitleUIElement. This causes us to build a string from the label and its descendants, ensuring the latter participate in the name calculation. Test: accessibility/text-alternative-calculation-from-listbox.html * accessibility/AccessibilityLabel.cpp: (WebCore::childrenContainUnrelatedControls): (WebCore::AccessibilityLabel::containsUnrelatedControls const): * accessibility/AccessibilityLabel.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::accessibleNameForNode): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent const): (WebCore::AccessibilityObject::isARIAControl): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::exposesTitleUIElement const): (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * accessibility/text-alternative-calculation-from-listbox-expected.txt: Added. * accessibility/text-alternative-calculation-from-listbox.html: Added. * platform/mac/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * platform/win/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. Canonical link: https://commits.webkit.org/201099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-15 00:32:06 +00:00
AXTitle: test 5 input value
AXDescription:
AX: Listbox and Combobox roles embedded in labels should participate in name calculation https://bugs.webkit.org/show_bug.cgi?id=185521 Reviewed by Chris Fleizach. Source/WebCore: Take selected children into account when computing the name in accessibleNameForNode. Add ListBox to the roles for which accessibleNameDerivesFromContent returns false so that native select elements with size > 1 are treated the same way as ARIA listbox. Also add ListBox to the roles which are treated as controls when used in ARIA. Finally, prevent labels which contain unrelated controls from being used as an AXTitleUIElement. This causes us to build a string from the label and its descendants, ensuring the latter participate in the name calculation. Test: accessibility/text-alternative-calculation-from-listbox.html * accessibility/AccessibilityLabel.cpp: (WebCore::childrenContainUnrelatedControls): (WebCore::AccessibilityLabel::containsUnrelatedControls const): * accessibility/AccessibilityLabel.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::accessibleNameForNode): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent const): (WebCore::AccessibilityObject::isARIAControl): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::exposesTitleUIElement const): (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * accessibility/text-alternative-calculation-from-listbox-expected.txt: Added. * accessibility/text-alternative-calculation-from-listbox.html: Added. * platform/mac/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * platform/win/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. Canonical link: https://commits.webkit.org/201099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-15 00:32:06 +00:00
AXTitleUIElement: null
AX: Listbox and Combobox roles embedded in labels should participate in name calculation https://bugs.webkit.org/show_bug.cgi?id=185521 Reviewed by Chris Fleizach. Source/WebCore: Take selected children into account when computing the name in accessibleNameForNode. Add ListBox to the roles for which accessibleNameDerivesFromContent returns false so that native select elements with size > 1 are treated the same way as ARIA listbox. Also add ListBox to the roles which are treated as controls when used in ARIA. Finally, prevent labels which contain unrelated controls from being used as an AXTitleUIElement. This causes us to build a string from the label and its descendants, ensuring the latter participate in the name calculation. Test: accessibility/text-alternative-calculation-from-listbox.html * accessibility/AccessibilityLabel.cpp: (WebCore::childrenContainUnrelatedControls): (WebCore::AccessibilityLabel::containsUnrelatedControls const): * accessibility/AccessibilityLabel.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::accessibleNameForNode): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent const): (WebCore::AccessibilityObject::isARIAControl): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::exposesTitleUIElement const): (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * accessibility/text-alternative-calculation-from-listbox-expected.txt: Added. * accessibility/text-alternative-calculation-from-listbox.html: Added. * platform/mac/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * platform/win/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. Canonical link: https://commits.webkit.org/201099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-15 00:32:06 +00:00
AXTitle: before test 6 input value after
AXDescription:
AX: Listbox and Combobox roles embedded in labels should participate in name calculation https://bugs.webkit.org/show_bug.cgi?id=185521 Reviewed by Chris Fleizach. Source/WebCore: Take selected children into account when computing the name in accessibleNameForNode. Add ListBox to the roles for which accessibleNameDerivesFromContent returns false so that native select elements with size > 1 are treated the same way as ARIA listbox. Also add ListBox to the roles which are treated as controls when used in ARIA. Finally, prevent labels which contain unrelated controls from being used as an AXTitleUIElement. This causes us to build a string from the label and its descendants, ensuring the latter participate in the name calculation. Test: accessibility/text-alternative-calculation-from-listbox.html * accessibility/AccessibilityLabel.cpp: (WebCore::childrenContainUnrelatedControls): (WebCore::AccessibilityLabel::containsUnrelatedControls const): * accessibility/AccessibilityLabel.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::accessibleNameForNode): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::accessibleNameDerivesFromContent const): (WebCore::AccessibilityObject::isARIAControl): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::exposesTitleUIElement const): (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const): LayoutTests: * accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * accessibility/text-alternative-calculation-from-listbox-expected.txt: Added. * accessibility/text-alternative-calculation-from-listbox.html: Added. * platform/mac/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. * platform/win/accessibility/label-with-pseudo-elements-expected.txt: Updated for new behavior. Canonical link: https://commits.webkit.org/201099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-15 00:32:06 +00:00
AXTitleUIElement: null
PASS successfullyParsed is true
TEST COMPLETE