Update basic Escape-OneShot testcases

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

@ -45,9 +45,9 @@ KALEIDOSCOPE_INIT_PLUGINS(OneShot, EscapeOneShot);
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() {

@ -15,34 +15,31 @@ RUN 5 ms
RELEASE OSM_0 RELEASE OSM_0
RUN 10 ms RUN 10 ms
PRESS ESC PRESS ESC
RUN 2 cycles RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty EXPECT keyboard-report empty # Report should be empty
RUN 5 ms RUN 5 ms
RELEASE ESC RELEASE ESC
RUN 1 cycle RUN 1 cycle
# ============================================================================== # ==============================================================================
# The testcases below are commented out because they are currently failing. NAME EscapeOneShot cancel sticky
# # ==============================================================================
# NAME EscapeOneShot cancel sticky
# RUN 5 ms RUN 5 ms
# PRESS OSM_0 PRESS OSM_0
# RUN 1 cycle RUN 1 cycle
# EXPECT keyboard-report Key_LeftShift # The report should contain `shift` EXPECT keyboard-report Key_LeftShift # The report should contain `shift`
# RUN 5 ms RUN 5 ms
# RELEASE OSM_0 RELEASE OSM_0
# RUN 5 ms RUN 5 ms
# PRESS OSM_0 PRESS OSM_0
# RUN 5 ms RUN 5 ms
# RELEASE OSM_0 RELEASE OSM_0
# RUN 50 ms RUN 50 ms
# PRESS ESC PRESS ESC
# RUN 2 cycles RUN 1 cycle
# EXPECT keyboard-report empty # Report should be empty EXPECT keyboard-report empty # Report should be empty
# RUN 5 ms RUN 5 ms
# RELEASE ESC RELEASE ESC
# RUN 1 cycle RUN 1 cycle

Loading…
Cancel
Save