diff --git a/test/systemtest/wms/window_subwindow_test.cpp b/test/systemtest/wms/window_subwindow_test.cpp index 6db5a8a54d..10908cd1d7 100644 --- a/test/systemtest/wms/window_subwindow_test.cpp +++ b/test/systemtest/wms/window_subwindow_test.cpp @@ -234,7 +234,7 @@ HWTEST_F(WindowSubWindowTest, SubWindow06, Function | MediumTest | Level3) sptr subWindow0 = CreateSubWindow(scene, WindowType::WINDOW_TYPE_APP_SUB_WINDOW, rect, 0); if (subWindow0 == nullptr) { return; - } + } ASSERT_NE(nullptr, subWindow0); sptr subWindow1 = CreateSubWindow(scene, WindowType::WINDOW_TYPE_APP_SUB_WINDOW, rect, 0); diff --git a/test/systemtest/wms/window_systemsubwindow_test.cpp b/test/systemtest/wms/window_systemsubwindow_test.cpp index 87ad9d5b1b..5e60df4e27 100644 --- a/test/systemtest/wms/window_systemsubwindow_test.cpp +++ b/test/systemtest/wms/window_systemsubwindow_test.cpp @@ -119,7 +119,7 @@ HWTEST_F(WindowSystemSubWindowTest, SystemSubWindow01, Function | MediumTest | L sptr 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 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 baseWindow = CreateBaseWindow(static_cast(*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 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 baseWindow = CreateBaseWindow(WindowType::WINDOW_TYPE_APP_MAIN_WINDOW, baseRect, baseFlags); if (baseWindow == nullptr) { return; - } + } ASSERT_NE(nullptr, baseWindow); sptr appSubWindow = CreateAppSubWindow(baseWindow, static_cast(*itor), baseRect, baseFlags);