Revert "[Tests] Increase QMK test coverage (#13789)"
This reverts commit b6054c0206
.
This commit is contained in:
parent
b6054c0206
commit
7746aefe94
49 changed files with 264 additions and 2687 deletions
|
@ -24,25 +24,10 @@ class Macro : public TestFixture {};
|
|||
|
||||
#define AT_TIME(t) WillOnce(InvokeWithoutArgs([current_time]() { EXPECT_EQ(timer_elapsed32(current_time), t); }))
|
||||
|
||||
extern "C" const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
if (record->event.pressed) {
|
||||
switch (id) {
|
||||
case 0:
|
||||
return MACRO(D(LSFT), T(H), U(LSFT), T(E), T(L), T(L), T(O), T(SPACE), W(100), D(LSFT), T(W), U(LSFT), I(10), T(O), T(R), T(L), T(D), D(LSFT), T(1), U(LSFT), END);
|
||||
}
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
TEST_F(Macro, PlayASimpleMacro) {
|
||||
TestDriver driver;
|
||||
InSequence s;
|
||||
auto key_macro = KeymapKey(0, 8, 0, M(0));
|
||||
|
||||
set_keymap({key_macro});
|
||||
|
||||
key_macro.press();
|
||||
|
||||
press_key(8, 0);
|
||||
uint32_t current_time = timer_read32();
|
||||
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LEFT_SHIFT))).AT_TIME(0);
|
||||
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LEFT_SHIFT, KC_H))).AT_TIME(0);
|
||||
|
@ -83,6 +68,4 @@ TEST_F(Macro, PlayASimpleMacro) {
|
|||
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LEFT_SHIFT))).AT_TIME(210);
|
||||
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).AT_TIME(220);
|
||||
run_one_scan_loop();
|
||||
|
||||
key_macro.release();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue