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:
parent
6e5267551e
commit
583b7b4df9
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ void PointerInputTest::testWarpingBetweenWindows()
|
||||||
Test::pointerMotion(window1->frameGeometry().center(), timestamp++);
|
Test::pointerMotion(window1->frameGeometry().center(), timestamp++);
|
||||||
QVERIFY(enteredSpy.wait());
|
QVERIFY(enteredSpy.wait());
|
||||||
QCOMPARE(enteredSpy.count(), 1);
|
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(leftSpy.count(), 0);
|
||||||
QCOMPARE(motionSpy.count(), 0);
|
QCOMPARE(motionSpy.count(), 0);
|
||||||
QCOMPARE(pointer->enteredSurface(), surface1.get());
|
QCOMPARE(pointer->enteredSurface(), surface1.get());
|
||||||
|
|
Loading…
Reference in a new issue