summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-03-02 13:10:19 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-03-18 07:58:42 +0100
commitd860aaa200c3bb3b6df5a3fbb5580f7f020e97d5 (patch)
treecb08cf04e116673b32240c1230cc0e113af91b0f /tests/auto/other/qaccessibility/tst_qaccessibility.cpp
parent63a0d263cf233ddf85a60678829298b50e8d1f26 (diff)
Disable two tests in tst_QAccessibility on Wayland
These two tests (applicationTest() and mainWindowTest()) require QApplication::setActiveWindow() to work, which it does not on Wayland. Task-number: QTBUG-91418 Change-Id: I0e7b4e24050684b437de63d19bd885bab53d36b9 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'tests/auto/other/qaccessibility/tst_qaccessibility.cpp')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index 1d189bdce2..b63092852a 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -864,6 +864,9 @@ void tst_QAccessibility::actionTest()
void tst_QAccessibility::applicationTest()
{
+ if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
+ QSKIP("Platform does not support window activation");
+
{
QLatin1String name = QLatin1String("My Name");
qApp->setApplicationName(name);
@@ -906,6 +909,9 @@ void tst_QAccessibility::applicationTest()
void tst_QAccessibility::mainWindowTest()
{
+ if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
+ QSKIP("Platform does not support window activation");
+
{
QMainWindow *mw = new QMainWindow;
mw->resize(300, 200);