From ef22545184c173ae5b815c63f56e78af5290a3d7 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Mon, 28 Feb 2022 12:23:57 +0100 Subject: [PATCH] Android: skip tst_QDialog::snapToDefaultButton This test uses the cursor. However we have no cursor support on Android. Skip the test instead of blacklisting it, because that is the correct behavior. Fixes: QTBUG-87389 Pick-to: 6.3 6.2 Change-Id: I1a2d2dd406b3d7da1bc70b51c2072a83d9a29ca5 Reviewed-by: Andreas Buhr --- tests/auto/widgets/dialogs/qdialog/BLACKLIST | 3 --- tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/widgets/dialogs/qdialog/BLACKLIST b/tests/auto/widgets/dialogs/qdialog/BLACKLIST index 02eb64cb8b..ad86386895 100644 --- a/tests/auto/widgets/dialogs/qdialog/BLACKLIST +++ b/tests/auto/widgets/dialogs/qdialog/BLACKLIST @@ -2,6 +2,3 @@ macos [showFullScreen] macos ci -# QTBUG-87389 -[snapToDefaultButton] -android diff --git a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp index d4fbc548bd..08c3972843 100644 --- a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp +++ b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp @@ -503,6 +503,9 @@ void tst_QDialog::snapToDefaultButton() #else if (!QGuiApplication::platformName().compare(QLatin1String("wayland"), Qt::CaseInsensitive)) QSKIP("This platform does not support setting the cursor position."); +#ifdef Q_OS_ANDROID + QSKIP("Android does not support cursor"); +#endif const QRect dialogGeometry(QGuiApplication::primaryScreen()->availableGeometry().topLeft() + QPoint(100, 100), QSize(200, 200));