From c63d68b4d4938c9531eb54df80e6fe489f4fd2ea Mon Sep 17 00:00:00 2001 From: zhangxinyue Date: Wed, 24 Aug 2022 16:20:31 +0800 Subject: [PATCH] bug fix Signed-off-by: zhangxinyue --- .../entry/src/main/ets/test/SwiperJsunit.test.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets b/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets index 6ba651339..56dddeab5 100644 --- a/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets +++ b/arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets @@ -450,7 +450,7 @@ export default function swiperJsunit() { try { let eventData = { data: { - "duration": "nan" + "duration": "0" } } let indexEvent = { @@ -466,7 +466,7 @@ export default function swiperJsunit() { let strJsonNew = getInspectorByKey('swiper'); let objNew = JSON.parse(strJsonNew); console.info("swiperTest_1900 component objNew is: " + JSON.stringify(objNew)); - expect(objNew.$attrs.duration).assertEqual('nan'); + expect(objNew.$attrs.duration).assertEqual('0.000000'); console.info('swiperTest_1900 END'); done(); }); -- GitLab