forked from mirrors/qmk_userspace
Deprecate CAPS_WORD
/CAPSWRD
for CW_TOGG
(#18834)
This commit is contained in:
parent
6bbe8b6edd
commit
a80b886751
19 changed files with 31 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue