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/issues/922/test.ktest

122 lines
2.8 KiB

VERSION 1
KEYSWITCH TD_0 0 0
KEYSWITCH TD_1 0 1
# ==============================================================================
NAME TapDance to TapDance rollover left to right
RUN 5 ms
PRESS TD_0
RUN 5 ms
PRESS TD_1
RUN 1 cycle
EXPECT keyboard-report Key_A # TD_0 should be interrupted, yielding `A`
RUN 4 ms
RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_0 release
RUN 4 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
RUN 5 ms
PRESS TD_0
RUN 5 ms
PRESS TD_1
RUN 1 cycle
EXPECT keyboard-report Key_A # TD_0 should be interrupted, yielding `A`
RUN 4 ms
RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_0 release
RUN 4 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
# ==============================================================================
NAME TapDance to TapDance rollover right to left
RUN 5 ms
PRESS TD_1
RUN 5 ms
PRESS TD_0
RUN 1 cycle
EXPECT keyboard-report Key_B # TD_1 should be interrupted, yielding `B`
RUN 4 ms
RELEASE TD_1
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_1 release
RUN 4 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms
RUN 5 ms
PRESS TD_1
RUN 5 ms
PRESS TD_0
RUN 1 cycle
EXPECT keyboard-report Key_B # TD_1 should be interrupted, yielding `B`
RUN 4 ms
RELEASE TD_1
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_1 release
RUN 4 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms
# ==============================================================================
NAME TapDance to TapDance rollover back and forth
RUN 5 ms
PRESS TD_0
RUN 5 ms
PRESS TD_1
RUN 1 cycle
EXPECT keyboard-report Key_A # TD_0 should be interrupted, yielding `A`
RUN 4 ms
RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_0 release
RUN 4 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
RUN 5 ms
PRESS TD_1
RUN 5 ms
PRESS TD_0
RUN 1 cycle
EXPECT keyboard-report Key_B # TD_1 should be interrupted, yielding `B`
RUN 4 ms
RELEASE TD_1
RUN 1 cycle
EXPECT keyboard-report empty # Empty report on TD_1 release
RUN 4 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms