@@ -21,6 +21,7 @@ std::vector<std::pair<std::vector<std::string>, std::vector<std::string>>>
2121 {{" a" , " X" , " e" , " Return" }, {" aXe" }},
2222 {{" a" , " ," }, {" a" }}, // comma is passed to client
2323 {{" s" , " h" , " u" , " r" , " u" , " f" , " a" , " 3" }, {" input method" }},
24+ {{" e" , " x" , " c" , " i" , " t" , " n" , " g" , " 2" }, {" exciting" }}, // spell check
2425 };
2526
2627void scheduleEvent (EventDispatcher *dispatcher, Instance *instance) {
@@ -29,17 +30,13 @@ void scheduleEvent(EventDispatcher *dispatcher, Instance *instance) {
2930 FCITX_ASSERT (hallelujah);
3031 auto defaultGroup = instance->inputMethodManager ().currentGroup ();
3132 defaultGroup.inputMethodList ().clear ();
32- defaultGroup.inputMethodList ().push_back (
33- InputMethodGroupItem (" keyboard-us" ));
3433 defaultGroup.inputMethodList ().push_back (
3534 InputMethodGroupItem (" hallelujah" ));
3635 defaultGroup.setDefaultInputMethod (" " );
3736 instance->inputMethodManager ().setGroup (defaultGroup);
3837 auto *testfrontend = instance->addonManager ().addon (" testfrontend" );
3938 auto uuid =
4039 testfrontend->call <ITestFrontend::createInputContext>(" testapp" );
41- testfrontend->call <ITestFrontend::keyEvent>(uuid, Key (" Control+space" ),
42- false );
4340 for (const auto &data : expectedCommit) {
4441 for (const auto &expect : data.second ) {
4542 testfrontend->call <ITestFrontend::pushCommitExpectation>(
0 commit comments