From f09f516ac149a723d3b00b8ecc746c12eb970465 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Mon, 2 Jan 2023 16:59:10 +0100 Subject: [PATCH] tests: skip tst_QComboBox::cancelClosesPopupNotDialog() on Wayland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QWindow::requestActivate() is not supported. This amends c95de359b4fe7bc03f7defdb057ebbe79c51b3dd. Task-number: QTBUG-107153 Pick-to: 6.5 6.4 Change-Id: I45f53b5e9de85049ca41cc139a78a82450f53bed Reviewed-by: Tor Arne Vestbø --- tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp index 4bbf8f7b5c..337a7fecaa 100644 --- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp @@ -8,6 +8,7 @@ #include "qcombobox.h" #include #include +#include #include #include @@ -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"});