!1501 增加WINDOW_TYPE_FLOAT类型窗口创建权限

Merge pull request !1501 from mashaoyin/master
This commit is contained in:
openharmony_ci 2024-09-30 08:14:19 +00:00 committed by Gitee
commit 5424b697c2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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";