From b213fb7677b35244505ef8af9805c66af0204a39 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Mon, 23 Nov 2020 14:51:09 -0600 Subject: [PATCH] Add to basic TapDance testcases This adds a testcase for rollover from a TapDance key to the key that interrupts the sequence, and a testcase for a TapDance key that times out while held. I also adjusted the timing of the existing testcases to match the new version of TapDance. Signed-off-by: Michael Richters --- tests/plugins/TapDance/basic/test.ktest | 80 ++++++++++++------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/tests/plugins/TapDance/basic/test.ktest b/tests/plugins/TapDance/basic/test.ktest index 64d90c94..24d41faa 100644 --- a/tests/plugins/TapDance/basic/test.ktest +++ b/tests/plugins/TapDance/basic/test.ktest @@ -20,8 +20,8 @@ RUN 5 ms PRESS X RUN 1 cycle EXPECT keyboard-report Key_B # The report should contain `B` -EXPECT keyboard-report empty # Report should be empty RUN 1 cycle +EXPECT keyboard-report empty # Report should be empty EXPECT keyboard-report Key_X # Report should contain `X` RUN 5 ms @@ -47,59 +47,57 @@ RUN 20 ms # Timeout = 25ms RUN 2 ms # Extra 2 cycles for some reason EXPECT keyboard-report Key_B # The report should contain `B` +RUN 1 cycle EXPECT keyboard-report empty # Report should be empty # ============================================================================== -# The testcases below are commented out because they are currently failing. +NAME Tapdance interrupt with rollover -# # ============================================================================== -# NAME Tapdance interrupt with rollover - -# RUN 5 ms -# PRESS TD_0 -# RUN 5 ms -# RELEASE TD_0 +RUN 5 ms +PRESS TD_0 +RUN 5 ms +RELEASE TD_0 -# RUN 10 ms -# PRESS TD_0 +RUN 10 ms +PRESS TD_0 -# RUN 5 ms -# PRESS X -# RUN 1 cycle -# EXPECT keyboard-report Key_B # The report should contain `B` -# RUN 1 cycle -# EXPECT keyboard-report Key_B Key_X # Report should contain `B` & `X` +RUN 5 ms +PRESS X +RUN 1 cycle +EXPECT keyboard-report Key_B # The report should contain `B` +RUN 1 cycle +EXPECT keyboard-report Key_B Key_X # Report should contain `B` & `X` -# RUN 5 ms -# RELEASE TD_0 -# RUN 1 cycle -# EXPECT keyboard-report Key_X # Report should contain `X` +RUN 5 ms +RELEASE TD_0 +RUN 1 cycle +EXPECT keyboard-report Key_X # Report should contain `X` -# RUN 5 ms -# RELEASE X -# RUN 1 cycle -# EXPECT keyboard-report empty # Report should be empty +RUN 5 ms +RELEASE X +RUN 1 cycle +EXPECT keyboard-report empty # Report should be empty -# # ============================================================================== -# NAME Tapdance timeout while held +# ============================================================================== +NAME Tapdance timeout while held -# RUN 5 ms +RUN 5 ms -# PRESS TD_0 -# RUN 5 ms -# RELEASE TD_0 -# RUN 10 ms +PRESS TD_0 +RUN 5 ms +RELEASE TD_0 +RUN 10 ms -# PRESS TD_0 -# RUN 1 cycle -# RUN 25 ms +PRESS TD_0 +RUN 1 cycle +RUN 25 ms -# RUN 2 cycles -# EXPECT keyboard-report Key_B # The report should contain `B` +RUN 2 cycles +EXPECT keyboard-report Key_B # The report should contain `B` -# RUN 10 ms -# RELEASE TD_0 -# RUN 1 cycle +RUN 10 ms +RELEASE TD_0 +RUN 1 cycle -# EXPECT keyboard-report empty # Report should be empty +EXPECT keyboard-report empty # Report should be empty