Add SpaceCadet testcase for issue #484

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1034/head
Michael Richters 4 years ago
parent b84d82bdb1
commit 5b45092221
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -23,7 +23,7 @@
KEYMAPS( KEYMAPS(
[0] = KEYMAP_STACKED [0] = KEYMAP_STACKED
( (
Key_LeftShift, Key_RightShift, ___, ___, ___, ___, ___, Key_LeftShift, Key_RightShift, Key_RightGui, ___, ___, ___, ___,
Key_A, Key_B, ___, ___, ___, ___, ___, Key_A, Key_B, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,

@ -2,6 +2,7 @@ VERSION 1
KEYSWITCH LSHIFT 0 0 KEYSWITCH LSHIFT 0 0
KEYSWITCH RSHIFT 0 1 KEYSWITCH RSHIFT 0 1
KEYSWITCH RGUI 0 2
KEYSWITCH A 1 0 KEYSWITCH A 1 0
KEYSWITCH B 1 1 KEYSWITCH B 1 1
@ -123,3 +124,28 @@ RUN 3 ms
RELEASE RSHIFT RELEASE RSHIFT
RUN 1 cycle RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty EXPECT keyboard-report empty # Report should be empty
# ==============================================================================
NAME SpaceCadet interrupt with modifier
RUN 5 ms
PRESS LSHIFT
RUN 1 cycle
RUN 3 ms
PRESS RGUI
RUN 1 cycle
EXPECT keyboard-report Key_LeftShift # report: { e1 }
EXPECT keyboard-report Key_LeftShift Key_RightGui # report: { e1 e7 }
RUN 5 ms
RELEASE LSHIFT
RUN 1 cycle
EXPECT keyboard-report Key_RightGui # report: { e7 }
RUN 3 ms
RELEASE RGUI
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty
RUN 5 ms

Loading…
Cancel
Save