Java a11y test not executed

Michael Weghorn m.weghorn at posteo.de
Fri Jan 19 09:39:09 UTC 2024


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 {

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20240119/c43e2322/attachment.sig>


More information about the LibreOffice mailing list