fix split test

Signed-off-by: wlj <wangliangjiang1@huawei.com>
Change-Id: Ibb7407a419fdcf7b84a2fa17e2cd779ea2464250
This commit is contained in:
wlj 2022-06-28 14:25:57 +08:00
parent 7e2dee7355
commit 35dd69386e
2 changed files with 6 additions and 5 deletions

View File

@ -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>

View File

@ -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);