Add some more failure information

...which will hopefully give more of a clue than when
<https://ci.libreoffice.org/job/lo_tb_master_linux_dbg/40847/> recently failed
JunitTest_starmath_unoapi with just

> checking: [sm.SmEditAccessible::com::sun::accessibility::XAccessibleComponent] is iface: [com.sun.star.accessibility.XAccessibleComponent] testcode:
[...]
> LOG> Execute: getAccessibleAtPoint()
> LOG> Checking child with bounds (0,0),(2,18): 41,(Paragraph: 0 ):
> LOG> 	StateType containsPoint SHOWING: true
> LOG> finding the point which lies on the component
> LOG> Child found at point (1,9) - OK
> LOG> The children found is not the same
> LOG> Expected:
> LOG> Description:  Paragraph: 0 sum hat a
> LOG> Found:
> LOG> Description:  Paragraph: 0 sum hat a
> LOG> ... FAILED
> LOG> No children found at point (-1,-1) - OK
> Method getAccessibleAtPoint() finished with state FAILED
> LOG> getAccessibleAtPoint(): COMPLETED.FAILED
[...]
> ***** State for sm.SmEditAccessible::com::sun::accessibility::XAccessibleComponent ******
> [sm.SmEditAccessible::com::sun::accessibility::XAccessibleComponent::getAccessibleAtPoint()] is testcode: [getAccessibleAtPoint()] - COMPLETED.FAILED
>
> Whole interface: COMPLETED.FAILED

Change-Id: I5015e7a9d94bb838c6331ff9e74a6aec858d148a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143496
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2022-11-30 15:04:22 +01:00
parent 6c804273e9
commit 12d8dc31b0

View file

@ -337,6 +337,9 @@ public class _XAccessibleComponent extends MultiMethodTest {
if (MightBeCovered) {
log.println("... Child is covered by another - OK");
} else {
log.println(
"(xAccCh==null: " + (xAccCh == null) + "; expIndex: " + expIndex
+ "; gotIndex: " + gotIndex + ")");
log.println("... FAILED");
result = false;
}