Release key in sticky key test

Otherwise it's pressed the whole time, breaking subsequent tests
wilder/Plasma/6.2
Nicolas Fella 2 years ago
parent fa443bb806
commit 65405c128e
  1. 6
      autotests/integration/sticky_keys_test.cpp

@ -179,6 +179,12 @@ void StickyKeysTest::testLock()
// TODO should it be latched? // TODO should it be latched?
QCOMPARE(modifierSpy.first()[2], 4); // verify that Ctrl is locked QCOMPARE(modifierSpy.first()[2], 4); // verify that Ctrl is locked
// release Ctrl, modifier should still be locked
modifierSpy.clear();
Test::keyboardKeyReleased(KEY_LEFTCTRL, ++timestamp);
QVERIFY(modifierSpy.wait());
// TODO
// press and release a letter, this does not unlock the modifier // press and release a letter, this does not unlock the modifier
modifierSpy.clear(); modifierSpy.clear();
Test::keyboardKeyPressed(KEY_A, ++timestamp); Test::keyboardKeyPressed(KEY_A, ++timestamp);

Loading…
Cancel
Save