3b82c2d167
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>
48 lines
1.5 KiB
CMake
48 lines
1.5 KiB
CMake
# Generated from other.pro.
|
|
|
|
if(NOT CMAKE_CROSSCOMPILING)
|
|
# add_subdirectory(atwrapper) <- does not exist # special case
|
|
endif()
|
|
if(TARGET Qt::Widgets)
|
|
add_subdirectory(gestures)
|
|
add_subdirectory(languagechange)
|
|
add_subdirectory(qfocusevent)
|
|
add_subdirectory(qsharedpointer_and_qwidget)
|
|
# add_subdirectory(windowsmobile) <- does not exist # special case
|
|
endif()
|
|
if(TARGET Qt::Network AND TARGET Qt::Widgets)
|
|
add_subdirectory(qnetworkaccessmanager_and_qprogressdialog)
|
|
endif()
|
|
if(MACOS AND TARGET Qt::Gui AND TARGET Qt::Widgets)
|
|
add_subdirectory(macgui)
|
|
add_subdirectory(macplist)
|
|
add_subdirectory(qaccessibilitymac)
|
|
endif()
|
|
if(TARGET Qt::Network)
|
|
add_subdirectory(networkselftest)
|
|
endif()
|
|
if(QT_FEATURE_accessibility AND TARGET Qt::Gui AND TARGET Qt::Widgets)
|
|
add_subdirectory(qaccessibility)
|
|
endif()
|
|
if(TARGET Qt::Gui)
|
|
add_subdirectory(qcomplextext)
|
|
endif()
|
|
add_subdirectory(qobjectrace)
|
|
add_subdirectory(toolsupport)
|
|
# QTBUG-87670 # special case
|
|
if(QT_FEATURE_process AND TARGET Qt::Gui AND NOT ANDROID)
|
|
add_subdirectory(qprocess_and_guieventloop)
|
|
endif()
|
|
if(QT_FEATURE_accessibility_atspi_bridge AND TARGET Qt::Gui AND TARGET Qt::Widgets)
|
|
#add_subdirectory(qaccessibilitylinux) # special case # This test is broken
|
|
endif()
|
|
if(MACOS AND TARGET Qt::Gui)
|
|
# add_subdirectory(macnativeevents) # special case it's disabled in qmake too
|
|
endif()
|
|
if(embedded)
|
|
add_subdirectory(qdirectpainter)
|
|
endif()
|
|
if(QT_FEATURE_xkbcommon AND TARGET Qt::Gui)
|
|
add_subdirectory(xkbkeyboard)
|
|
endif()
|