haikuwebkit/LayoutTests/accessibility/gtk/relation-types.html

119 lines
6.0 KiB
HTML
Raw Permalink Normal View History

AX: [ATK] Implement missing AtkRelation types https://bugs.webkit.org/show_bug.cgi?id=155494 Reviewed by Darin Adler. Source/WebCore: Add methods for getting the element(s) which reference a particular element via an ARIA attribute. Then use those methods to identify and expose the expected reverse/ reciprocal AtkRelationType and targets. Also add ATK support for aria-owns. Use SpaceSplitString in AccessibilityObject::elementsFromAttribute() so that unexpected whitespace characters in an attribute's list of ids does not prevent the desired element from being found. Lastly, change the return type of AccessibilityObject::identifierAttribute() from a String to a const AtomicString& for better efficiency. Tests: accessibility/aria-owns.html accessibility/gtk/relation-types.html * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::identifierAttribute): (WebCore::AccessibilityObject::elementsFromAttribute): (WebCore::AccessibilityObject::ariaElementsReferencedByAttribute): (WebCore::AccessibilityObject::ariaControlsReferencingElements): (WebCore::AccessibilityObject::ariaDescribedByReferencingElements): (WebCore::AccessibilityObject::ariaFlowToReferencingElements): (WebCore::AccessibilityObject::ariaLabelledByReferencingElements): (WebCore::AccessibilityObject::ariaOwnsReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Implement ATK support for ariaOwnsElementAtIndex(). * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): LayoutTests: * accessibility/aria-owns-expected.txt: Renamed from LayoutTests/accessibility/mac/aria-owns-expected.txt. * accessibility/aria-owns.html: Renamed from LayoutTests/accessibility/mac/aria-owns.html. * accessibility/gtk/relation-types-expected.txt: Added. * accessibility/gtk/relation-types.html: Added. Canonical link: https://commits.webkit.org/190171@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-13 12:42:04 +00:00
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script src="../../resources/accessibility-helper.js"></script>
</head>
<body id="body">
<div id="content">
<!-- N.B. The variety of whitespace chars separating the ids is deliberate -->
<div tabindex="0" id="test" role="group"
aria-flowto="flowto1 flowto2"
aria-owns="owned1 owned2"
aria-controls="controlled1
controlled2"
[ATK] Add support for aria-details and aria-errormessage https://bugs.webkit.org/show_bug.cgi?id=172588 Reviewed by Chris Fleizach. Source/WebCore: Add methods to retrieve elements referenced by or referencing the new aria-details and aria-errormessage attributes. Include aria-details and aria-errormessage in AccessibilityObject::supportsARIAAttributes() to ensure elements with these attributes will be included in the accessibility tree. New test cases added to accessibility/gtk/relation-types.html. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::supportsARIAAttributes): (WebCore::AccessibilityObject::ariaDetailsElements): (WebCore::AccessibilityObject::ariaDetailsReferencingElements): (WebCore::AccessibilityObject::ariaErrorMessageElements): (WebCore::AccessibilityObject::ariaErrorMessageReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): * html/HTMLAttributeNames.in: Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Also bump minimum versions of at-spi2-core and at-spi2-atk to versions which support the details and error-message relation types. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * gtk/jhbuild.modules: LayoutTests: Add new test cases to relation-types.html. * accessibility/gtk/relation-types-expected.txt: * accessibility/gtk/relation-types.html: Canonical link: https://commits.webkit.org/190689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-26 16:45:34 +00:00
aria-details="details"
aria-errormessage="error"
AX: [ATK] Implement missing AtkRelation types https://bugs.webkit.org/show_bug.cgi?id=155494 Reviewed by Darin Adler. Source/WebCore: Add methods for getting the element(s) which reference a particular element via an ARIA attribute. Then use those methods to identify and expose the expected reverse/ reciprocal AtkRelationType and targets. Also add ATK support for aria-owns. Use SpaceSplitString in AccessibilityObject::elementsFromAttribute() so that unexpected whitespace characters in an attribute's list of ids does not prevent the desired element from being found. Lastly, change the return type of AccessibilityObject::identifierAttribute() from a String to a const AtomicString& for better efficiency. Tests: accessibility/aria-owns.html accessibility/gtk/relation-types.html * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::identifierAttribute): (WebCore::AccessibilityObject::elementsFromAttribute): (WebCore::AccessibilityObject::ariaElementsReferencedByAttribute): (WebCore::AccessibilityObject::ariaControlsReferencingElements): (WebCore::AccessibilityObject::ariaDescribedByReferencingElements): (WebCore::AccessibilityObject::ariaFlowToReferencingElements): (WebCore::AccessibilityObject::ariaLabelledByReferencingElements): (WebCore::AccessibilityObject::ariaOwnsReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Implement ATK support for ariaOwnsElementAtIndex(). * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): LayoutTests: * accessibility/aria-owns-expected.txt: Renamed from LayoutTests/accessibility/mac/aria-owns-expected.txt. * accessibility/aria-owns.html: Renamed from LayoutTests/accessibility/mac/aria-owns.html. * accessibility/gtk/relation-types-expected.txt: Added. * accessibility/gtk/relation-types.html: Added. Canonical link: https://commits.webkit.org/190171@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-13 12:42:04 +00:00
aria-labelledby="label1 label2"
aria-describedby="description1 description2">
</div>
<div id="owned1" role="button">owned 1</div>
<div id="owned2" role="radio">owned 2</div>
<div id="controlled1" role="group" aria-label="controlled 1"></div>
<div id="controlled2" role="group" aria-label="controlled 2"></div>
<p id="label1">label 1</p>
<div id="label2">label 2</div>
<p id="description1">description 1</p>
<div id="description2">description 2</div>
<div tabindex="0" id="flowto1" role="group" aria-label="next group (1 of 2)" aria-describedby="description1"></div>
<div tabindex="0" id="flowto2" role="group" aria-label="next group (2 of 2)" aria-describedby="description2"></div>
[ATK] Add support for aria-details and aria-errormessage https://bugs.webkit.org/show_bug.cgi?id=172588 Reviewed by Chris Fleizach. Source/WebCore: Add methods to retrieve elements referenced by or referencing the new aria-details and aria-errormessage attributes. Include aria-details and aria-errormessage in AccessibilityObject::supportsARIAAttributes() to ensure elements with these attributes will be included in the accessibility tree. New test cases added to accessibility/gtk/relation-types.html. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::supportsARIAAttributes): (WebCore::AccessibilityObject::ariaDetailsElements): (WebCore::AccessibilityObject::ariaDetailsReferencingElements): (WebCore::AccessibilityObject::ariaErrorMessageElements): (WebCore::AccessibilityObject::ariaErrorMessageReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): * html/HTMLAttributeNames.in: Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Also bump minimum versions of at-spi2-core and at-spi2-atk to versions which support the details and error-message relation types. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * gtk/jhbuild.modules: LayoutTests: Add new test cases to relation-types.html. * accessibility/gtk/relation-types-expected.txt: * accessibility/gtk/relation-types.html: Canonical link: https://commits.webkit.org/190689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-26 16:45:34 +00:00
<div id="details">Detailed descriptive information.</div>
<div id="error">Information about the error.</div>
AX: [ATK] Implement missing AtkRelation types https://bugs.webkit.org/show_bug.cgi?id=155494 Reviewed by Darin Adler. Source/WebCore: Add methods for getting the element(s) which reference a particular element via an ARIA attribute. Then use those methods to identify and expose the expected reverse/ reciprocal AtkRelationType and targets. Also add ATK support for aria-owns. Use SpaceSplitString in AccessibilityObject::elementsFromAttribute() so that unexpected whitespace characters in an attribute's list of ids does not prevent the desired element from being found. Lastly, change the return type of AccessibilityObject::identifierAttribute() from a String to a const AtomicString& for better efficiency. Tests: accessibility/aria-owns.html accessibility/gtk/relation-types.html * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::identifierAttribute): (WebCore::AccessibilityObject::elementsFromAttribute): (WebCore::AccessibilityObject::ariaElementsReferencedByAttribute): (WebCore::AccessibilityObject::ariaControlsReferencingElements): (WebCore::AccessibilityObject::ariaDescribedByReferencingElements): (WebCore::AccessibilityObject::ariaFlowToReferencingElements): (WebCore::AccessibilityObject::ariaLabelledByReferencingElements): (WebCore::AccessibilityObject::ariaOwnsReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Implement ATK support for ariaOwnsElementAtIndex(). * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): LayoutTests: * accessibility/aria-owns-expected.txt: Renamed from LayoutTests/accessibility/mac/aria-owns-expected.txt. * accessibility/aria-owns.html: Renamed from LayoutTests/accessibility/mac/aria-owns.html. * accessibility/gtk/relation-types-expected.txt: Added. * accessibility/gtk/relation-types.html: Added. Canonical link: https://commits.webkit.org/190171@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-13 12:42:04 +00:00
</div>
<p id="description"></p>
<div id="console"></div>
<script>
function info(axElement) {
if (!axElement)
return "(null)";
string = axElement.title.split("AXTitle: ")[1];
string = string ? string : axElement.stringValue.split("AXValue: ")[1];
return axElement.role.split("AXRole: ")[1] + ": '" + string + "'";
}
description("This verifies the exposure of aria-properties via accessible relations.");
if (window.accessibilityController) {
var axElement = accessibilityController.accessibleElementById("test");
var owned = axElement.ariaOwnsElementAtIndex(0);
var owner = owned.ariaOwnsReferencingElementAtIndex(0);
debug("axElement.ariaOwnsElementAtIndex(0): " + info(owned));
debug("owned.ariaOwnsReferencingElementAtIndex(0): " + info(owner));
owned = axElement.ariaOwnsElementAtIndex(1);
owner = owned.ariaOwnsReferencingElementAtIndex(0);
debug("\naxElement.ariaOwnsElementAtIndex(1): " + info(owned));
debug("owned.ariaOwnsReferencingElementAtIndex(0): " + info(owner));
var controlled = axElement.ariaControlsElementAtIndex(0);
var controller = controlled.ariaControlsReferencingElementAtIndex(0);
debug("\naxElement.ariaControlsElementAtIndex(0): " + info(controlled));
debug("controlled.ariaControlsReferencingElementAtIndex(0): " + info(controller));
controlled = axElement.ariaControlsElementAtIndex(1);
controller = controlled.ariaControlsReferencingElementAtIndex(0);
debug("\naxElement.ariaControlsElementAtIndex(1): " + info(controlled));
debug("controlled.ariaControlsReferencingElementAtIndex(0): " + info(controller));
var labelledBy = axElement.ariaLabelledByElementAtIndex(0);
var label = labelledBy.ariaLabelledByReferencingElementAtIndex(0);
debug("\naxElement.ariaLabelledByElementAtIndex(0): " + info(labelledBy));
debug("labelledBy.ariaLabelledByReferencingElementAtIndex(0): " + info(label));
labelledBy = axElement.ariaLabelledByElementAtIndex(1);
label = labelledBy.ariaLabelledByReferencingElementAtIndex(0);
debug("\naxElement.ariaLabelledByElementAtIndex(1): " + info(labelledBy));
debug("labelledBy.ariaLabelledByReferencingElementAtIndex(0): " + info(label));
var describedBy = axElement.ariaDescribedByElementAtIndex(0);
var descriptionFor = describedBy.ariaDescribedByReferencingElementAtIndex(0);
var alsoDescriptionFor = describedBy.ariaDescribedByReferencingElementAtIndex(1);
debug("\naxElement.ariaDescribedByElementAtIndex(0): " + info(describedBy));
debug("describedBy.ariaDescribedByReferencingElementAtIndex(0): " + info(descriptionFor));
debug("describedBy.ariaDescribedByReferencingElementAtIndex(1): " + info(alsoDescriptionFor));
describedBy = axElement.ariaDescribedByElementAtIndex(1);
descriptionFor = describedBy.ariaDescribedByReferencingElementAtIndex(0);
alsoDescriptionFor = describedBy.ariaDescribedByReferencingElementAtIndex(1);
debug("\naxElement.ariaDescribedByElementAtIndex(1): " + info(describedBy));
debug("describedBy.ariaDescribedByReferencingElementAtIndex(0): " + info(descriptionFor));
debug("describedBy.ariaDescribedByReferencingElementAtIndex(1): " + info(alsoDescriptionFor));
var flowTo = axElement.ariaFlowToElementAtIndex(0);
var flowFrom = flowTo.ariaFlowToReferencingElementAtIndex(0);
debug("\naxElement.ariaFlowToElementAtIndex(0): " + info(flowTo));
debug("flowTo.ariaFlowToReferencingElementAtIndex(0): " + info(flowFrom));
flowTo = axElement.ariaFlowToElementAtIndex(1);
flowFrom = flowTo.ariaFlowToReferencingElementAtIndex(0);
debug("\naxElement.ariaFlowToElementAtIndex(1): " + info(flowTo));
debug("flowTo.ariaFlowToReferencingElementAtIndex(0): " + info(flowFrom));
[ATK] Add support for aria-details and aria-errormessage https://bugs.webkit.org/show_bug.cgi?id=172588 Reviewed by Chris Fleizach. Source/WebCore: Add methods to retrieve elements referenced by or referencing the new aria-details and aria-errormessage attributes. Include aria-details and aria-errormessage in AccessibilityObject::supportsARIAAttributes() to ensure elements with these attributes will be included in the accessibility tree. New test cases added to accessibility/gtk/relation-types.html. * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::supportsARIAAttributes): (WebCore::AccessibilityObject::ariaDetailsElements): (WebCore::AccessibilityObject::ariaDetailsReferencingElements): (WebCore::AccessibilityObject::ariaErrorMessageElements): (WebCore::AccessibilityObject::ariaErrorMessageReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): * html/HTMLAttributeNames.in: Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Also bump minimum versions of at-spi2-core and at-spi2-atk to versions which support the details and error-message relation types. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaDetailsElementAtIndex): (WTR::AccessibilityUIElement::ariaDetailsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageElementAtIndex): (WTR::AccessibilityUIElement::ariaErrorMessageReferencingElementAtIndex): * gtk/jhbuild.modules: LayoutTests: Add new test cases to relation-types.html. * accessibility/gtk/relation-types-expected.txt: * accessibility/gtk/relation-types.html: Canonical link: https://commits.webkit.org/190689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-26 16:45:34 +00:00
var details = axElement.ariaDetailsElementAtIndex(0);
var detailsFor = details.ariaDetailsReferencingElementAtIndex(0);
debug("\naxElement.ariaDetailsElementAtIndex(0): " + info(details));
debug("details.ariaDetailsReferencingElementAtIndex(0): " + info(detailsFor));
var error = axElement.ariaErrorMessageElementAtIndex(0);
var errorFor = error.ariaErrorMessageReferencingElementAtIndex(0);
debug("\naxElement.ariaErrorMessageElementAtIndex(0): " + info(error));
debug("error.ariaErrorMessageReferencingElementAtIndex(0): " + info(errorFor));
AX: [ATK] Implement missing AtkRelation types https://bugs.webkit.org/show_bug.cgi?id=155494 Reviewed by Darin Adler. Source/WebCore: Add methods for getting the element(s) which reference a particular element via an ARIA attribute. Then use those methods to identify and expose the expected reverse/ reciprocal AtkRelationType and targets. Also add ATK support for aria-owns. Use SpaceSplitString in AccessibilityObject::elementsFromAttribute() so that unexpected whitespace characters in an attribute's list of ids does not prevent the desired element from being found. Lastly, change the return type of AccessibilityObject::identifierAttribute() from a String to a const AtomicString& for better efficiency. Tests: accessibility/aria-owns.html accessibility/gtk/relation-types.html * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::identifierAttribute): (WebCore::AccessibilityObject::elementsFromAttribute): (WebCore::AccessibilityObject::ariaElementsReferencedByAttribute): (WebCore::AccessibilityObject::ariaControlsReferencingElements): (WebCore::AccessibilityObject::ariaDescribedByReferencingElements): (WebCore::AccessibilityObject::ariaFlowToReferencingElements): (WebCore::AccessibilityObject::ariaLabelledByReferencingElements): (WebCore::AccessibilityObject::ariaOwnsReferencingElements): * accessibility/AccessibilityObject.h: * accessibility/atk/WebKitAccessibleWrapperAtk.cpp: (setAtkRelationSetFromCoreObject): Tools: Add additional methods to test ARIA properties which are exposed via AtkRelation. Implement ATK support for ariaOwnsElementAtIndex(). * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex): (WTR::AccessibilityUIElement::ariaOwnsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaFlowToReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaControlsReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByElementAtIndex): (WTR::AccessibilityUIElement::ariaLabelledByReferencingElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByElementAtIndex): (WTR::AccessibilityUIElement::ariaDescribedByReferencingElementAtIndex): LayoutTests: * accessibility/aria-owns-expected.txt: Renamed from LayoutTests/accessibility/mac/aria-owns-expected.txt. * accessibility/aria-owns.html: Renamed from LayoutTests/accessibility/mac/aria-owns.html. * accessibility/gtk/relation-types-expected.txt: Added. * accessibility/gtk/relation-types.html: Added. Canonical link: https://commits.webkit.org/190171@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-06-13 12:42:04 +00:00
document.getElementById("content").style.visibility = "hidden";
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>