提交 761f7fc3 编写于 作者: Z zhangxinyue

fix bug

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 149b915e
...@@ -53,7 +53,7 @@ export default function positionSettingJsunit() { ...@@ -53,7 +53,7 @@ export default function positionSettingJsunit() {
console.info("[testPositionSetting001] component strJson:" + strJson); console.info("[testPositionSetting001] component strJson:" + strJson);
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[testPositionSetting001] textAlign: " + obj.$attrs.textAlign); 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'); console.info('[testPositionSetting001] END');
done(); done();
}); });
...@@ -92,7 +92,7 @@ export default function positionSettingJsunit() { ...@@ -92,7 +92,7 @@ export default function positionSettingJsunit() {
console.info("[testPositionSetting003] component strJson:" + strJson); console.info("[testPositionSetting003] component strJson:" + strJson);
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[testPositionSetting003] textAlign: " + obj.$attrs.textAlign); 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'); console.info('[testPositionSetting003] END');
done(); done();
}); });
......
...@@ -125,7 +125,7 @@ export default function textJsunit() { ...@@ -125,7 +125,7 @@ export default function textJsunit() {
expect(obj.$attrs.enabled).assertEqual(true) expect(obj.$attrs.enabled).assertEqual(true)
expect(obj.$attrs.visibility).assertEqual("Visibility.Hidden") expect(obj.$attrs.visibility).assertEqual("Visibility.Hidden")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Normal") 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.textOverflow).assertEqual("TextOverflow.Clip")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({ expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.LineThrough", color: "#FFFF0000" type: "TextDecorationType.LineThrough", color: "#FFFF0000"
...@@ -150,7 +150,7 @@ export default function textJsunit() { ...@@ -150,7 +150,7 @@ export default function textJsunit() {
expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Solid") expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Solid")
expect(obj.$attrs.visibility).assertEqual("Visibility.None") expect(obj.$attrs.visibility).assertEqual("Visibility.None")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bolder") 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.textCase).assertEqual("TextCase.UpperCase")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({ expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.None", color: "#FFFF0000" type: "TextDecorationType.None", color: "#FFFF0000"
......
...@@ -128,10 +128,10 @@ export default { ...@@ -128,10 +128,10 @@ export default {
this.showPropTrue = this.$element("showPropTrue").getInspector() this.showPropTrue = this.$element("showPropTrue").getInspector()
this.showPropFalse = this.$element("showPropFalse").getInspector() this.showPropFalse = this.$element("showPropFalse").getInspector()
this.showPropNone = this.$element("showPropNone").getInspector() this.showPropNone = this.$element("showPropNone").getInspector()
this.pickerViewViewText = this.$element("pickerViewViewText").getInspector() this.pickerViewText = this.$element("pickerViewText").getInspector()
this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector() this.pickerViewDate = this.$element("pickerViewDate").getInspector()
this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector() this.pickerViewTime = this.$element("pickerViewTime").getInspector()
this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector() this.pickerViewDatetime = this.$element("pickerViewDatetime").getInspector()
this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector() this.pickerViewMultiText = this.$element("pickerViewMultiText").getInspector()
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册