!10473 TDD用例新增

Merge pull request !10473 from 陈志华/master
This commit is contained in:
openharmony_ci 2024-11-05 04:36:28 +00:00 committed by Gitee
commit 84eb01d712
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -219,6 +219,21 @@ HWTEST_F(RootSceneTest, SetUiDvsyncSwitchErr, Function | SmallTest | Level3)
rootScene.SetUiDvsyncSwitch(false);
ASSERT_EQ(1, rootScene.GetWindowId());
}
/**
* @tc.name: GetSessionRectByType
* @tc.desc: GetSessionRectByType Test err
* @tc.type: FUNC
*/
HWTEST_F(RootSceneTest, GetSessionRectByTypeErr, Function | SmallTest | Level3)
{
RootScene rootScene;
AvoidAreaType type = AvoidAreaType::TYPE_SYSTEM_GESTURE;
WSRect rect = WSRectT<int32_t>{0, 0, 0, 0};
auto ret = rootScene.GetSessionRectByType(type, rect);
ASSERT_EQ(WMError::WM_ERROR_NULLPTR, ret);
}
}
} // namespace Rosen
} // namespace OHOS