diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-11 15:21:54 +0200 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-18 10:53:34 +0200 |
commit | 52484cc4b6696c8a5c1f69125d81eb0cede8cdb2 (patch) | |
tree | 4d5b0d4135104a7a623325fb761b615760630b98 /tests/auto/widgets/kernel/qwidget_window | |
parent | dce8849037ee079d6b09dd4022aa80aa670caccd (diff) |
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 <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget_window')
-rw-r--r-- | tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp b/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp index c6b5669965..7d114fde56 100644 --- a/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp +++ b/tests/auto/widgets/kernel/qwidget_window/tst_qwidget_window.cpp @@ -411,6 +411,9 @@ void tst_QWidget_window::tst_paintEventOnSecondShow() void tst_QWidget_window::tst_exposeObscuredMapped_QTBUG39220() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + const auto integration = QGuiApplicationPrivate::platformIntegration(); if (!integration->hasCapability(QPlatformIntegration::MultipleWindows) || !integration->hasCapability(QPlatformIntegration::NonFullScreenWindows) @@ -438,6 +441,9 @@ void tst_QWidget_window::tst_exposeObscuredMapped_QTBUG39220() void tst_QWidget_window::tst_paintEventOnResize_QTBUG50796() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + const QRect availableGeo = QGuiApplication::primaryScreen()->availableGeometry(); QWidget root; @@ -582,6 +588,9 @@ static QString msgEventAccepted(const QDropEvent &e) void tst_QWidget_window::tst_dnd() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QStringList log; DnDEventLoggerWidget dndTestWidget(&log); @@ -819,6 +828,9 @@ public: void tst_QWidget_window::tst_dnd_propagation() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QMimeData mimeData; mimeData.setText(QLatin1String("testmimetext")); @@ -1066,6 +1078,9 @@ protected: void tst_QWidget_window::tst_eventfilter_on_toplevel() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QWidget w; EventFilter filter; w.installEventFilter(&filter); @@ -1124,6 +1139,9 @@ void tst_QWidget_window::QTBUG_50561_QCocoaBackingStore_paintDevice_crash() void tst_QWidget_window::setWindowState_data() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Wayland: This fails. Figure out why."); + QString platformName = QGuiApplication::platformName().toLower(); QTest::addColumn<Qt::WindowStates>("state"); |