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

!9547 textTwo和textInput xts用例修复

Merge pull request !9547 from zhouyan/cherry-pick-1690464127
...@@ -265,7 +265,7 @@ export default function TextInputJsunit() { ...@@ -265,7 +265,7 @@ export default function TextInputJsunit() {
console.info("[TextInputJsunit_0500] textAlign: " + JSON.stringify(obj.$attrs.textAlign)); console.info("[TextInputJsunit_0500] textAlign: " + JSON.stringify(obj.$attrs.textAlign));
expect(obj.$attrs.placeholder).assertEqual(''); expect(obj.$attrs.placeholder).assertEqual('');
expect(obj.$attrs.type).assertEqual('InputType.Normal'); 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.placeholderFont).assertEqual('{"style":"FontStyle.Normal","size":"18.00fp","weight":"500","fontFamily":"sans-serif"}');
expect(obj.$attrs.enterKeyType).assertEqual('EnterKeyType.Done'); expect(obj.$attrs.enterKeyType).assertEqual('EnterKeyType.Done');
expect(obj.$attrs.caretColor).assertEqual('#FF00007B'); expect(obj.$attrs.caretColor).assertEqual('#FF00007B');
......
...@@ -64,7 +64,7 @@ export default function textTwoJsunit() { ...@@ -64,7 +64,7 @@ export default function textTwoJsunit() {
let strJson = getInspectorByKey('text1'); let strJson = getInspectorByKey('text1');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info('textTwoJsunit_0200 component obj is: ' + obj.$attrs.decoration); 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); await CommonFunc.sleep(1000);
// to modify the atrribute // to modify the atrribute
globalThis.value.message.notify({name:'type',value:TextDecorationType.Overline}) 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.
先完成此消息的编辑!
想要评论请 注册