diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-21 13:58:22 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-08-23 13:50:47 +0200 |
commit | 3ef985ecb7b6218bc000e65fa2e97968b2ab5f9f (patch) | |
tree | ab8f3cab3c8cda7e6631a19ee722f98ee21b7dc0 /tests | |
parent | 722fd511a2539ae54fecdbd9e52d4409aa67f1d6 (diff) |
tst_dialog: Skip test that doesn't pass on Wayland.
Wayland does not support QCursor::setPos.
Change-Id: Ic50bc31944db70605af01529cc2b7483dfc334a5
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |