[autotest] Adjust Seat test for changes in 990e88ac

The text input change creates an additional serial, so the check
for last generated serial on the Display fails. The test is now
adjusted to the new semantics. A more reliable way would be to
verify the serial on the SeatInterface, though.
This commit is contained in:
Martin Gräßlin 2016-05-25 15:32:59 +02:00
parent 990e88ac1a
commit a7d5013573

View file

@ -1107,7 +1107,8 @@ void TestWaylandSeat::testKeyboard()
QCOMPARE(modifierSpy.first().at(2).value<quint32>(), quint32(0));
QCOMPARE(modifierSpy.first().at(3).value<quint32>(), quint32(0));
QCOMPARE(enteredSpy.count(), 1);
QCOMPARE(enteredSpy.first().first().value<quint32>(), m_display->serial());
// TODO: get through API
QCOMPARE(enteredSpy.first().first().value<quint32>(), m_display->serial() - 1);
QSignalSpy keyChangedSpy(keyboard, SIGNAL(keyChanged(quint32,KWayland::Client::Keyboard::KeyState,quint32)));
QVERIFY(keyChangedSpy.isValid());
@ -1160,7 +1161,8 @@ void TestWaylandSeat::testKeyboard()
QVERIFY(!m_seatInterface->focusedKeyboard());
QVERIFY(leftSpy.wait());
QCOMPARE(leftSpy.count(), 1);
QCOMPARE(leftSpy.first().first().value<quint32>(), m_display->serial());
// TODO: get through API
QCOMPARE(leftSpy.first().first().value<quint32>(), m_display->serial() -1 );
QVERIFY(!keyboard->enteredSurface());
QVERIFY(!ckeyboard.enteredSurface());