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>
This commit is contained in:
parent
722fd511a2
commit
3ef985ecb7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user