autotests: Fix PointerInputTest in Qt 6 build

PointerInputTest::testWarpingBetweenWindows() compares
QVariant(QPointF) with QPoint. While this works in Qt 5, Qt 6 seems to
take the type into account when comparing the two.
This commit is contained in:
Vlad Zahorodnii 2022-10-22 01:01:51 +03:00
parent 6e5267551e
commit 583b7b4df9

View file

@ -330,7 +330,7 @@ void PointerInputTest::testWarpingBetweenWindows()
Test::pointerMotion(window1->frameGeometry().center(), timestamp++);
QVERIFY(enteredSpy.wait());
QCOMPARE(enteredSpy.count(), 1);
QCOMPARE(enteredSpy.last().at(1), QPoint(50, 25));
QCOMPARE(enteredSpy.last().at(1).toPointF(), QPointF(50, 25));
QCOMPARE(leftSpy.count(), 0);
QCOMPARE(motionSpy.count(), 0);
QCOMPARE(pointer->enteredSurface(), surface1.get());