From 761f7fc3cc91b827ba9b3ea05bf18d86dd1066be Mon Sep 17 00:00:00 2001 From: zhangxinyue Date: Mon, 25 Jul 2022 21:47:44 +0800 Subject: [PATCH] fix bug Signed-off-by: zhangxinyue --- .../src/main/ets/test/PositionSettingJsunit.test.ets | 4 ++-- .../entry/src/main/ets/test/TextJsunit.test.ets | 4 ++-- .../src/main/js/default/pages/pickerView/prop/index.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arkui/ace_ets_component_five/entry/src/main/ets/test/PositionSettingJsunit.test.ets b/arkui/ace_ets_component_five/entry/src/main/ets/test/PositionSettingJsunit.test.ets index 4c2a9da53..ed5780a2e 100644 --- a/arkui/ace_ets_component_five/entry/src/main/ets/test/PositionSettingJsunit.test.ets +++ b/arkui/ace_ets_component_five/entry/src/main/ets/test/PositionSettingJsunit.test.ets @@ -53,7 +53,7 @@ export default function positionSettingJsunit() { console.info("[testPositionSetting001] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testPositionSetting001] textAlign: " + obj.$attrs.textAlign); - expect(obj.$attrs.textAlign).assertEqual('TextAlign.Start'); + expect(obj.$attrs.textAlign).assertEqual('TextAlign.Left'); console.info('[testPositionSetting001] END'); done(); }); @@ -92,7 +92,7 @@ export default function positionSettingJsunit() { console.info("[testPositionSetting003] component strJson:" + strJson); let obj = JSON.parse(strJson); console.info("[testPositionSetting003] textAlign: " + obj.$attrs.textAlign); - expect(obj.$attrs.textAlign).assertEqual("TextAlign.Start"); + expect(obj.$attrs.textAlign).assertEqual("TextAlign.Right"); console.info('[testPositionSetting003] END'); done(); }); diff --git a/arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets b/arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets index b2b92908f..d79ddf0c7 100644 --- a/arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets +++ b/arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets @@ -125,7 +125,7 @@ export default function textJsunit() { expect(obj.$attrs.enabled).assertEqual(true) expect(obj.$attrs.visibility).assertEqual("Visibility.Hidden") expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Normal") - expect(obj.$attrs.textAlign).assertEqual("TextAlign.Start") + expect(obj.$attrs.textAlign).assertEqual("TextAlign.Left") expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Clip") expect(obj.$attrs.decoration).assertEqual(JSON.stringify({ type: "TextDecorationType.LineThrough", color: "#FFFF0000" @@ -150,7 +150,7 @@ export default function textJsunit() { expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Solid") expect(obj.$attrs.visibility).assertEqual("Visibility.None") expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bolder") - expect(obj.$attrs.textAlign).assertEqual("TextAlign.Center") + expect(obj.$attrs.textAlign).assertEqual("TextAlign.Right") expect(obj.$attrs.textCase).assertEqual("TextCase.UpperCase") expect(obj.$attrs.decoration).assertEqual(JSON.stringify({ type: "TextDecorationType.None", color: "#FFFF0000" diff --git a/arkui/ace_standard/src/main/js/default/pages/pickerView/prop/index.js b/arkui/ace_standard/src/main/js/default/pages/pickerView/prop/index.js index 6e9d0c873..1266b7161 100644 --- a/arkui/ace_standard/src/main/js/default/pages/pickerView/prop/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/pickerView/prop/index.js @@ -128,10 +128,10 @@ export default { this.showPropTrue = this.$element("showPropTrue").getInspector() this.showPropFalse = this.$element("showPropFalse").getInspector() this.showPropNone = this.$element("showPropNone").getInspector() - this.pickerViewViewText = this.$element("pickerViewViewText").getInspector() - this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector() - this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector() - this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector() - this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector() + this.pickerViewText = this.$element("pickerViewText").getInspector() + this.pickerViewDate = this.$element("pickerViewDate").getInspector() + this.pickerViewTime = this.$element("pickerViewTime").getInspector() + this.pickerViewDatetime = this.$element("pickerViewDatetime").getInspector() + this.pickerViewMultiText = this.$element("pickerViewMultiText").getInspector() } } -- GitLab