mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
add TDD ut case WindowAccessibilityController相关
Signed-off-by: 闫瀚林0424 <yanhanlin6@huawei.com> Change-Id: I1dc7ad5660477e80ed270580abb5bbaa58952491
This commit is contained in:
parent
b3e7cdb7ec
commit
1b3c6936c6
@ -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);
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user