Update basic OneShot testcases

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

@ -44,9 +44,9 @@ KALEIDOSCOPE_INIT_PLUGINS(OneShot);
void setup() { void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
OneShot.time_out = 50; OneShot.setTimeout(50);
OneShot.hold_time_out = 20; OneShot.setHoldTimeout(20);
OneShot.double_tap_time_out = 20; OneShot.setDoubleTapTimeout(20);
} }
void loop() { void loop() {

@ -32,7 +32,7 @@ RUN 10 ms
PRESS A PRESS A
RUN 1 cycle RUN 1 cycle
EXPECT keyboard-report Key_LeftShift Key_A # There should be `shift`+`A` EXPECT keyboard-report Key_LeftShift Key_A # There should be `shift`+`A`
RUN 1 cycle RUN 2 cycle
EXPECT keyboard-report Key_A # There should be only `A` EXPECT keyboard-report Key_A # There should be only `A`
RUN 5 ms RUN 5 ms
RELEASE A RELEASE A
@ -76,11 +76,10 @@ EXPECT keyboard-report Key_LeftShift # The report should contain `shift`
RUN 5 ms RUN 5 ms
PRESS OS_shift PRESS OS_shift
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty
RUN 5 ms RUN 5 ms
RELEASE OS_shift RELEASE OS_shift
RUN 1 cycle RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty
# ============================================================================== # ==============================================================================
NAME OneShot double tap timeout NAME OneShot double tap timeout
@ -137,7 +136,7 @@ RUN 1 cycle
EXPECT keyboard-report Key_LeftShift Key_A # There should be `shift`+`A` EXPECT keyboard-report Key_LeftShift Key_A # There should be `shift`+`A`
RUN 5 ms RUN 5 ms
RELEASE OS_shift RELEASE OS_shift
RUN 2 cycles # 2 cycles? RUN 1 cycle
EXPECT keyboard-report Key_A # There should be only `A` EXPECT keyboard-report Key_A # There should be only `A`
RUN 5 ms RUN 5 ms
RELEASE A RELEASE A

Loading…
Cancel
Save