From 84e16e5d5fe21c2173ccdf0b492ec2a40d8e98e7 Mon Sep 17 00:00:00 2001 From: xuyangyang Date: Tue, 16 Apr 2024 18:49:21 +0800 Subject: [PATCH] fix Signed-off-by: xuyangyang Change-Id: I96afe3d27aab9bacc3eb44de7208d7084ea68bde --- test/systemtest/wms/window_effect_test.cpp | 2 +- test/systemtest/wms/window_layout_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/systemtest/wms/window_effect_test.cpp b/test/systemtest/wms/window_effect_test.cpp index 06950f9cb4..86d23d931c 100644 --- a/test/systemtest/wms/window_effect_test.cpp +++ b/test/systemtest/wms/window_effect_test.cpp @@ -207,7 +207,7 @@ HWTEST_F(WindowEffectTest, WindowEffect07, Function | MediumTest | Level3) */ HWTEST_F(WindowEffectTest, WindowEffect08, Function | MediumTest | Level3) { - sptr window = Utils::CreateTestWindow(windowInfo_); + const sptr &window = Utils::CreateTestWindow(windowInfo_); ASSERT_NE(nullptr, window); WindowAccessibilityController::GetInstance().OffWindowZoom(); sleep(1); diff --git a/test/systemtest/wms/window_layout_test.cpp b/test/systemtest/wms/window_layout_test.cpp index 1d00a2aa59..bc66b1cf27 100644 --- a/test/systemtest/wms/window_layout_test.cpp +++ b/test/systemtest/wms/window_layout_test.cpp @@ -277,7 +277,7 @@ HWTEST_F(WindowLayoutTest, LayoutWindow06, Function | MediumTest | Level3) ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, statBar->Show()); } - ASSERT_EQ(WMError::WM_OK, sysWin->Show(0, true)); + ASSERT_EQ(WMError::WM_OK, sysWin->Show()); if (Utils::RectEqualTo(sysWin, Utils::displayRect_)) { ASSERT_TRUE(Utils::RectEqualTo(sysWin, Utils::displayRect_)); @@ -339,7 +339,7 @@ HWTEST_F(WindowLayoutTest, LayoutWindow07, Function | MediumTest | Level3) } else if (statBar->Show() == WMError::WM_ERROR_INVALID_WINDOW) { ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, statBar->Show()); } - ASSERT_EQ(WMError::WM_OK, sysWin->Show(0, true)); + ASSERT_EQ(WMError::WM_OK, sysWin->Show()); ASSERT_TRUE(Utils::RectEqualTo(sysWin, Utils::customAppRect_));