From 96f6f2633a3a687aa82a896ada92fa578e982316 Mon Sep 17 00:00:00 2001 From: zhangshuqi Date: Wed, 19 Apr 2023 20:38:08 +0800 Subject: [PATCH] modify Flex_AlignContent_SpaceBetween_FlexMarPad Signed-off-by: zhangshuqq --- .../Flex_AlignContent_SpaceBetween_FlexMarPad.test.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignContent/SpaceBeTween/Flex_AlignContent_SpaceBetween_FlexMarPad.test.ets b/arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignContent/SpaceBeTween/Flex_AlignContent_SpaceBetween_FlexMarPad.test.ets index 4d8e2cdb1..6b9f80636 100644 --- a/arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignContent/SpaceBeTween/Flex_AlignContent_SpaceBetween_FlexMarPad.test.ets +++ b/arkui/ace_ets_layout_test/entry/src/main/ets/test/Flex/alignContent/SpaceBeTween/Flex_AlignContent_SpaceBetween_FlexMarPad.test.ets @@ -72,7 +72,7 @@ export default function flex_AlignContent_SpaceBetween_FlexMarPadTest() { expect(Math.round(thirdText.bottom - thirdText.top)).assertEqual(vp2px(150)); expect(Math.round(fourthText.bottom - fourthText.top)).assertEqual(vp2px(200)); //四个子组件的高度分别为50、100、150、200 - expect(Math.round(flexContainer.top - columnContainer.left)).assertEqual(vp2px(20)); //margin =20 + expect(Math.round(flexContainer.top - columnContainer.top)).assertEqual(vp2px(20)); //margin =20 expect(Math.round(firstText.top - flexContainer.top)).assertEqual(vp2px(50)); expect(Math.round(firstText.left - flexContainer.left)).assertEqual(vp2px(50)); //padding =50 expect(firstText.left).assertEqual(secondText.left); @@ -116,7 +116,7 @@ export default function flex_AlignContent_SpaceBetween_FlexMarPadTest() { expect(Math.round(firstText.top - flexContainer.top)).assertEqual(vp2px(10)); expect(Math.round(firstText.left - flexContainer.left)).assertEqual(vp2px(10)); //padding =10 - expect(Math.round(flexContainer.top - columnContainer.left)).assertEqual(vp2px(30)); //margin =30 + expect(Math.round(flexContainer.top - columnContainer.top)).assertEqual(vp2px(30)); //margin =30 expect(firstText.left).assertEqual(secondText.left); expect(secondText.left).assertEqual(thirdText.left); expect(thirdText.left).assertEqual(fourthText.left); -- GitLab