From 75c1038311e6b585a960ee2152db9bb8e99dec8e Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 2 Mar 2021 12:21:46 +0100 Subject: [PATCH] Skip tst_QDockWidget::restoreDockWidget on Wayland There is something wrong with dock widget positioning on Wayland. In the interest of getting tests running at all, we skip the test for now, like we already do with a few others. Task-number: QTBUG-91418 Task-number: QTBUG-91483 Change-Id: I44f5fa0e4d0a43a46ce24a61a899bfcc03787f28 Reviewed-by: Liang Qi --- tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp index 4aa8e9887e..d726807b7c 100644 --- a/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp +++ b/tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp @@ -779,6 +779,9 @@ void tst_QDockWidget::restoreStateWhileStillFloating() void tst_QDockWidget::restoreDockWidget() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Fails on Wayland: QTBUG-91483"); + QByteArray geometry; QByteArray state; @@ -973,6 +976,9 @@ void tst_QDockWidget::taskQTBUG_1665_closableChanged() void tst_QDockWidget::taskQTBUG_9758_undockedGeometry() { + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) + QSKIP("Fails on Wayland: QTBUG-91483"); + QMainWindow window; QDockWidget dock1(&window); QDockWidget dock2(&window);