Java a11y test not executed
Hossein Nourikhah
hossein at libreoffice.org
Sat Jan 20 19:10:21 UTC 2024
Hello Michael,
For me it works fine on Ubuntu, but fails on Windows. But as, first: CI
build is fine on Windows and elsewhere, and second: porting to C++ is
the ultimate goal, I'll merge the patch.
Regards,
Hossein
On 19.01.2024 10:39, Michael Weghorn wrote:
> On 2024-01-18 19:41, Hossein Nourikhah wrote:
>> This can be seen in:
>> https://gerrit.libreoffice.org/c/core/+/162263
>>
>> Unfortunately, the test fails for me.
>
> On what system does that fail for you?
>
> Interestingly, running `make JunitTest_sw_complex` succeeds for me on
> Debian testing with your above-mentioned change in place.
>
>
> And the test is actually run, since it fails as expected for me when I
> add an additional assert for the opposite:
>
> diff --git
> a/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
> b/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
> index 347552d36f92..b95bc7f40c55 100644
> --- a/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
> +++ b/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
> @@ -80,6 +80,7 @@ public class CheckIndeterminateState {
> long oSet = oContext.getAccessibleStateSet();
>
> assertTrue("The 'INDETERMINATE' state is not set.", (oSet &
> AccessibleStateType.INDETERMINATE) != 0);
> + assertTrue("The 'INDETERMINATE' state is set.", (oSet &
> AccessibleStateType.INDETERMINATE) == 0);
> }
>
> @Before public void setUpDocument() throws
> com.sun.star.uno.Exception {
More information about the LibreOffice
mailing list