diff --git a/arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets b/arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets index c0520d73d0a4ae089cd2c10385bf5856442b84c6..016a559d7ff620d57688b867695d037e03744ae8 100644 --- a/arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets +++ b/arkui/ace_ets_component_attrlack/entry/src/main/ets/test/units.test.ets @@ -110,7 +110,9 @@ export default function unitsModuleNameJsunit() { console.info("[testunitsMinWidth0001] component constraintSize strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Text'); - expect(obj.$attrs.constraintSize).assertEqual('{"minWidth":"200.00vp","minHeight":"0.00vp","maxWidth":"119846208990821053862485980936868943386622755140025217957449185986963312195176500631099345318391471397553524277795258607297703698567960268420438325781003880454605934667138922450849236563878474354509650486846713237047577973081895276546573889957650195146049445629577007136228474373133005395361920118602782998528.00vp","maxHeight":"0.00vp"}'); + var subobj = JSON.parse(obj.$attrs.constraintSize); + console.info('[testunitsMinWidth0001] constraintSize value :' + subobj.minWidth); + expect(subobj.minWidth).assertEqual('200.00vp'); console.info("[testunitsMinWidth0001] constraintSize value :" + obj.$attrs.constraintSize); done(); });