diff options
author | Colomban Wendling <cwendling@hypra.fr> | 2022-11-03 15:39:38 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-03-03 10:49:20 +0000 |
commit | 7801b5f7562a8d1660053a2745b4f6e97b555bb2 (patch) | |
tree | 695840a55f9bea2be27de9fe9d0898522471872d /icon-themes | |
parent | be86c74bb5bf04347846261243c8eb21dc8d7200 (diff) |
test: Add helpers to get a specific object and tab to it
Add a tabTo() variant that accepts a target object that should gain
focus. This is useful to work around focus issues in the implementation
(although they should be reported and fixed), and it's a simpler and
more efficient API if the caller happens to already have a reference to
the target object.
This also adds AccessibilityTools::getAccessibleObjectForName() as a
usually more useful alternative to
AccessibilityTools::getAccessibleObjectForRole() as it allows to easily
match both role and name. There is also a template version accepting
multiple role and name pairs to further refine the selected object.
Together, it makes it easy to obtain the target object and tab to it,
in situations where the other tabTo() variant either doesn't work for
some reason (as mentioned above), or is not the slickest solution.
Change-Id: I6a41b147331132711ac84776bb43ad24a091ba24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142260
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'icon-themes')
0 files changed, 0 insertions, 0 deletions