Deprecate CAPS_WORD/CAPSWRD for CW_TOGG (#18834)

This commit is contained in:
Ryan 2022-10-25 03:30:37 +11:00 committed by GitHub
parent 6bbe8b6edd
commit a80b886751
Failed to generate hash of commit
19 changed files with 31 additions and 34 deletions

View file

@ -118,19 +118,19 @@ TEST_F(CapsWord, DefaultCapsWordPressUserFun) {
}
}
// Tests that `CAPSWRD` key toggles Caps Word.
// Tests that `QK_CAPS_WORD_TOGGLE` key toggles Caps Word.
TEST_F(CapsWord, CapswrdKey) {
TestDriver driver;
KeymapKey key_capswrd(0, 0, 0, CAPSWRD);
KeymapKey key_capswrd(0, 0, 0, QK_CAPS_WORD_TOGGLE);
set_keymap({key_capswrd});
// No keyboard reports should be sent.
EXPECT_NO_REPORT(driver);
tap_key(key_capswrd); // Tap the CAPSWRD key.
tap_key(key_capswrd); // Tap the QK_CAPS_WORD_TOGGLE key.
EXPECT_EQ(is_caps_word_on(), true);
tap_key(key_capswrd); // Tap the CAPSWRD key again.
tap_key(key_capswrd); // Tap the QK_CAPS_WORD_TOGGLE key again.
EXPECT_EQ(is_caps_word_on(), false);
testing::Mock::VerifyAndClearExpectations(&driver);