qt5base-lts/tests/auto/other
Ivan Solovev 3b82c2d167 Fix tst_qaccessibility on Android
On Android we had 10 failing unit-tests in tst_qaccessibility

One of them was failing because on Android QMdiSubWindow is created
maximized by default, so we need to explicitly call showNormal() on
it before doing all the checks.

Other 9 were failing because we didn't get A11Y events when expected.
This is a bit more tricky.
On Android a11y state is not explicitly set by calling
QPlatformAccessibility::setActive(), there is another flag that is
controller from the Java side. It is set to 'true' only when some
of the a11y services are enabled on the device. The state of this
flag is queried during event processing, so a11y state can be reset
to false while we do QTest::qWait().
This logic is absolutely correct for real applications, but it is
a problem for the test case, because we can't easily enable a11y
services in the CI.
To overcome the issue in unit-tests, re-enable a11y before each test.
A more precise fix will require re-enabling it after every qWait() or
processEvents() call, but the current tests pass with such condition.

Fixes: QTBUG-87674
Pick-to: 6.3 6.2
Change-Id: I6f765bc6d3aaeaa19aba3a64473ea25e9cbdb0f8
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-02-25 13:52:33 +01:00
..
android Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00
gestures Extend blacklisting of tst_gestures including all RHEL's 2021-04-13 08:20:48 +03:00
languagechange Remove the qmake project files 2021-01-07 15:32:28 +01:00
macgui Remove QEXPECT_FAIL from passing test 2021-03-31 10:20:07 +02:00
macnativeevents Remove the qmake project files 2021-01-07 15:32:28 +01:00
macplist Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
networkselftest Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qabstractitemmodelutils Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qaccessibility Fix tst_qaccessibility on Android 2022-02-25 13:52:33 +01:00
qaccessibilitylinux Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qaccessibilitymac Stabilize tst_QAccessibilityMac 2021-11-26 14:22:05 +01:00
qcomplextext Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfocusevent QPA: Set focus reason when window activation changes focus 2021-12-03 08:15:29 +01:00
qnetworkaccessmanager_and_qprogressdialog Remove the qmake project files 2021-01-07 15:32:28 +01:00
qobjectrace Fix crash in concurrent disconnect 2021-06-17 08:56:22 +02:00
qprocess_and_guieventloop Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qsharedpointer_and_qwidget tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qvariant_common Split up the QMetaType unit test 2021-02-09 14:27:20 +01:00
sessionmanagement_macos Remove the qmake project files 2021-01-07 15:32:28 +01:00
toolsupport QIODevice: use QVLA to hold the ring buffers, not QList 2021-12-15 17:35:13 +00:00
xkbkeyboard Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Fix tst_qaccessibility on Android 2022-02-25 13:52:33 +01:00