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

!9512 修复textTwo和textInput失败用例--bug修复正向修改xts用例

Merge pull request !9512 from zhouyan/fixxts0726
......@@ -265,7 +265,7 @@ export default function TextInputJsunit() {
console.info("[TextInputJsunit_0500] textAlign: " + JSON.stringify(obj.$attrs.textAlign));
expect(obj.$attrs.placeholder).assertEqual('');
expect(obj.$attrs.type).assertEqual('InputType.Normal');
expect(obj.$attrs.placeholderColor).assertEqual('#FF000000');
expect(obj.$attrs.placeholderColor).assertEqual('#99182431');
expect(obj.$attrs.placeholderFont).assertEqual('{"style":"FontStyle.Normal","size":"18.00fp","weight":"500","fontFamily":"sans-serif"}');
expect(obj.$attrs.enterKeyType).assertEqual('EnterKeyType.Done');
expect(obj.$attrs.caretColor).assertEqual('#FF00007B');
......
......@@ -64,7 +64,7 @@ export default function textTwoJsunit() {
let strJson = getInspectorByKey('text1');
let obj = JSON.parse(strJson);
console.info('textTwoJsunit_0200 component obj is: ' + obj.$attrs.decoration);
expect(obj.$attrs.decoration).assertEqual('{"type":"TextDecorationType.LineThrough","color":"#FFFFEEAF"}');
expect(obj.$attrs.decoration).assertEqual('{"type":"TextDecorationType.None","color":"#FF000000"}');
await CommonFunc.sleep(1000);
// to modify the atrribute
globalThis.value.message.notify({name:'type',value:TextDecorationType.Overline})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册