summaryrefslogtreecommitdiff
path: root/tests/caps_word
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-25 03:30:37 +1100
committerGitHub <noreply@github.com>2022-10-24 17:30:37 +0100
commita80b886751aaddb0e030a14a82cf99b6778145b4 (patch)
tree2b1b25f5f970f40b0836a31f180ac08979cf62ce /tests/caps_word
parent6bbe8b6eddc56d43f4db07c665bf1791ea2ab871 (diff)
Deprecate `CAPS_WORD`/`CAPSWRD` for `CW_TOGG` (#18834)
Diffstat (limited to 'tests/caps_word')
-rw-r--r--tests/caps_word/test_caps_word.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/caps_word/test_caps_word.cpp b/tests/caps_word/test_caps_word.cpp
index 3f59ed3744..91dd1a0221 100644
--- a/tests/caps_word/test_caps_word.cpp
+++ b/tests/caps_word/test_caps_word.cpp
@@ -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);