aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp')
-rw-r--r--tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp b/tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp
index e69ebfa8fe..4da4767d7b 100644
--- a/tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp
+++ b/tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp
@@ -719,7 +719,7 @@ void tst_QQuickMultiPointTouchArea::inFlickable()
QTest::mouseMove(window.data(), p1);
QQuickTouchUtils::flush(window.data());
- QVERIFY(flickable->contentY() == 0);
+ QCOMPARE(flickable->contentY(), qreal(0));
QCOMPARE(point11->pressed(), true);
QCOMPARE(point12->pressed(), true);
@@ -1186,14 +1186,14 @@ void tst_QQuickMultiPointTouchArea::mouseInteraction()
QPoint p1 = QPoint(100, 100);
QTest::mousePress(view.data(), (Qt::MouseButton) buttons, 0, p1);
QCOMPARE(area->property("touchCount").toInt(), accept);
- QCOMPARE(point1->pressed(), accept);
+ QCOMPARE(point1->pressed(), accept != 0);
p1 += QPoint(10, 10);
QTest::mouseMove(view.data(), p1);
- QCOMPARE(point1->pressed(), accept);
+ QCOMPARE(point1->pressed(), accept != 0);
QCOMPARE(area->property("touchCount").toInt(), accept);
p1 += QPoint(10, 10);
QTest::mouseMove(view.data(), p1);
- QCOMPARE(point1->pressed(), accept);
+ QCOMPARE(point1->pressed(), accept != 0);
QCOMPARE(area->property("touchCount").toInt(), accept);
QTest::mouseRelease(view.data(), (Qt::MouseButton) buttons);
QCOMPARE(point1->pressed(), false);