tests: skip three tests in tst_QDockWidget on Wayland

Task-number: QTBUG-107153
Pick-to: 6.6 6.5
Change-Id: Iad2bc83db96c25508b54ecc5b7c74280cfe90270
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Liang Qi 2023-08-04 05:55:22 +02:00
parent bb0e994072
commit 6f6e62650d

View File

@ -1444,6 +1444,8 @@ void tst_QDockWidget::floatingTabs()
// test hide & show // test hide & show
void tst_QDockWidget::hideAndShow() void tst_QDockWidget::hideAndShow()
{ {
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QSKIP("Test skipped on Wayland.");
#ifdef QT_BUILD_INTERNAL #ifdef QT_BUILD_INTERNAL
// Skip test if xcb error is launched // Skip test if xcb error is launched
qThis = this; qThis = this;
@ -1507,6 +1509,8 @@ void tst_QDockWidget::hideAndShow()
// test closing and deleting consistency // test closing and deleting consistency
void tst_QDockWidget::closeAndDelete() void tst_QDockWidget::closeAndDelete()
{ {
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QSKIP("Test skipped on Wayland.");
#ifdef QT_BUILD_INTERNAL #ifdef QT_BUILD_INTERNAL
// Create a mainwindow with a central widget and two dock widgets // Create a mainwindow with a central widget and two dock widgets
QPointer<QDockWidget> d1; QPointer<QDockWidget> d1;
@ -1571,6 +1575,8 @@ void tst_QDockWidget::closeAndDelete()
// Test dock area permissions // Test dock area permissions
void tst_QDockWidget::dockPermissions() void tst_QDockWidget::dockPermissions()
{ {
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
QSKIP("Test skipped on Wayland.");
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
QSKIP("Test skipped on Windows platforms"); QSKIP("Test skipped on Windows platforms");
#endif // Q_OS_WIN #endif // Q_OS_WIN