autotests: Fix testPointerConstraintsInterface with Qt 6 build
QTEST panics because of type difference (qsizetype vs int).
This commit is contained in:
parent
aebbce2f38
commit
e665c1c80a
1 changed files with 4 additions and 2 deletions
|
@ -241,7 +241,8 @@ void TestPointerConstraints::testLockPointer()
|
|||
QCOMPARE(serverLockedPointer->cursorPositionHint(), QPointF(-1., -1.));
|
||||
QCOMPARE(lockedChangedSpy.count(), 2);
|
||||
QTEST(bool(serverSurface->lockedPointer()), "hasConstraintAfterUnlock");
|
||||
QTEST(pointerConstraintsChangedSpy.count(), "pointerChangedCount");
|
||||
QFETCH(int, pointerChangedCount);
|
||||
QCOMPARE(pointerConstraintsChangedSpy.count(), pointerChangedCount);
|
||||
QVERIFY(unlockedSpy.wait());
|
||||
QCOMPARE(unlockedSpy.count(), 1);
|
||||
QCOMPARE(lockedSpy.count(), 1);
|
||||
|
@ -333,7 +334,8 @@ void TestPointerConstraints::testConfinePointer()
|
|||
QCOMPARE(serverConfinedPointer->isConfined(), false);
|
||||
QCOMPARE(confinedChangedSpy.count(), 2);
|
||||
QTEST(bool(serverSurface->confinedPointer()), "hasConstraintAfterUnlock");
|
||||
QTEST(pointerConstraintsChangedSpy.count(), "pointerChangedCount");
|
||||
QFETCH(int, pointerChangedCount);
|
||||
QCOMPARE(pointerConstraintsChangedSpy.count(), pointerChangedCount);
|
||||
QVERIFY(unconfinedSpy.wait());
|
||||
QCOMPARE(unconfinedSpy.count(), 1);
|
||||
QCOMPARE(confinedSpy.count(), 1);
|
||||
|
|
Loading…
Reference in a new issue