You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaleidoscope/tests/plugins/ShapeShifter/basic/test.ktest

39 lines
931 B

VERSION 1
KEYSWITCH K1 0 0
KEYSWITCH K2 0 1
KEYSWITCH K3 0 2
KEYSWITCH LSHIFT 2 0
# ==============================================================================
NAME ShapeShifter without shift
RUN 5 ms
PRESS K1
RUN 1 cycle
EXPECT keyboard-report Key_1 # The report should contain only `1`
RUN 5 ms
RELEASE K1
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty
# ==============================================================================
NAME ShapeShifter full overlap
RUN 5 ms
PRESS LSHIFT
RUN 1 cycle
EXPECT keyboard-report Key_LeftShift # The report should contain `shift`
RUN 5 ms
PRESS K1
RUN 1 cycle
EXPECT keyboard-report Key_LeftShift Key_2 # The report should contain `shift` + `2`
RUN 5 ms
RELEASE K1
RUN 1 cycle
EXPECT keyboard-report Key_LeftShift # The report should contain `shift`
RUN 5 ms
RELEASE LSHIFT
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty