From d860aaa200c3bb3b6df5a3fbb5580f7f020e97d5 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 2 Mar 2021 13:10:19 +0100 Subject: [PATCH] Disable two tests in tst_QAccessibility on Wayland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tony Sarajärvi --- tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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);