|
|
@ -884,8 +884,10 @@ void TestWaylandSeat::testPointerSwipeGesture()
|
|
|
|
spy = &endSpy;
|
|
|
|
spy = &endSpy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QTEST(endSpy.count(), "expectedEndCount");
|
|
|
|
QFETCH(int, expectedEndCount);
|
|
|
|
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
|
|
|
QCOMPARE(endSpy.count(), expectedEndCount);
|
|
|
|
|
|
|
|
QFETCH(int, expectedCancelCount);
|
|
|
|
|
|
|
|
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
|
|
@ -1007,8 +1009,10 @@ void TestWaylandSeat::testPointerPinchGesture()
|
|
|
|
spy = &endSpy;
|
|
|
|
spy = &endSpy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QTEST(endSpy.count(), "expectedEndCount");
|
|
|
|
QFETCH(int, expectedEndCount);
|
|
|
|
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
|
|
|
QCOMPARE(endSpy.count(), expectedEndCount);
|
|
|
|
|
|
|
|
QFETCH(int, expectedCancelCount);
|
|
|
|
|
|
|
|
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 4u);
|
|
|
@ -1134,8 +1138,10 @@ void TestWaylandSeat::testPointerHoldGesture()
|
|
|
|
spy = &endSpy;
|
|
|
|
spy = &endSpy;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QVERIFY(spy->wait());
|
|
|
|
QTEST(endSpy.count(), "expectedEndCount");
|
|
|
|
QFETCH(int, expectedEndCount);
|
|
|
|
QTEST(cancelledSpy.count(), "expectedCancelCount");
|
|
|
|
QCOMPARE(endSpy.count(), expectedEndCount);
|
|
|
|
|
|
|
|
QFETCH(int, expectedCancelCount);
|
|
|
|
|
|
|
|
QCOMPARE(cancelledSpy.count(), expectedCancelCount);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->count(), 1);
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(0).value<quint32>(), m_display->serial());
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 2);
|
|
|
|
QCOMPARE(spy->first().at(1).value<quint32>(), 2);
|
|
|
|