diff --git a/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets b/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets index b6e69c50d511a165afdce67b76283b6c5a036bac..e5896ae665dc6857381c89829fe2eb0dc7e27cbe 100644 --- a/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets +++ b/arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets @@ -219,7 +219,7 @@ export default function textStyleJsunit() { console.info("[testTextStyle008] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testTextStyle008] fontSize: " + obj.$attrs.fontSize); - expect(obj.$attrs.fontSize).assertEqual('-2147483648.00fp'); + expect(obj.$attrs.fontSize).assertEqual('16.00fp'); done(); }); diff --git a/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets b/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets index e14423e4dbc3e0979f53a327d88f092fd5e4c3c8..0df0ddfac19922044e96f2a823e20fd615e858c8 100644 --- a/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets +++ b/arkui/ace_ets_component_three/entry/src/main/ets/test/TextJsunit.test.ets @@ -296,7 +296,7 @@ export default function textJsunit() { let strJsonNew = getInspectorByKey('text'); let objNew = JSON.parse(strJsonNew); console.info("testText_1300 component objNew is: " + JSON.stringify(objNew.$attrs.fontSize)); - expect(objNew.$attrs.fontSize).assertEqual('nanfp'); + expect(objNew.$attrs.fontSize).assertEqual('16.00fp'); console.info('testText_1300 END'); done(); }); @@ -322,7 +322,7 @@ export default function textJsunit() { let strJsonNew = getInspectorByKey('text'); let objNew = JSON.parse(strJsonNew); console.info("testText_1400 component objNew is: " + JSON.stringify(objNew.$attrs.fontSize)); - expect(objNew.$attrs.fontSize).assertEqual('-20.00fp'); + expect(objNew.$attrs.fontSize).assertEqual('16.00fp'); console.info('testText_1400 END'); done(); });