Fix comment in test

The intent is that the key is *not* locked
This commit is contained in:
Nicolas Fella 2024-07-09 14:37:46 +02:00
parent 463d77ec18
commit e14e4a1f8e

View file

@ -191,7 +191,7 @@ void StickyKeysTest::testLock()
Test::keyboardKeyPressed(KEY_LEFTCTRL, ++timestamp); Test::keyboardKeyPressed(KEY_LEFTCTRL, ++timestamp);
QVERIFY(modifierSpy.wait()); QVERIFY(modifierSpy.wait());
QCOMPARE(modifierSpy.first()[0], 4); // verify that Ctrl is depressed QCOMPARE(modifierSpy.first()[0], 4); // verify that Ctrl is depressed
QCOMPARE(modifierSpy.first()[2], 0); // verify that Ctrl is locked QCOMPARE(modifierSpy.first()[2], 0); // verify that Ctrl is not locked
Test::keyboardKeyReleased(KEY_LEFTCTRL, ++timestamp); Test::keyboardKeyReleased(KEY_LEFTCTRL, ++timestamp);
} }