haikuwebkit/LayoutTests/accessibility/roles-computedRoleString-ex...

188 lines
5.9 KiB
Plaintext
Raw Permalink Normal View History

Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
This tests that native elements and ARIA overrides result in the same ARIA computed role, regardless of platform.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS: a[href] -> link.
PASS: article -> article.
PASS: aside -> complementary.
PASS: button -> button.
PASS: dfn -> definition.
PASS: dl -> .
PASS: footer -> contentinfo.
PASS: form -> form.
PASS: header -> banner.
PASS: h1 -> heading.
PASS: h2 -> heading.
PASS: h3 -> heading.
PASS: h4 -> heading.
PASS: h5 -> heading.
PASS: h5 -> heading.
PASS: hr -> separator.
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
PASS: img[alt='X'] -> image.
PASS: input[type='button'] -> button.
PASS: input[type='checkbox'] -> checkbox.
PASS: input[type='date'] -> .
PASS: input[type='datetime'] -> .
PASS: input[type='datetime-local'] -> .
PASS: input[type='email'] -> .
PASS: input[type='file'] -> button.
PASS: input[type='image'] -> button.
PASS: input[type='month'] -> .
PASS: input[type='number'] -> .
PASS: input[type='password'] -> .
PASS: input[type='radio'] -> radio.
PASS: input[type='range'] -> slider.
PASS: input[type='reset'] -> button.
PASS: input[type='search'] -> searchbox.
PASS: input[type='submit'] -> button.
PASS: input[type='tel'] -> .
PASS: input[type='text'] -> .
PASS: input[type='time'] -> .
PASS: input[type='url'] -> .
PASS: input[type='week'] -> .
PASS: ins -> .
PASS: math -> math.
PASS: meter -> progressbar.
PASS: nav -> navigation.
PASS: ol -> list.
PASS: li -> listitem.
PASS: p -> paragraph.
PASS: pre -> group.
PASS: progress -> progressbar.
PASS: samp -> .
PASS: section:not([aria-label]:not([aria-labelledby]) -> group.
PASS: section[aria-label] -> region.
PASS: section[aria-labelledby] -> region.
PASS: select:not([multiple]) -> button.
PASS: select[multiple] -> listbox.
PASS: option -> option.
PASS: optgroup -> option.
PASS: option -> option.
PASS: option -> option.
PASS: sub -> .
PASS: sup -> .
PASS: table -> table.
PASS: caption -> caption.
PASS: tr -> row.
PASS: th -> columnheader.
PASS: tr -> row.
PASS: td -> cell.
PASS: tr -> row.
PASS: td -> cell.
PASS: table[role="grid"] -> grid.
PASS: tr -> row.
PASS: th -> columnheader.
PASS: tr -> row.
PASS: td[role="gridcell"] -> gridcell.
PASS: tr -> row.
PASS: td[role="gridcell"] -> gridcell.
PASS: textarea -> textbox.
PASS: ul -> list.
PASS: li -> listitem.
PASS: var -> .
PASS: div[role="command"] -> .
PASS: div[role="composite"] -> .
PASS: div[role="input"] -> .
PASS: div[role="landmark"] -> .
PASS: div[role="range"] -> .
PASS: div[role="roletype"] -> .
PASS: div[role="section"] -> .
PASS: div[role="sectionhead"] -> .
PASS: div[role="select"] -> .
PASS: div[role="structure"] -> .
PASS: div[role="widget"] -> .
PASS: div[role="window"] -> .
PASS: div[role="alert"] -> alert.
PASS: div[role="alertdialog"] -> alertdialog.
PASS: div[role="application"] -> application.
PASS: div[role="article"] -> article.
PASS: div[role="banner"] -> banner.
PASS: div[role="blockquote"] -> blockquote.
PASS: div[role="button"] -> button.
PASS: div[role="caption"] -> caption.
PASS: div[role="checkbox"] -> checkbox.
PASS: div[role="combobox"] -> combobox.
PASS: div[role="complementary"] -> complementary.
PASS: div[role="contentinfo"] -> contentinfo.
PASS: div[role="definition"] -> definition.
PASS: div[role="dialog"] -> dialog.
PASS: div[role="directory"] -> list.
PASS: div[role="document"] -> document.
PASS: div[role="form"] -> form.
PASS: div[role="grid"] -> grid.
PASS: div[role="row"] -> row.
PASS: div[role="rowheader"] -> rowheader.
PASS: div[role="columnheader"] -> columnheader.
PASS: div[role="gridcell"] -> gridcell.
PASS: div[role="group"] -> group.
PASS: div[role="heading"] -> heading.
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
PASS: div[role="img"] -> image.
PASS: div[role="link"] -> link.
PASS: div[role="list"] -> list.
PASS: div[role="listitem"] -> listitem.
PASS: div[role="listbox"] -> listbox.
PASS: div[role="option"] -> option.
PASS: div[role="log"] -> log.
PASS: div[role="main"] -> main.
PASS: div[role="marquee"] -> marquee.
PASS: div[role="math"] -> math.
PASS: div[role="menu"] -> menu.
PASS: div[role="menuitem"] -> menuitem.
PASS: div[role="menuitemcheckbox"] -> menuitemcheckbox.
PASS: div[role="menuitemradio"] -> menuitemradio.
PASS: div[role="menubar"] -> menubar.
PASS: div[role="menuitem"] -> menuitem.
PASS: div[role="menuitemcheckbox"] -> menuitemcheckbox.
PASS: div[role="menuitemradio"] -> menuitemradio.
PASS: div[role="navigation"] -> navigation.
PASS: div[role="note"] -> note.
PASS: div[role="paragraph"] -> paragraph.
PASS: div[role="progressbar"] -> progressbar.
PASS: div[role="radiogroup"] -> radiogroup.
PASS: div[role="radio"] -> radio.
PASS: div[role="region"] -> region.
PASS: div[role="scrollbar"] -> scrollbar.
PASS: div[role="search"] -> search.
PASS: div[role="separator"] -> separator.
PASS: div[role="slider"] -> slider.
PASS: div[role="spinbutton"] -> spinbutton.
PASS: div[role="status"] -> status.
PASS: div[role="tablist"] -> tablist.
PASS: div[role="tab"] -> tab.
PASS: div[role="tabpanel"] -> tabpanel.
PASS: div[role="textbox"] -> .
PASS: div[role="timer"] -> timer.
PASS: div[role="toolbar"] -> toolbar.
PASS: div[role="tooltip"] -> tooltip.
PASS: div[role="tree"] -> tree.
PASS: div[role="treeitem"] -> treeitem.
PASS: div[role="treeitem"] -> treeitem.
PASS: div[role="treegrid"] -> grid.
PASS: div[role="row"] -> row.
PASS: div[role="rowheader"] -> rowheader.
PASS: div[role="columnheader"] -> columnheader.
PASS: div[role="gridcell"] -> gridcell.
PASS: div[role="button foo"] -> button.
PASS: div[role="foo button bar"] -> button.
PASS: div[role="foo button bar"] -> button.
PASS: div[role="foo button bar"] -> .
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
PASS: div[role="foo
button
bar"] -> .
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
PASS: img[role="foo"] -> image.
PASS: img[role="foo bar"] -> image.
PASS: img[role="foo bar"] -> image.
PASS: img[role="foo bar"] -> image.
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
PASS: img[role="foo
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
bar"] -> image.
PASS: img[role="text"] -> text.
PASS: img[role="text img"] -> text.
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym https://bugs.webkit.org/show_bug.cgi?id=224615 Patch by Tyler Wilcock <twilco.o@protonmail.com> on 2021-07-12 Reviewed by Chris Fleizach. Source/WebCore: Test: accessibility/image-role-is-synonomous-with-img-role.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): Add "image" ARIA role as a synonym for the "img" ARIA role, both of which map to the AccessibilityRole::Image WebCore representation. Also hardcode the ARIA reverse role map to return "image" for the AccessibilityRole::Image key. LayoutTests: The "image" role is replacing the "img" role (though "img" is not going away), so "image" should be returned from `computedRoleString`. * accessibility/image-role-is-synonomous-with-img-role-expected.txt: Added. * accessibility/image-role-is-synonomous-with-img-role.html: Added. * accessibility/roles-computedRoleString-expected.txt: * accessibility/roles-computedRoleString.html: * inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/glib/accessibility/roles-computedRoleString-expected.txt: * platform/gtk/accessibility/gtk/xml-roles-exposed-expected.txt: * platform/gtk/accessibility/image-link-expected.txt: * platform/gtk/inspector/dom/getAccessibilityPropertiesForNode-expected.txt: * platform/mac/accessibility/roles-computedRoleString-expected.txt: * platform/wpe/accessibility/image-link-expected.txt: All the tests in this group have been updated to expect "image" instead of "img". Canonical link: https://commits.webkit.org/239590@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-12 16:14:28 +00:00
PASS: img[role="img text"] -> image.
PASS: img[role="presentation"][aria-label] -> image.
PASS: a[role="foo bar"] -> link.
Web Inspector: AX: Accessibility Node Inspection https://bugs.webkit.org/show_bug.cgi?id=127447 Patch by James Craig <jcraig@apple.com> on 2014-02-11 Reviewed by Timothy Hatcher. Source/WebCore: New methods supporting WebCore::AccessibilityObject::computedRoleString() used for Accessibility section in WebInspector Node Inspector. Other updates support the JSON interface for the WebInspectorUI feature. Test: accessibility/roles-computedRoleString.html * accessibility/AccessibilityObject.cpp: (WebCore::initializeRoleMap): (WebCore::ariaRoleMap): (WebCore::reverseAriaRoleMap): (WebCore::AccessibilityObject::ariaRoleToWebCoreRole): (WebCore::AccessibilityObject::computedRoleString): * accessibility/AccessibilityObject.h: * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (-[WebAccessibilityObjectWrapper computedRoleString]): (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::getAccessibilityPropertiesForNode): (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties): * inspector/InspectorDOMAgent.h: * inspector/protocol/DOM.json: Source/WebInspectorUI: New Accessibility section in WebInspector Node Inspector. Version 1.0 only shows computed role. Computed label should come soon. Removed CSS fixed table layout b/c CSS bug: http://webkit.org/b/128294 * Localizations/en.lproj/localizedStrings.js: * UserInterface/DOMNode.js: * UserInterface/DOMNodeDetailsSidebarPanel.js: * UserInterface/DetailsSection.css: * UserInterface/InspectorWebBackendCommands.js: Tools: New computedRoleString interfaces in DumpRenderTree/WebKitTestRunner to support LayoutTest coverage of AccessibilityObject::computedRoleString() * DumpRenderTree/AccessibilityUIElement.cpp: * DumpRenderTree/AccessibilityUIElement.h: * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp: * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: * DumpRenderTree/mac/AccessibilityUIElementMac.mm: * DumpRenderTree/win/AccessibilityUIElementWin.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: LayoutTests: New layout verifying AccessibilityObject::computedRoleString() * accessibility/roles-computedRoleString-expected.txt: Added. * accessibility/roles-computedRoleString.html: Added. Canonical link: https://commits.webkit.org/146641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-11 19:27:12 +00:00
PASS successfullyParsed is true
TEST COMPLETE