mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
fix
Signed-off-by: z30042987 <zhouminghui8@huawei.com>
This commit is contained in:
parent
011b0afa93
commit
e5d4fb4301
@ -234,7 +234,7 @@ HWTEST_F(WindowSubWindowTest, SubWindow06, Function | MediumTest | Level3)
|
||||
sptr<Window> subWindow0 = CreateSubWindow(scene, WindowType::WINDOW_TYPE_APP_SUB_WINDOW, rect, 0);
|
||||
if (subWindow0 == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(nullptr, subWindow0);
|
||||
|
||||
sptr<Window> subWindow1 = CreateSubWindow(scene, WindowType::WINDOW_TYPE_APP_SUB_WINDOW, rect, 0);
|
||||
|
@ -119,7 +119,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow01, Function | MediumTest | L
|
||||
sptr<Window> subWindow = CreateSystemSubWindow(baseWindow, rect, flags);
|
||||
if (subWindow == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ASSERT_NE(nullptr, subWindow);
|
||||
|
||||
@ -176,7 +176,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow02, Function | MediumTest | L
|
||||
sptr<Window> subWindow = CreateSystemSubWindow(baseWindow, rect, flags);
|
||||
if (subWindow == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(nullptr, subWindow);
|
||||
|
||||
ASSERT_EQ(WMError::WM_OK, baseWindow->Show());
|
||||
@ -205,7 +205,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow03, Function | MediumTest | L
|
||||
sptr<Window> baseWindow = CreateBaseWindow(static_cast<WindowType>(*itor), baseRect, baseFlags);
|
||||
if (baseWindow == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(nullptr, baseWindow);
|
||||
|
||||
struct Rect rect = {0, 0, 100, 200};
|
||||
@ -213,7 +213,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow03, Function | MediumTest | L
|
||||
sptr<Window> subWindow = CreateSystemSubWindow(baseWindow, rect, flags);
|
||||
if (subWindow == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ASSERT_EQ(nullptr, subWindow);
|
||||
}
|
||||
}
|
||||
@ -236,7 +236,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow04, Function | MediumTest | L
|
||||
sptr<Window> baseWindow = CreateBaseWindow(WindowType::WINDOW_TYPE_APP_MAIN_WINDOW, baseRect, baseFlags);
|
||||
if (baseWindow == nullptr) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(nullptr, baseWindow);
|
||||
|
||||
sptr<Window> appSubWindow = CreateAppSubWindow(baseWindow, static_cast<WindowType>(*itor), baseRect, baseFlags);
|
||||
|
Loading…
Reference in New Issue
Block a user