mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
update TDD ut case WindowFocusTest#WindowShowWithoutFocusTest
Signed-off-by: 闫瀚林0424 <yanhanlin6@huawei.com> Change-Id: Ife3c932772a9e83ad60cbef536bec6908548d0f0
This commit is contained in:
parent
2f06f05ad7
commit
39940c18a5
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user