From f334a22eaeb025ac147f2a88642d50b488d9a743 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 7 Apr 2023 12:13:50 +0200 Subject: QAccessible test: skip focusChild on wayland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test implicitly relies on window activation as QWidget only emits accessibility events for focus changes in the active window. So skip it on platforms that don't support WindowActivation and remove it from the blacklist. Fixes: QTBUG-109763 Pick-to: 6.5 Change-Id: I67d9a95f4f36b5271fe53ae90140a28770566c83 Reviewed-by: Tor Arne Vestbø --- tests/auto/other/qaccessibility/BLACKLIST | 3 --- tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 tests/auto/other/qaccessibility/BLACKLIST (limited to 'tests/auto/other') diff --git a/tests/auto/other/qaccessibility/BLACKLIST b/tests/auto/other/qaccessibility/BLACKLIST deleted file mode 100644 index 5b862380b9..0000000000 --- a/tests/auto/other/qaccessibility/BLACKLIST +++ /dev/null @@ -1,3 +0,0 @@ -[focusChild] -# QTBUG-109763 -wayland diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index 8c51022416..bc19ca4470 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -4156,6 +4156,9 @@ private: void tst_QAccessibility::focusChild() { + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation)) + QSKIP("Platform does not support window activation"); + { QMainWindow mainWindow; QtTestAccessibleWidget *widget1 = new QtTestAccessibleWidget(0, "Widget1"); -- cgit v1.2.3