From 3ef985ecb7b6218bc000e65fa2e97968b2ab5f9f Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Thu, 21 Aug 2014 13:58:22 +0200 Subject: tst_dialog: Skip test that doesn't pass on Wayland. Wayland does not support QCursor::setPos. Change-Id: Ic50bc31944db70605af01529cc2b7483dfc334a5 Reviewed-by: Laszlo Agocs --- tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/widgets') diff --git a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp index d603fdd7da..3a26d3c2f0 100644 --- a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp +++ b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp @@ -565,6 +565,9 @@ void tst_QDialog::snapToDefaultButton() #ifdef QT_NO_CURSOR QSKIP("Test relies on there being a cursor"); #else + if (qApp->platformName().toLower() == QLatin1String("wayland")) + QSKIP("Wayland: Wayland does not support setting the cursor position."); + QPoint topLeftPos = QApplication::desktop()->availableGeometry().topLeft(); topLeftPos = QPoint(topLeftPos.x() + 100, topLeftPos.y() + 100); QPoint startingPos(topLeftPos.x() + 250, topLeftPos.y() + 250); -- cgit v1.2.3