QAccessible test: skip focusChild on wayland

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ø <tor.arne.vestbo@qt.io>
This commit is contained in:
Volker Hilsheimer 2023-04-07 12:13:50 +02:00
parent 3c83b3c010
commit f334a22eae
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +0,0 @@
[focusChild]
# QTBUG-109763
wayland

View File

@ -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");