tests: skip tst_QComboBox::cancelClosesPopupNotDialog() on Wayland

QWindow::requestActivate() is not supported.

This amends c95de359b4.

Task-number: QTBUG-107153
Pick-to: 6.5 6.4
Change-Id: I45f53b5e9de85049ca41cc139a78a82450f53bed
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Liang Qi 2023-01-02 16:59:10 +01:00
parent 71e67dec95
commit f09f516ac1

View File

@ -8,6 +8,7 @@
#include "qcombobox.h"
#include <private/qcombobox_p.h>
#include <private/qguiapplication_p.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformtheme.h>
#include <qfontcombobox.h>
@ -3642,6 +3643,9 @@ void tst_QComboBox::cancelClosesPopupNotDialog()
if (QGuiApplication::platformName() == "offscreen")
QSKIP("The offscreen platform plugin doesn't activate popups.");
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
QSKIP("QWindow::requestActivate() is not supported.");
QDialog dialog;
QComboBox combobox;
combobox.addItems({"A", "B", "C"});