From 85cc7f0da1e2e1642849cbb3d6c813ddca56b070 Mon Sep 17 00:00:00 2001 From: sunjiakun Date: Thu, 17 Aug 2023 18:01:46 +0800 Subject: [PATCH] fix search xts failed item Signed-off-by: sunjiakun --- .../ace_ets_component_search/src/main/ets/test/Search.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_search/src/main/ets/test/Search.ets b/arkui/ace_ets_components_ux/ace_ets_component_search/src/main/ets/test/Search.ets index 8419b16e7..824945f1e 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_search/src/main/ets/test/Search.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_search/src/main/ets/test/Search.ets @@ -2375,13 +2375,13 @@ export default function search() { await Utils.sleep(2000); let strJson = getInspectorByKey('searchTestNumber'); + let strJson2 = getInspectorByKey('searchTestDefaultValue'); console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(strJson)) let obj = JSON.parse(strJson); + let obj2 = JSON.parse(strJson2); console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(obj.$attrs.cancelButton)); console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + JSON.stringify(obj.$attrs.cancelButton.icon.size)); - let result : number = 0; - console.info("[ArkUI_Stage_Search_CancelButton_1300]: " + vp2px(result).toFixed(2)); - expect(obj.$attrs.cancelButton.icon.size).assertEqual(vp2px(result).toFixed(2) + "px"); + expect(obj.$attrs.cancelButton.icon.size).assertEqual(obj2.$attrs.cancelButton.icon.size); console.info("[ArkUI_Stage_Search_CancelButton_1300] end"); done(); }); -- GitLab