Commit a7d50135 authored by Martin Flöser's avatar Martin Flöser
Browse files

[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.
parent 990e88ac
......@@ -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)));
......@@ -1160,7 +1161,8 @@ void TestWaylandSeat::testKeyboard()
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 );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment