Additional Testing for UiaTextRange #6222

Open
opened 2026-01-31 00:32:46 +00:00 by claunia · 0 comments
Owner

Originally created by @carlos-zamora on GitHub (Jan 30, 2020).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature/enhancement

After #4018, more tests were added to UiaTextRange. However, there are still gaps in our testing and they require some more thought and additional refactoring. Here's some that I have in mind:

  • MoveByWord
  • MoveEndpointByUnitWord
  • FindText
  • GetBoundingRectangles
  • GetText

The word navigation tests are currently relying more on the tests within TextBuffer. So they might not need to be as cumbersome.

FindText relies on our search module so that also isn't a high priority.

This is more of an opportunity to compare our accessibility model to others' and make sure we're not doing anything wonky (and preventing us from getting to that point).

These new tests also serve as a good opportunity to use TEST_METHOD_PROPERTY. Ideally, we could just have a standard set of tests across all text units and just iterate through those units.

Originally created by @carlos-zamora on GitHub (Jan 30, 2020). Originally assigned to: @carlos-zamora on GitHub. # Description of the new feature/enhancement After #4018, more tests were added to UiaTextRange. However, there are still gaps in our testing and they require some more thought and additional refactoring. Here's some that I have in mind: - [x] `MoveByWord` - [x] `MoveEndpointByUnitWord` - [ ] `FindText` - [ ] `GetBoundingRectangles` - [ ] `GetText` The word navigation tests are currently relying more on the tests within `TextBuffer`. So they might not need to be as cumbersome. FindText relies on our search module so that also isn't a high priority. This is more of an opportunity to compare our accessibility model to others' and make sure we're not doing anything wonky (and preventing us from getting to that point). These new tests also serve as a good opportunity to use `TEST_METHOD_PROPERTY`. Ideally, we could just have a standard set of tests across all text units and just iterate through those units.
claunia added the Issue-TaskProduct-TerminalArea-AccessibilityArea-CodeHealth labels 2026-01-31 00:32:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6222