| 26 | } |
| 27 | |
| 28 | TEST(KeySequenceWatcher, FiresOnceOnFullSequenceAndNeverConsumes) { |
| 29 | int fired = 0; |
| 30 | KeySequenceWatcher w(unlockSteps(), [&] { ++fired; }); |
| 31 | for (int key : activationKeys()) { |
| 32 | QKeyEvent e = makePress(key); |
| 33 | EXPECT_FALSE(w.eventFilter(nullptr, &e)); // returns false => not consumed |
| 34 | } |
| 35 | EXPECT_EQ(fired, 1); |
| 36 | } |
| 37 | |
| 38 | TEST(KeySequenceWatcher, IgnoresAutoRepeat) { |
| 39 | int fired = 0; |
nothing calls this directly
no test coverage detected