!414 自測試問題修改

Merge pull request !414 from cy7717/master
This commit is contained in:
openharmony_ci 2022-11-17 14:49:12 +00:00 committed by Gitee
commit f33853cba3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ napi_value JsTextInputClientEngine::MoveCursor(napi_env env, napi_callback_info
}
};
ctxt->SetAction(std::move(input));
AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(ctxt), 0);
AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(ctxt));
return asyncCall.Call(env, exec);
}

View File

@ -45,7 +45,7 @@ struct SendKeyFunctionContext : public AsyncCall::Context {
};
struct MoveCursorContext : public AsyncCall::Context {
bool num = false;
int32_t num = 0;
napi_status status = napi_generic_failure;
MoveCursorContext() : Context(nullptr, nullptr){};
MoveCursorContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){};

View File

@ -739,6 +739,7 @@ namespace MiscServices {
property.descriptionId = applicationInfo.descriptionId;
property.label = Str8ToStr16(labelString);
property.description = Str8ToStr16(descriptionString);
properties.emplace_back(property);
}
return properties;
}