未验证 提交 eb9a65f1 编写于 作者: O openharmony_ci 提交者: Gitee

!8764 修正datePicker组件XTS默认值错误 CherryPick 4.0 beta1

Merge pull request !8764 from sunjiakun/cherry-pick-1685004944
......@@ -805,9 +805,13 @@ export default function datepicker() {
await Utils.sleep(2000);
let strJson = getInspectorByKey('datePicker');
let obj = JSON.parse(strJson);
let strJsonDefault = getInspectorByKey('datePickerDefault');
let objDefault = JSON.parse(strJsonDefault);
console.info("[ArkUI_Stage_timepicker_selectedTextStyle_0700] disappearColor:" + obj.$attrs.selectedTextStyle.color);
expect(obj.$attrs.selectedTextStyle.color).assertEqual('#FF007DFF');
expect(obj.$attrs.selectedTextStyle.font.size).assertEqual('20.00vp');
expect(obj.$attrs.selectedTextStyle.color).assertEqual(objDefault.$attrs.selectedTextStyle.color);
expect(obj.$attrs.selectedTextStyle.font.size).assertEqual(objDefault.$attrs.selectedTextStyle.font.size);
expect(obj.$attrs.selectedTextStyle.font.weight).assertEqual('FontWeight.Lighter');
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册