53 lines
1.2 KiB
53 lines
1.2 KiB
VERSION 1
|
|
|
|
KEYSWITCH A 2 1
|
|
KEYSWITCH S 2 2
|
|
KEYSWITCH D 2 3
|
|
|
|
# ==============================================================================
|
|
NAME Issue 941 one keypress per cycle
|
|
|
|
RUN 10 ms
|
|
PRESS A
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report Key_A # Report should contain only `A`
|
|
|
|
RUN 10 ms
|
|
PRESS S
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report Key_A, Key_S # Report should contain `A` and `S`
|
|
|
|
RUN 25 ms
|
|
RELEASE A
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report Key_S # Report should contain only `S`
|
|
|
|
RELEASE S
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report empty # Report should be empty
|
|
|
|
RUN 10 ms
|
|
|
|
# ==============================================================================
|
|
NAME Issue 941 simultaneous keypresses
|
|
|
|
# Press three keys in one scan cycle:
|
|
RUN 5 ms
|
|
PRESS A
|
|
PRESS S
|
|
PRESS D
|
|
RUN 1 cycle
|
|
EXPECT keyboard-report Key_A # Report should contain only `A`
|
|
EXPECT keyboard-report Key_A, Key_S # Report should contain `A` and `S`
|
|
EXPECT keyboard-report Key_A, Key_S, Key_D # Report should contain `A` , `S`, and `D`
|
|
|
|
# Release all three in one scan cycle:
|
|
RUN 5 ms
|
|
RELEASE A
|
|
RELEASE S
|
|
RELEASE D
|
|
RUN 1 cycles
|
|
EXPECT keyboard-report Key_D, Key_S # Report should contain `A` and `S`
|
|
EXPECT keyboard-report Key_D # Report should contain only `A`
|
|
EXPECT keyboard-report empty # Report should be empty
|