Release key in sticky key test
Otherwise it's pressed the whole time, breaking subsequent tests
This commit is contained in:
parent
fa443bb806
commit
65405c128e
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue