tst_dialog: Convert some QVERIFY to QCOMPARE.
Change-Id: Ibca62cf9dd2e19e32388d19f0c7b34fb7fd81268 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>bb10
parent
ac1f1c42c7
commit
037125ee4a
|
|
@ -569,7 +569,7 @@ void tst_QDialog::snapToDefaultButton()
|
|||
topLeftPos = QPoint(topLeftPos.x() + 100, topLeftPos.y() + 100);
|
||||
QPoint startingPos(topLeftPos.x() + 250, topLeftPos.y() + 250);
|
||||
QCursor::setPos(startingPos);
|
||||
QVERIFY(QCursor::pos() == startingPos);
|
||||
QCOMPARE(QCursor::pos(), startingPos);
|
||||
QDialog dialog;
|
||||
QPushButton *button = new QPushButton(&dialog);
|
||||
button->setDefault(true);
|
||||
|
|
@ -581,7 +581,7 @@ void tst_QDialog::snapToDefaultButton()
|
|||
QPoint localPos = button->mapFromGlobal(QCursor::pos());
|
||||
QVERIFY(button->rect().contains(localPos));
|
||||
} else {
|
||||
QVERIFY(startingPos == QCursor::pos());
|
||||
QCOMPARE(startingPos, QCursor::pos());
|
||||
}
|
||||
}
|
||||
#endif // !QT_NO_CURSOR
|
||||
|
|
|
|||
Loading…
Reference in New Issue