summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2014-08-17 19:51:23 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2014-08-18 13:52:58 +0200
commit037125ee4aa37185a5dd44fa7c6b4492106a6f8b (patch)
treeccb8d6fea04e4789956611a7fb36b520592f826e /tests
parentac1f1c42c7728a78a776b5290e3442823debd659 (diff)
tst_dialog: Convert some QVERIFY to QCOMPARE.
Change-Id: Ibca62cf9dd2e19e32388d19f0c7b34fb7fd81268 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp
index cd9ff28891..d603fdd7da 100644
--- a/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp
+++ b/tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp
@@ -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