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 6ba651339cad3115a62fa2fb2ca4761803aaca2d..56dddeab51601ccfa74ccd4fe02343d5fca615d0 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(); });