mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 09:00:55 +00:00
fix split test
Signed-off-by: wlj <wangliangjiang1@huawei.com> Change-Id: Ibb7407a419fdcf7b84a2fa17e2cd779ea2464250
This commit is contained in:
parent
7e2dee7355
commit
35dd69386e
@ -25,7 +25,7 @@
|
||||
<!--stretchable enable is true means all window be stretchable-->
|
||||
<stretchable enable="false"></stretchable>
|
||||
<!--exit split screen mode ratio config-->
|
||||
<exitSplitRatios>0.1 0.9</exitSplitRatios>
|
||||
<exitSplitRatios>0.1 0.9</exitSplitRatios>
|
||||
<!--split screen ratios config-->
|
||||
<splitRatios>0.5 0.33 0.67</splitRatios>
|
||||
</Configs>
|
@ -281,9 +281,6 @@ HWTEST_F(WindowSplitTest, SplitScreen06, Function | MediumTest | Level3)
|
||||
ASSERT_EQ(WMError::WM_OK, priWindow->Show());
|
||||
sleep(SPLIT_TEST_SLEEP_S);
|
||||
|
||||
ASSERT_EQ(WindowMode::WINDOW_MODE_SPLIT_PRIMARY, priWindow->GetMode());
|
||||
ASSERT_EQ(WindowMode::WINDOW_MODE_SPLIT_SECONDARY, fullWindow->GetMode());
|
||||
|
||||
utils::TestWindowInfo dividerInfo;
|
||||
dividerInfo.name = "divider0";
|
||||
dividerInfo.type = WindowType::WINDOW_TYPE_DOCK_SLICE;
|
||||
@ -304,7 +301,11 @@ HWTEST_F(WindowSplitTest, SplitScreen06, Function | MediumTest | Level3)
|
||||
divider->ConsumePointerEvent(pointerEvent);
|
||||
sleep(SPLIT_TEST_SLEEP_S);
|
||||
|
||||
posY += 10;
|
||||
if (rect.width_ < rect.height_) {
|
||||
posX += 10;
|
||||
} else {
|
||||
posY += 10;
|
||||
}
|
||||
pointerEvent = utils::CreatePointerEvent(posX, posY, pointerId, MMI::PointerEvent::POINTER_ACTION_MOVE);
|
||||
divider->ConsumePointerEvent(pointerEvent);
|
||||
sleep(SPLIT_TEST_SLEEP_S);
|
||||
|
Loading…
Reference in New Issue
Block a user