haikuwebkit/LayoutTests/accessibility/ios-simulator
Andres Gonzalez 31879374af Expose [WebAccessibilityObjectWrapper lineRectsAndText] on MacOS.
https://bugs.webkit.org/show_bug.cgi?id=229045
<rdar://81819301>

Reviewed by Chris Fleizach.

Source/WebCore:

Test: accessibility/element-line-rects-and-text.html

Moved the [WebAccessibilityObjectWrapper lineRectsAndText] method, and
supporting methods and functions, from the iOS subclass to the base
(Cocoa) class so that it can be used in both iOS and MacOS.

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
Moved the following methods and functions to WebAccessibilityObjectWrapperBase.mm.
(-[WebAccessibilityObjectWrapper _prepareAccessibilityCall]): Deleted.
(-[WebAccessibilityObjectWrapper _addAccessibilityObject:toTextMarkerArray:]): Deleted.
(blockquoteLevel): Deleted.
(AXAttributeStringSetLanguage): Deleted.
(AXAttributeStringSetBlockquoteLevel): Deleted.
(AXAttributeStringSetHeadingLevel): Deleted.
(AXAttributeStringSetFont): Deleted.
(AXAttributeStringSetNumber): Deleted.
(AXAttributeStringSetStyle): Deleted.
(AXAttributedStringAppendText): Deleted.
(-[WebAccessibilityObjectWrapper contentForSimpleRange:attributed:]): Deleted.
(-[WebAccessibilityObjectWrapper lineRectsAndText]): Deleted.
* accessibility/mac/WebAccessibilityObjectWrapperBase.h:
* accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
(-[WebAccessibilityObjectWrapperBase _prepareAccessibilityCall]):
(addObjectWrapperToArray):
(blockquoteLevel):
(AXAttributeStringSetLanguage):
(AXAttributeStringSetBlockquoteLevel):
(AXAttributeStringSetHeadingLevel):
(AXAttributeStringSetFont):
(AXAttributeStringSetNumber):
(AXAttributeStringSetStyle):
(AXAttributedStringAppendText):
(-[WebAccessibilityObjectWrapperBase contentForSimpleRange:attributed:]):
(-[WebAccessibilityObjectWrapperBase lineRectsAndText]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
Added handling of the attribute "AXLineRectsAndText".

Tools:

* WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
(WTR::AccessibilityUIElement::attributedStringForElement):
(WTR::AccessibilityUIElement::lineRectsAndText const):
* WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
(WTR::AccessibilityUIElement::lineRectsAndText const):

LayoutTests:

* accessibility/element-line-rects-and-text.html: Renamed from LayoutTests/accessibility/ios-simulator/element-line-rects-and-text.html.
* platform/ios/TestExpectations:
* platform/ios/accessibility/element-line-rects-and-text-expected.txt: Renamed from LayoutTests/accessibility/ios-simulator/element-line-rects-and-text-expected.txt.
* platform/mac/accessibility/element-line-rects-and-text-expected.txt: Added.
* platform/mac-wk1/TestExpectations:
* platform/win/TestExpectations:


Canonical link: https://commits.webkit.org/240567@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-16 21:04:19 +00:00
..
abbreviation-expected.txt AX: Support abbreviations in iOS 2016-08-17 18:01:41 +00:00
abbreviation.html AX: Support abbreviations in iOS 2016-08-17 18:01:41 +00:00
accessibility-aria-table-children-expected.txt
accessibility-aria-table-children.html
accessibility-crash-in-axcontainer-expected.txt Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/ 2015-08-04 22:52:42 +00:00
accessibility-crash-in-axcontainer.html
accessibility-events-setting-expected.txt AX: AOM: respect the accessibility setting for dispatching the accessible events 2018-04-19 17:36:40 +00:00
accessibility-events-setting.html AX: AOM: respect the accessibility setting for dispatching the accessible events 2018-04-19 17:36:40 +00:00
accessibility-hint-expected.txt
accessibility-hint.html
aria-details-expected.txt AX: Consider implementing @aria-details. 2021-03-25 23:35:20 +00:00
aria-details.html AX: Consider implementing @aria-details. 2021-03-25 23:35:20 +00:00
aria-errormessage-expected.txt WebAccessibilityObjectWrapper method to retrieve related error message elements should return not-ignored accessibility elements. 2021-03-01 21:09:47 +00:00
aria-errormessage.html WebAccessibilityObjectWrapper method to retrieve related error message elements should return not-ignored accessibility elements. 2021-03-01 21:09:47 +00:00
aria-label-with-internal-text-expected.txt
aria-label-with-internal-text.html
aria-pressed-state-expected.txt AX: aria-pressed state not correctly conveyed to VoiceOver iOS on <button> unless role=button added 2016-09-22 15:14:27 +00:00
aria-pressed-state.html AX: aria-pressed state not correctly conveyed to VoiceOver iOS on <button> unless role=button added 2016-09-22 15:14:27 +00:00
aria-sort-ios-expected.txt Descendants of row and column headers should expose the aria-sort attribute. 2021-02-10 01:19:33 +00:00
aria-sort-ios.html Descendants of row and column headers should expose the aria-sort attribute. 2021-02-10 01:19:33 +00:00
attributed-string-for-element-expected.txt AX: [iOS] add support to return the attributed string under the element 2018-08-02 23:54:45 +00:00
attributed-string-for-element.html AX: [iOS] add support to return the attributed string under the element 2018-08-02 23:54:45 +00:00
attributed-string-for-range-expected.txt AX: VoiceOver Unable to View Download Progress or Completion Status for Mail Attachments 2016-06-10 06:06:08 +00:00
attributed-string-for-range.html [Testing] Rename test header commands to match names in WebPreferences*.yaml 2020-10-13 17:16:15 +00:00
blockquote-level-expected.txt AX: Expose block quote level to iOS API 2017-01-02 09:02:12 +00:00
blockquote-level.html AX: Expose block quote level to iOS API 2017-01-02 09:02:12 +00:00
button-with-aria-haspopup-role-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
button-with-aria-haspopup-role.html Enhance support of aria-haspopup per ARIA 1.1 specification. 2019-07-02 20:24:24 +00:00
centerpoint-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
centerpoint.html
checked-status-tree-items-expected.txt AX: VoiceOver does not announce the aria-checked state for ARIA treeitem 2020-12-02 00:55:04 +00:00
checked-status-tree-items.html AX: VoiceOver does not announce the aria-checked state for ARIA treeitem 2020-12-02 00:55:04 +00:00
color-well-expected.txt AX: Support color well on iOS 2019-01-30 15:10:36 +00:00
color-well.html AX: Support color well on iOS 2019-01-30 15:10:36 +00:00
definition-list-expected.txt AX: iOS VoiceOver should support definition lists 2020-07-10 19:56:28 +00:00
definition-list.html AX: iOS VoiceOver should support definition lists 2020-07-10 19:56:28 +00:00
detail-summary-ios-expected.txt AX: Add accessibility support for details element on iOS 2016-09-19 18:32:21 +00:00
detail-summary-ios.html AX: Add accessibility support for details element on iOS 2016-09-19 18:32:21 +00:00
dialog-did-become-focused-expected.txt AX: AppleVisUser: VO can't navigate web dialogs iOS10 2016-09-21 00:27:38 +00:00
dialog-did-become-focused.html AX: AppleVisUser: VO can't navigate web dialogs iOS10 2016-09-21 00:27:38 +00:00
disabled-states-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
disabled-states.html
element-haspopup-expected.txt Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. 2019-06-22 18:59:18 +00:00
element-haspopup.html Accessibility objects contained in links should honor the aria-haspopup attribute in the ancestor link. 2019-06-22 18:59:18 +00:00
element-in-table-cell-expected.txt Add accessibility object method to determine whether an element is inside a table cell. Needed for iOS accessibility client. 2019-08-02 19:10:02 +00:00
element-in-table-cell.html Add accessibility object method to determine whether an element is inside a table cell. Needed for iOS accessibility client. 2019-08-02 19:10:02 +00:00
element-paths-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
element-paths.html
element-text-range-for-text-control-expected.txt AX: VoiceOver no longer works corectly with editable text in the web 2017-03-17 19:48:36 +00:00
element-text-range-for-text-control.html AX: VoiceOver no longer works corectly with editable text in the web 2017-03-17 19:48:36 +00:00
fieldset-traits-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
fieldset-traits.html AX: add a new trait for elements in fieldset on iOS 2015-11-14 09:39:28 +00:00
figure-element-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
figure-element.html Support accessibility for <figure> element on iOS. 2019-09-27 22:15:21 +00:00
file-upload-button-expected.txt
file-upload-button.html
focus-change-notifications-expected.txt
focus-change-notifications.html Many accessibility js-tests use waitUntilDone 2017-05-19 23:37:59 +00:00
form-control-validation-message-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
form-control-validation-message.html Unreviewed, fix typo in r238066. 2018-11-10 19:52:32 +00:00
has-touch-event-listener-expected.txt VoiceOver not able to invoke play button on some web sites. 2020-08-14 05:33:38 +00:00
has-touch-event-listener-with-shadow-expected.txt Source/WebCore: 2020-03-19 17:45:37 +00:00
has-touch-event-listener-with-shadow.html Remove unused JS and CSS files of media controls 2021-03-22 22:17:49 +00:00
has-touch-event-listener.html VoiceOver not able to invoke play button on some web sites. 2020-08-14 05:33:38 +00:00
header-elements-expected.txt
header-elements.html Some test cases in accessibility/mac/selection-notification-focus-change.html fail 2018-02-01 23:11:13 +00:00
heading-text-updates-expected.txt iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data. 2021-06-10 00:11:41 +00:00
heading-text-updates.html iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data. 2021-06-10 00:11:41 +00:00
heading-with-aria-label-expected.txt AX: iOS, Wrong axLabel on static text if heading has multiple children 2016-08-19 19:23:30 +00:00
heading-with-aria-label.html
identifier-expected.txt
identifier.html
iframe-access-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
iframe-access.html WebKit doesn't parse "#" as delimiter for fragment identifier in data URIs 2020-10-05 19:36:22 +00:00
image-overlay-elements-expected.txt Accessibility support for image text recognition. 2021-06-23 16:59:34 +00:00
image-overlay-elements.html Accessibility support for image text recognition. 2021-06-23 16:59:34 +00:00
img-with-svg-source-expected.txt AX: @alt and bounds ignored when using img[src] points to an inaccessible SVG 2021-01-25 16:52:52 +00:00
img-with-svg-source.html AX: @alt and bounds ignored when using img[src] points to an inaccessible SVG 2021-01-25 16:52:52 +00:00
input-type-time-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
input-type-time.html AX: iOS Voiceover does not announce previously selected value from input type="date" form field 2016-10-31 17:18:19 +00:00
internal-link-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
internal-link.html Accessibility client cannot navigate to internal links targets on iOS. 2019-08-11 03:46:10 +00:00
ios-search-predicate-expected.txt AX: enable search predication for iOS 2017-01-31 08:07:49 +00:00
ios-search-predicate-link-children-expected.txt AX: Expose link children when doing search predication on iOS 2017-04-03 23:06:25 +00:00
ios-search-predicate-link-children.html AX: Expose link children when doing search predication on iOS 2017-04-03 23:06:25 +00:00
ios-search-predicate.html AX: enable search predication for iOS 2017-01-31 08:07:49 +00:00
landmark-type-expected.txt AX: <footer> HTML5 tag not reading as ARIA Landmark to VoiceOver 2019-02-25 19:15:23 +00:00
landmark-type.html AX: <footer> HTML5 tag not reading as ARIA Landmark to VoiceOver 2019-02-25 19:15:23 +00:00
link-with-images-text-expected.txt
link-with-images-text.html
link-with-only-image-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
link-with-only-image.html
links-activation-expected.txt Hitpoint for link which spans two lines in web content is incorrect 2019-05-06 22:33:52 +00:00
links-activation.html Hitpoint for link which spans two lines in web content is incorrect 2019-05-20 17:24:20 +00:00
math-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
math.html
menuitem-checked-expected.txt AX: VoiceOver on iOS ignores aria-checked on menuitemradio and menuitemcheckbox 2016-08-24 22:25:17 +00:00
menuitem-checked.html AX: VoiceOver on iOS ignores aria-checked on menuitemradio and menuitemcheckbox 2016-08-24 22:25:17 +00:00
mixed-checkboxes-expected.txt
mixed-checkboxes.html
no-child-link-header-expected.txt
no-child-link-header.html
non-contiguous-link-expected.txt
non-contiguous-link.html
non-textcontrol-set-selection-expected.txt AX: Need method for setting selected range from NSRange 2020-04-16 18:37:27 +00:00
non-textcontrol-set-selection.html AX: Need method for setting selected range from NSRange 2020-04-16 18:37:27 +00:00
out-of-bounds-child-access-expected.txt Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/ 2015-08-04 22:52:42 +00:00
out-of-bounds-child-access.html
password-value-expected.txt
password-value.html
placeholder-value-expected.txt
placeholder-value.html
popup-button-value-label-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
popup-button-value-label.html
press-fires-touch-events-expected.txt AX: Simulated touch events are not working on iOS 2016-08-03 02:38:35 +00:00
press-fires-touch-events.html AX: Simulated touch events are not working on iOS 2016-08-03 02:38:35 +00:00
progressbar-expected.txt
progressbar.html
radio-button-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
radio-button.html
role-switch-expected.txt AX: Role=switch not returning correct accessibilityValue 2019-01-30 15:07:05 +00:00
role-switch.html AX: Role=switch not returning correct accessibilityValue 2019-01-30 15:07:05 +00:00
scroll-in-overflow-div-expected.txt Replace the multiple WebAccessibilityObjectWrapperIOS postXXXNotification methods with a single postNotification method. 2021-03-04 02:31:17 +00:00
scroll-in-overflow-div.html Replace the multiple WebAccessibilityObjectWrapperIOS postXXXNotification methods with a single postNotification method. 2021-03-04 02:31:17 +00:00
secure-text-field-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
secure-text-field.html
selected-buttons-expected.txt
selected-buttons.html
selected-text-expected.txt Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/ 2015-08-04 22:52:42 +00:00
selected-text.html
set-selected-text-range-after-newline-expected.txt Inserting a newline in contenteditable causes two characters to be added instead of one 2019-05-31 00:02:59 +00:00
slider-min-value-crash-expected.txt AX: Crash at -[WebAccessibilityObjectWrapper _accessibilityMinValue] + 24 2017-10-24 07:25:08 +00:00
slider-min-value-crash.html AX: Crash at -[WebAccessibilityObjectWrapper _accessibilityMinValue] + 24 2017-10-24 07:25:08 +00:00
speak-selection-content-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
speak-selection-content.html AX: Speak Selection does not work in an iframe 2017-01-24 20:44:38 +00:00
spinbutton-expected.txt AX: voiceover does not read contents of input role="spinbutton" 2016-09-20 20:44:26 +00:00
spinbutton.html AX: voiceover does not read contents of input role="spinbutton" 2016-09-20 20:44:26 +00:00
strong-password-field-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
strong-password-field.html Remove Strong Confirmation Password button 2018-07-06 16:29:40 +00:00
svg-group-element-with-title-expected.txt
svg-group-element-with-title.html
svg-path-crash-expected.txt Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/ 2015-08-04 22:52:42 +00:00
svg-path-crash.html
tab-role-expected.txt
tab-role.html
table-ancestory-expected.txt AX: iOS: VO: Web: Column Names Not Announced 2021-01-25 12:28:27 +00:00
table-ancestory.html AX: iOS: VO: Web: Column Names Not Announced 2021-01-25 12:28:27 +00:00
table-cell-for-row-col-expected.txt
table-cell-for-row-col.html Some test cases in accessibility/mac/selection-notification-focus-change.html fail 2018-02-01 23:11:13 +00:00
table-cell-ranges-expected.txt
table-cell-ranges.html
table-row-column-headers-expected.txt AX: VoiceOver not announcing the right header information for table on iOS 2016-03-30 02:02:47 +00:00
table-row-column-headers.html AX: VoiceOver not announcing the right header information for table on iOS 2016-03-30 02:02:47 +00:00
tables-lists-expected.txt AX: iOS: VO: Web: Column Names Not Announced 2021-01-25 12:28:27 +00:00
tables-lists.html AX: iOS: VO: Web: Column Names Not Announced 2021-01-25 12:28:27 +00:00
text-context-attributes-expected.txt AX: Certain tags should identify their context to iOS API 2018-10-17 17:52:15 +00:00
text-context-attributes.html AX: Certain tags should identify their context to iOS API 2018-10-17 17:52:15 +00:00
text-line-no-ignored-elements-expected.txt Fix for [WebAccessibilityObjectWrapper lineRectsAndText] to properly handle replacement nodes and SVG text. 2021-08-02 14:43:14 +00:00
text-line-no-ignored-elements.html Fix for [WebAccessibilityObjectWrapper lineRectsAndText] to properly handle replacement nodes and SVG text. 2021-08-02 14:43:14 +00:00
text-marker-list-item-expected.txt Inserting a newline in contenteditable causes two characters to be added instead of one 2019-05-31 00:02:59 +00:00
text-marker-list-item.html
text-marker-range-for-line-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
text-marker-range-for-line.html AX: Add test for line text marker range on iOS 2016-08-24 18:12:36 +00:00
text-marker-range-matches-text-expected.txt AX: [iOS] Implement a way to retrieve a text marker range with desired text that is closest to a position 2017-07-12 22:20:43 +00:00
text-marker-range-matches-text.html AX: [iOS] Implement a way to retrieve a text marker range with desired text that is closest to a position 2017-07-12 22:20:43 +00:00
text-marker-validation-expected.txt
text-marker-validation.html
text-rects-for-range-matches-expected.txt AX: textRectsFromMarkers always fails 2021-04-02 17:41:48 +00:00
text-rects-for-range-matches.html AX: textRectsFromMarkers always fails 2021-04-02 17:41:48 +00:00
text-role-expected.txt
text-role.html
textentry-traits-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
textentry-traits.html AX: iOS: Text field variations do not have the correct traits 2015-12-14 21:12:22 +00:00
textfield-in-axvalue-expected.txt
textfield-in-axvalue.html
toggle-button-expected.txt AX: VoiceOver does not announce the aria-checked state for ARIA treeitem 2020-12-02 00:55:04 +00:00
toggle-button.html
treeitem-expanded-expected.txt AX: ARIA tree & treeitem roles & aria-expanded state not spoken to VoiceOver iOS 10 2016-11-30 04:38:28 +00:00
treeitem-expanded.html AX: ARIA tree & treeitem roles & aria-expanded state not spoken to VoiceOver iOS 10 2016-11-30 04:38:28 +00:00
unobscured-content-rect-expected.txt [iOS][FCR] Add borders for better control visibility 2021-04-27 20:28:09 +00:00
unobscured-content-rect.html [iOS][FCR] Add borders for better control visibility 2021-04-27 20:28:09 +00:00
video-elements-ios-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
video-elements-ios.html REGRESSION (r247891): Layout Test accessibility/ios-simulator/video-elements-ios.html is failing 2019-07-29 19:56:55 +00:00