diff --git a/test/systemtest/wms/window_display_zoom_test.cpp b/test/systemtest/wms/window_display_zoom_test.cpp index 7052531c89..6fc5cf4608 100644 --- a/test/systemtest/wms/window_display_zoom_test.cpp +++ b/test/systemtest/wms/window_display_zoom_test.cpp @@ -169,8 +169,6 @@ HWTEST_F(WindowDisplayZoomTest, DisplayZoom03, Function | MediumTest | Level3) WindowAccessibilityController::GetInstance().SetAnchorAndScale(0, 0, 2); sleep(1); - WindowAccessibilityController::GetInstance().SetAnchorOffset(0, 0); - sleep(1); WindowAccessibilityController::GetInstance().OffWindowZoom(); sleep(1); diff --git a/wm/test/unittest/window_session_impl_test4.cpp b/wm/test/unittest/window_session_impl_test4.cpp index 5b59e18b13..1b9ed42c3c 100644 --- a/wm/test/unittest/window_session_impl_test4.cpp +++ b/wm/test/unittest/window_session_impl_test4.cpp @@ -20,6 +20,7 @@ #include "accessibility_event_info.h" #include "color_parser.h" #include "mock_session.h" +#include "window_accessibility_controller.h" #include "window_helper.h" #include "window_session_impl.h" #include "wm_common.h" @@ -2065,6 +2066,13 @@ HWTEST_F(WindowSessionImplTest4, ClearListenersById_switchFreeMultiWindowListene ASSERT_EQ(window_->switchFreeMultiWindowListeners_.find(persistentId), window_->switchFreeMultiWindowListeners_.end()); + WindowAccessibilityController::GetInstance().SetAnchorAndScale(0, 0, 2); + sleep(1); + WindowAccessibilityController::GetInstance().SetAnchorOffset(0, 0); + sleep(1); + WindowAccessibilityController::GetInstance().OffWindowZoom(); + sleep(1); + GTEST_LOG_(INFO) << "WindowSessionImplTest4: ClearListenersById_switchFreeMultiWindowListeners end"; } }