From 65d9b48a70b295eb239fe68e3c5c103546a71d86 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Mon, 3 Oct 2022 12:58:37 +0200 Subject: tests: skip tst_QDialog::showAsTool() on Wayland QWindow::requestActivate() is not supported. Task-number: QTBUG-107153 Pick-to: 6.4 6.2 Change-Id: Id8f9cc1d6a29b4d608a080f5b40a5369d7bd8da9 Reviewed-by: Eskil Abrahamsen Blomfeldt --- tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/widgets/dialogs') diff --git a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp index b4343d8d17..1f8eacee0d 100644 --- a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp +++ b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp @@ -286,6 +286,10 @@ void tst_QDialog::showAsTool() { if (QStringList{"xcb", "offscreen"}.contains(QGuiApplication::platformName())) QSKIP("activeWindow() is not respected by all Xcb window managers and the offscreen plugin"); + + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation)) + QSKIP("QWindow::requestActivate() is not supported."); + DummyDialog testWidget; testWidget.resize(200, 200); testWidget.setWindowTitle(QTest::currentTestFunction()); -- cgit v1.2.3