| Summary: | AX: Simplify tests changed in https://bugs.webkit.org/show_bug.cgi?id=233085 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> | ||||||
| Component: | Accessibility | Assignee: | Tyler Wilcock <tyler_w> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Tyler Wilcock
2021-11-15 20:31:46 PST
Created attachment 444337 [details]
Patch
(In reply to Tyler Wilcock from comment #2) > Created attachment 444337 [details] > Patch --- a/LayoutTests/accessibility/mac/header.html +++ a/LayoutTests/accessibility/mac/header.html + function expectRole(expectedRole, expectedDescription, id) { + shouldBeEqualToString(`accessibilityController.accessibleElementById("${id}").role`, "AXRole: " + expectedRole); + shouldBeEqualToString(`accessibilityController.accessibleElementById("${id}").roleDescription`, "AXRoleDescription: " + expectedDescription); Can we do `AXRole: ${expectedRole}` and `AXRoleDescription: ${expectedDescription}` in the second params of the shouldBes? Created attachment 444376 [details]
Patch
Committed r285874 (244300@main): <https://commits.webkit.org/244300@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444376 [details]. |