mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 00:51:35 +00:00
SetIsMidScene添加TDD用例
Change-Id: Ib4883c77944be68ea1b3c954cbdbe3853a9f2c43 Signed-off-by: shiwz <1216470093@qq.com>
This commit is contained in:
parent
e849c3b85d
commit
71ccc7b3ae
@ -764,6 +764,24 @@ HWTEST_F(SceneSessionTest3, CompatibleFullScreenRecover, Function | SmallTest |
|
||||
ASSERT_EQ(WSError::WS_OK, sceneSession->CompatibleFullScreenRecover());
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: SetIsMidScene
|
||||
* @tc.desc: SetIsMidScene
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(SceneSessionTest3, SetIsMidScene, Function | SmallTest | Level2)
|
||||
{
|
||||
SessionInfo info;
|
||||
info.abilityName_ = "SetIsMidScene";
|
||||
info.bundleName_ = "SetIsMidScene";
|
||||
sptr<SceneSession> sceneSession = sptr<SceneSession>::MakeSptr(info, nullptr);
|
||||
EXPECT_NE(sceneSession, nullptr);
|
||||
|
||||
sceneSession->SetIsMidScene(true);
|
||||
bool res = sceneSession->GetIsMidScene();
|
||||
EXPECT_EQ(res, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: SetIsPcAppInPad
|
||||
* @tc.desc: SetIsPcAppInPad
|
||||
|
Loading…
Reference in New Issue
Block a user