autotests: Fix testWaylandSeat in Qt 6 build
This commit is contained in:
parent
e665c1c80a
commit
f19957bdb2
1 changed files with 12 additions and 6 deletions
|
@ -884,8 +884,10 @@ void TestWaylandSeat::testPointerSwipeGesture()
|
|||
spy = &endSpy;
|
||||
}
|
||||
QVERIFY(spy->wait());
|
||||
QTEST(endSpy.count(), "expectedEndCount");
|
||||
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
||||
QFETCH(int, expectedEndCount);
|
||||
QCOMPARE(endSpy.count(), expectedEndCount);
|
||||
QFETCH(int, expectedCancelCount);
|
||||
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
||||
QCOMPARE(spy->count(), 1);
|
||||
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
||||
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
||||
|
@ -1007,8 +1009,10 @@ void TestWaylandSeat::testPointerPinchGesture()
|
|||
spy = &endSpy;
|
||||
}
|
||||
QVERIFY(spy->wait());
|
||||
QTEST(endSpy.count(), "expectedEndCount");
|
||||
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
||||
QFETCH(int, expectedEndCount);
|
||||
QCOMPARE(endSpy.count(), expectedEndCount);
|
||||
QFETCH(int, expectedCancelCount);
|
||||
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
||||
QCOMPARE(spy->count(), 1);
|
||||
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
||||
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
||||
|
@ -1134,8 +1138,10 @@ void TestWaylandSeat::testPointerHoldGesture()
|
|||
spy = &endSpy;
|
||||
}
|
||||
QVERIFY(spy->wait());
|
||||
QTEST(endSpy.count(), "expectedEndCount");
|
||||
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
||||
QFETCH(int, expectedEndCount);
|
||||
QCOMPARE(endSpy.count(), expectedEndCount);
|
||||
QFETCH(int, expectedCancelCount);
|
||||
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
||||
QCOMPARE(spy->count(), 1);
|
||||
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
||||
QCOMPARE(spy->first().at(1).value<quint32>(), 2);
|
||||
|
|
Loading…
Reference in a new issue