From 52484cc4b6696c8a5c1f69125d81eb0cede8cdb2 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Fri, 11 Oct 2019 15:21:54 +0200 Subject: Widget tests: Skip tests that fail on Wayland Either by testing for platform name or window activation. After this gets in, we can enable widget tests in the Wayland bot, which hopefully will reduce the number of regressions in the Wayland plugin. Fixes: QTBUG-62188 Change-Id: I71ce8abd6b5891e5b953126b1c35345892585931 Reviewed-by: Paul Olav Tvete --- tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/auto/widgets/dialogs/qfiledialog') diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp index 2131e45f29..029738652e 100644 --- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp @@ -57,6 +57,7 @@ #endif #include #include +#include #include #include @@ -1129,6 +1130,8 @@ void tst_QFiledialog::setNameFilter() void tst_QFiledialog::focus() { + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation)) + QSKIP("Window activation is not supported"); QFileDialog fd; fd.setDirectory(QDir::currentPath()); fd.show(); @@ -1550,6 +1553,9 @@ public slots: void tst_QFiledialog::rejectModalDialogs() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This freezes. Figure out why."); + // QTBUG-38672 , static functions should return empty Urls DialogRejecter dr; @@ -1609,6 +1615,9 @@ public: void tst_QFiledialog::focusObjectDuringDestruction() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This freezes. Figure out why."); + QTRY_VERIFY(QGuiApplication::topLevelWindows().isEmpty()); qtbug57193DialogRejecter dialogRejecter; -- cgit v1.2.3