Commit 03f66b02 authored by Martin Flöser's avatar Martin Flöser

[autotest/integration] Add pointer axis events to ModifiersOnlyShortcutTest

If a pointer axis is scrolled while a modifier is hold, the modifier only
shortcuts should not trigger. The user wanted to use the modifier for the
pointer axis.

This is not implemented yet, thus all is QEXPECT_FAIL.
parent 280663fe
...@@ -219,6 +219,20 @@ void ModifierOnlyShortcutTest::testTrigger() ...@@ -219,6 +219,20 @@ void ModifierOnlyShortcutTest::testTrigger()
QCOMPARE(input()->qtButtonStates(), Qt::NoButton); QCOMPARE(input()->qtButtonStates(), Qt::NoButton);
QEXPECT_FAIL("", "Button not yet handled", Continue); QEXPECT_FAIL("", "Button not yet handled", Continue);
QCOMPARE(triggeredSpy.count(), 2); QCOMPARE(triggeredSpy.count(), 2);
// scroll while mod is pressed
kwinApp()->platform()->keyboardKeyPressed(modifier, timestamp++);
kwinApp()->platform()->pointerAxisVertical(5.0, timestamp++);
kwinApp()->platform()->keyboardKeyReleased(modifier, timestamp++);
QEXPECT_FAIL("", "Axis not yet handled", Continue);
QCOMPARE(triggeredSpy.count(), 2);
// same for horizontal
kwinApp()->platform()->keyboardKeyPressed(modifier, timestamp++);
kwinApp()->platform()->pointerAxisHorizontal(5.0, timestamp++);
kwinApp()->platform()->keyboardKeyReleased(modifier, timestamp++);
QEXPECT_FAIL("", "Axis not yet handled", Continue);
QCOMPARE(triggeredSpy.count(), 2);
} }
WAYLANDTEST_MAIN(ModifierOnlyShortcutTest) WAYLANDTEST_MAIN(ModifierOnlyShortcutTest)
......
Markdown is supported
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