Update testcases for TapDance plugin

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

@ -19,10 +19,6 @@
#include "./common.h"
#undef min
#undef max
#include <iostream>
// *INDENT-OFF*
KEYMAPS(
[0] = KEYMAP_STACKED

@ -13,12 +13,10 @@ PRESS TD_0
RUN 1 cycle
RUN 25 ms # timeout is 25 ms
RUN 2 cycles
RUN 1 cycle
EXPECT keyboard-report Key_A # The report should contain only `A`
RUN 20 ms
RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report empty # The report should be empty

@ -19,10 +19,6 @@
#include "./common.h"
#undef min
#undef max
#include <iostream>
// *INDENT-OFF*
KEYMAPS(
[0] = KEYMAP_STACKED

@ -14,15 +14,14 @@ 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
RUN 5 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report Key_A, Key_B # TD_1 should time out, yielding `B`
EXPECT keyboard-report Key_B # TD_0 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
RUN 13 ms # t = 50ms
RUN 5 ms
PRESS TD_0
@ -32,15 +31,14 @@ 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
RUN 5 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report Key_A, Key_B # TD_1 should time out, yielding `B`
EXPECT keyboard-report Key_B # TD_0 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
RUN 13 ms # t = 100ms
# ==============================================================================
NAME TapDance to TapDance rollover right to left
@ -53,15 +51,14 @@ 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
RUN 5 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms
EXPECT keyboard-report Key_B, Key_A # TD_0 should time out, yielding `A`
EXPECT keyboard-report Key_A # TD_1 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 13 ms # t = 150ms
RUN 5 ms
PRESS TD_1
@ -71,15 +68,14 @@ 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
RUN 5 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms
EXPECT keyboard-report Key_B, Key_A # TD_0 should time out, yielding `A`
EXPECT keyboard-report Key_A # TD_1 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 13 ms # t = 200ms
# ==============================================================================
NAME TapDance to TapDance rollover back and forth
@ -92,15 +88,14 @@ 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
RUN 5 ms
RELEASE TD_1
RUN 18 ms
EXPECT keyboard-report Key_B # TD_1 should time out, yielding `B`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report Key_A, Key_B # TD_1 should time out, yielding `B`
EXPECT keyboard-report Key_B # TD_0 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 11 ms
RUN 13 ms # t = 250ms
RUN 5 ms
PRESS TD_1
@ -110,12 +105,11 @@ 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
RUN 5 ms
RELEASE TD_0
RUN 18 ms
EXPECT keyboard-report Key_A # TD_0 should time out, yielding `A`
RUN 16 ms # timeout = 25ms
RUN 1 cycle
EXPECT keyboard-report empty # Empty report after TD_0 timeout
RUN 11 ms
EXPECT keyboard-report Key_B, Key_A # TD_0 should time out, yielding `A`
EXPECT keyboard-report Key_A # TD_1 should be released
EXPECT keyboard-report empty # Empty report after TD_1 timeout
RUN 13 ms # t = 300ms

@ -19,10 +19,6 @@
#include "./common.h"
#undef min
#undef max
#include <iostream>
// *INDENT-OFF*
KEYMAPS(
[0] = KEYMAP_STACKED

@ -1,6 +0,0 @@
{
"cpu": {
"fqbn": "keyboardio:virtual:model01",
"port": ""
}
}

@ -8,7 +8,6 @@ KEYSWITCH LL_1 2 0
NAME TapDance issue 980 no overlap
RUN 5 ms
PRESS TD_0
RUN 5 ms
RELEASE TD_0
@ -16,12 +15,11 @@ RUN 10 ms
PRESS TD_0
RUN 5 ms
RELEASE TD_0
RUN 5 ms
PRESS X
RUN 2 cycles
RUN 1 cycle
EXPECT keyboard-report Key_Y # The key should be mapped from layer 1 (Y), not layer 0 (X)
RUN 5 ms
@ -32,7 +30,6 @@ RUN 5 ms
PRESS LL_1
RUN 1 cycle
RELEASE LL_1
RUN 1 cycle
@ -50,7 +47,7 @@ PRESS TD_0
RUN 5 ms
PRESS X
RUN 2 cycles
RUN 1 cycle
EXPECT keyboard-report Key_Y # The key should be mapped from layer 1 (Y), not layer 0 (X)
RUN 5 ms
@ -64,6 +61,5 @@ RUN 5 ms
PRESS LL_1
RUN 1 cycle
RELEASE LL_1
RUN 1 cycle

@ -19,11 +19,12 @@ RELEASE 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 # Report should contain `B`
EXPECT keyboard-report empty # Report should be empty
EXPECT keyboard-report Key_X # Report should contain `X`
RUN 10 ms
RUN 5 ms
RELEASE X
RUN 1 cycle
@ -43,11 +44,11 @@ PRESS TD_0
RUN 1 cycle
RUN 5 ms
RELEASE TD_0
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 Key_B # The report should contain `B`
EXPECT keyboard-report empty # Report should be empty
# ==============================================================================
@ -65,7 +66,6 @@ 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
@ -73,7 +73,6 @@ RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report Key_X # Report should contain `X`
RUN 5 ms
RELEASE X
RUN 1 cycle
@ -93,11 +92,10 @@ PRESS TD_0
RUN 1 cycle
RUN 25 ms
RUN 2 cycles
RUN 1 cycle
EXPECT keyboard-report Key_B # The report should contain `B`
RUN 10 ms
RELEASE TD_0
RUN 1 cycle
EXPECT keyboard-report empty # Report should be empty

Loading…
Cancel
Save