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

!9210 【Select】异常值按默认值处理,修正xts用例

Merge pull request !9210 from zhaoxinyu/XTS_select
...@@ -184,16 +184,16 @@ export default function SelectJsunit() { ...@@ -184,16 +184,16 @@ export default function SelectJsunit() {
let strJson = getInspectorByKey('select'); let strJson = getInspectorByKey('select');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj)); console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.selected).assertEqual('0'); expect(obj.$attrs.selected).assertEqual('-1');
expect(obj.$attrs.value).assertEqual('10'); expect(obj.$attrs.value).assertEqual('10');
expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"500","family":"","style":"FontStyle.Normal"}'); expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"500","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.fontColor).assertEqual('#FF00007B'); expect(obj.$attrs.fontColor).assertEqual('#FF00007B');
expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF'); expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF');
expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FFFFFF00'); expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FF007DFF');
expect(obj.$attrs.optionBgColor).assertEqual('#FF0000FF'); expect(obj.$attrs.optionBgColor).assertEqual('#FFFFFFFF');
expect(obj.$attrs.optionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); expect(obj.$attrs.optionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.optionFontColor).assertEqual('#FFFFFF00'); expect(obj.$attrs.optionFontColor).assertEqual('#FF00007B');
await CommonFunc.sleep(1000); await CommonFunc.sleep(1000);
let strJson1 = getInspectorByKey('indexValue'); let strJson1 = getInspectorByKey('indexValue');
let obj1 = JSON.parse(strJson1); let obj1 = JSON.parse(strJson1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册