Signed-off-by: z30042987 <zhouminghui8@huawei.com>
This commit is contained in:
z30042987 2023-08-29 11:07:04 +08:00
parent 011b0afa93
commit e5d4fb4301
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);