mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 00:41:04 +00:00
commit
3260a633b8
@ -267,7 +267,7 @@ std::string EnableImeDataParser::ParseEnableValueUserId(const std::string &value
|
||||
{
|
||||
auto root = cJSON_Parse(valueStr.c_str());
|
||||
auto subNode = Serializable::GetSubNode(root, "enableImeList");
|
||||
if (subNode == nullptr || cJSON_IsObject(subNode)) {
|
||||
if (subNode == nullptr || !cJSON_IsObject(subNode)) {
|
||||
IMSA_HILOGW("subNode is null or not object");
|
||||
return "";
|
||||
}
|
||||
|
@ -371,6 +371,10 @@ HWTEST_F(InputMethodAbilityTest, testMoveCursor, TestSize.Level0)
|
||||
auto ret = inputMethodAbility_->MoveCursor(keyCode); // move cursor right });
|
||||
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
|
||||
EXPECT_TRUE(TextListener::WaitMoveCursor(keyCode));
|
||||
|
||||
ret = InputMethodAbilityInterface::GetInstance().MoveCursor(keyCode);
|
||||
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
|
||||
EXPECT_TRUE(TextListener::WaitMoveCursor(keyCode));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user