update TDD ut case WindowFocusTest#WindowShowWithoutFocusTest

Signed-off-by: 闫瀚林0424 <yanhanlin6@huawei.com>
Change-Id: Ife3c932772a9e83ad60cbef536bec6908548d0f0
This commit is contained in:
闫瀚林0424 2024-10-30 14:47:14 +08:00
parent 2f06f05ad7
commit 39940c18a5

View File

@ -560,15 +560,24 @@ HWTEST_F(WindowFocusTest, WindowShowWithoutFocusTest, Function | MediumTest | Le
{
fullScreenAppInfo_.name = "WindowShowWithoutFocusTest_1";
const sptr<Window>& window1 = Utils::CreateTestWindow(fullScreenAppInfo_);
if (window1 == nullptr) {
return;
}
ASSERT_NE(nullptr, window1);
floatAppInfo_.name = "WindowShowWithoutFocusTest_2";
const sptr<Window>& window2 = Utils::CreateTestWindow(floatAppInfo_);
if (window2 == nullptr) {
return;
}
ASSERT_NE(nullptr, window2);
subAppInfo_.name = "WindowShowWithoutFocusTest_3";
subAppInfo_.parentId = window2->GetWindowId();
const sptr<Window>& subWindow = Utils::CreateTestWindow(subAppInfo_);
if (subWindow == nullptr) {
return;
}
ASSERT_NE(nullptr, subWindow);
ASSERT_EQ(WMError::WM_OK, window1->Show());