haikuwebkit/LayoutTests/platform/win/accessibility
Andres Gonzalez b9d2057701 Fix for LayoutTests/accessibility/canvas-fallback-content.html in isolated tree mode.
https://bugs.webkit.org/show_bug.cgi?id=220644

Reviewed by Chris Fleizach.

Source/WebCore:

Tests:
accessibility/canvas-fallback-content.html
accessibility/canvas-fallback-content-2.html

- Updates the accessibility isolated tree when the ARIA role attribute
changes for a DOM element.
- Modified tests to use Promises and retrieve accessible elements by IDs
so that they work in both isolated tree mode on and off.

* accessibility/AXLogger.cpp:
(WebCore::operator<<): Added new value to the AXNotification enum.
* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::handleAriaRoleChanged):
Updates the isolated tree when an ARIA role attribute changes.
(WebCore::AXObjectCache::updateIsolatedTree):
Handles the AXAriaRoleChanged notification.
* accessibility/AXObjectCache.h:

LayoutTests:

* accessibility/canvas-fallback-content-2-expected.txt:
Removed the checks for the document.activeElement since the goal here is
not to test this method.

* accessibility/canvas-fallback-content-2.html:
Retrieved the accessibility Objects by ID directly from the accessibilityController.
This simplifies the code since it is not necessary to set focus to the
object via the document, to then retrieve the focused accessibility element.
This works for isolated tree mode on and off.

* accessibility/canvas-fallback-content.html:
Kept the focus manipulations but used Promises to make it work in both
isolated mode on and off.

* platform/win/accessibility/canvas-fallback-content-expected.txt: Deleted.
* platform/win/TestExpectations: Skip since this test was already failing in win.


Canonical link: https://commits.webkit.org/233123@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-18 23:54:57 +00:00
..
adjacent-continuations-cause-assertion-failure-expected.txt
aria-combobox-expected.txt
aria-hidden-with-elements-expected.txt
aria-labelledby-overrides-aria-label-expected.txt
aria-list-and-listitem-expected.txt
aria-mappings-expected.txt
aria-menubar-menuitems-expected.txt
aria-option-role-expected.txt
aria-roles-expected.txt
aria-tab-role-on-buttons-expected.txt
aria-tab-roles-expected.txt
box-styled-lists-expected.txt
canvas-accessibilitynodeobject-expected.txt
canvas-description-and-role-expected.txt
canvas-fallback-content-2-expected.txt
content-editable-as-textarea-expected.txt
css-content-attribute-expected.txt
deleting-iframe-destroys-axcache-expected.txt
disabled-controls-not-focusable-expected.txt
div-within-anchors-causes-crash-expected.txt
empty-image-with-title-expected.txt
html-html-element-is-ignored-expected.txt
image-map1-expected.txt
image-with-alt-and-map-expected.txt
label-with-pseudo-elements-expected.txt
listitem-title-expected.txt
lists-expected.txt
menu-list-crash2-expected.txt
platform-name-expected.txt
press-targets-center-point-expected.txt
roles-exposed-expected.txt
textbox-role-reports-selection-expected.txt