提交 c389c2aa 编写于 作者: W wang-xupeng2

update TextInput and marquee testcases

Signed-off-by: Nwang-xupeng2 <wangxupeng2@huawei.com>
上级 aa795f5c
...@@ -267,7 +267,7 @@ export default function TextInputJsunit() { ...@@ -267,7 +267,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('#FF008000');
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');
......
...@@ -131,7 +131,7 @@ export default function marqueeJsunit() { ...@@ -131,7 +131,7 @@ export default function marqueeJsunit() {
let strJson = getInspectorByKey('marquee'); let strJson = getInspectorByKey('marquee');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
// to confirm // to confirm
expect(parseInt(obj.$attrs.step)).assertEqual(vp2px(6)); expect(parseInt(obj.$attrs.step)).assertEqual(6);
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册