Kaleidoscope/tests/features/keycodes/test.ktest

37 lines
695 B

VERSION 1
KEYSWITCH A 2 1
KEYSWITCH S 2 2
KEYSWITCH LSHIFT 3 7
# ==============================================================================
NAME Keyboard non modifier
RUN 4 ms
PRESS A
RUN 1 cycle
EXPECT keyboard-report Key_A # Report should contain only 'a'
RUN 4 ms
RELEASE A
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty
RUN 5 ms
# ==============================================================================
NAME Keyboard modifier
RUN 4 ms
PRESS LSHIFT
RUN 1 cycle
EXPECT keyboard-report Key_LeftShift # Report should contain only `shift`
RUN 4 ms
RELEASE LSHIFT
RUN 1 cycle
EXPECT keyboard-report empty # No keys should be pressed
RUN 5 ms