Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2024-09-30 10:58:43 +08:00
parent 97c1279718
commit 2086c2f765

View File

@ -394,7 +394,8 @@ void TddUtil::InitCurrentImePermissionInfo()
void TddUtil::WindowManager::CreateWindow()
{
if (windowTokenId_ == 0) {
windowTokenId_ = AllocTestTokenID(true, "TestWindow", {});
windowTokenId_ = AllocTestTokenID(true, "TestWindow",
{ "ohos.permission.SYSTEM_FLOAT_WINDOW" });
}
TokenScope scope(windowTokenId_);
std::string windowName = "inputmethod_test_window";