提交 bcf61f28 编写于 作者: S sunjiakun
上级 179f2eaa
...@@ -805,9 +805,13 @@ export default function datepicker() { ...@@ -805,9 +805,13 @@ export default function datepicker() {
await Utils.sleep(2000); await Utils.sleep(2000);
let strJson = getInspectorByKey('datePicker'); let strJson = getInspectorByKey('datePicker');
let obj = JSON.parse(strJson); 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); console.info("[ArkUI_Stage_timepicker_selectedTextStyle_0700] disappearColor:" + obj.$attrs.selectedTextStyle.color);
expect(obj.$attrs.selectedTextStyle.color).assertEqual('#FF007DFF'); expect(obj.$attrs.selectedTextStyle.color).assertEqual(objDefault.$attrs.selectedTextStyle.color);
expect(obj.$attrs.selectedTextStyle.font.size).assertEqual('20.00vp'); expect(obj.$attrs.selectedTextStyle.font.size).assertEqual(objDefault.$attrs.selectedTextStyle.font.size);
expect(obj.$attrs.selectedTextStyle.font.weight).assertEqual('FontWeight.Lighter'); expect(obj.$attrs.selectedTextStyle.font.weight).assertEqual('FontWeight.Lighter');
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册