java a11y tests: Don't rely on specific implementation name

Adjust the AccessibleDropDownComboBox Java a11y
test to not rely on the object implementing
the logic to report a service name containing
"AccessibleDropDownComboBox".
The fact that VCLXAccessibleDropDownComboBox
currently does so is an implementation detail
that will change in an upcoming commit.

Change-Id: Ife12f14cb48b039379ddca2d9c32eedbfdefefcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200967
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-03-05 11:19:34 +01:00
parent 4b4aca0609
commit a5ce4fa904
@@ -78,10 +78,7 @@ public class AccessibleDropDownComboBox extends TestCase {
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX,
"", "AccessibleDropDownComboBox");
log.println("ImplementationName " + utils.getImplName(oObj));
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX);
TestEnvironment tEnv = new TestEnvironment(oObj);
@@ -120,4 +117,4 @@ public class AccessibleDropDownComboBox extends TestCase {
protected void cleanup(TestParameters Param, PrintWriter log) {
util.DesktopTools.closeDoc(xTextDoc);
}
}
}