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

update Divider testcases

Signed-off-by: Nwang-xupeng2 <wangxupeng2@huawei.com>
上级 c389c2aa
...@@ -50,7 +50,7 @@ export default function dividerJsunit() { ...@@ -50,7 +50,7 @@ export default function dividerJsunit() {
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("dividerJsunit_0100'] component obj is: " + JSON.stringify(obj)); console.info("dividerJsunit_0100'] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.vertical).assertEqual('false'); expect(obj.$attrs.vertical).assertEqual('false');
expect(obj.$attrs.strokeWidth).assertEqual('20.000000'); expect(obj.$attrs.strokeWidth).assertEqual('20.00vp');
// to confirm // to confirm
//expect(obj.$attrs.lineCap).assertEqual('LineCapStyle.Butt'); //expect(obj.$attrs.lineCap).assertEqual('LineCapStyle.Butt');
expect(obj.$attrs.lineCap).assertEqual('BUTT'); expect(obj.$attrs.lineCap).assertEqual('BUTT');
...@@ -72,7 +72,7 @@ export default function dividerJsunit() { ...@@ -72,7 +72,7 @@ export default function dividerJsunit() {
let strJson = getInspectorByKey('divider'); let strJson = getInspectorByKey('divider');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("[dividerJsunit_0200'] component obj is: " + JSON.stringify(obj.$attrs.lineCap)); console.info("[dividerJsunit_0200'] component obj is: " + JSON.stringify(obj.$attrs.lineCap));
expect(obj.$attrs.strokeWidth).assertEqual('30.000000'); expect(obj.$attrs.strokeWidth).assertEqual('30.00vp');
expect(obj.$attrs.lineCap).assertEqual('ROUND'); expect(obj.$attrs.lineCap).assertEqual('ROUND');
expect(obj.$attrs.color).assertEqual('#FFFFFFFF'); expect(obj.$attrs.color).assertEqual('#FFFFFFFF');
done(); done();
...@@ -105,7 +105,7 @@ export default function dividerJsunit() { ...@@ -105,7 +105,7 @@ export default function dividerJsunit() {
// check the value of changed attribute // check the value of changed attribute
let strJson = getInspectorByKey('divider'); let strJson = getInspectorByKey('divider');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
expect(obj.$attrs.strokeWidth).assertEqual('-30.000000'); expect(obj.$attrs.strokeWidth).assertEqual('-30.00vp');
expect(obj.$attrs.lineCap).assertEqual('BUTT'); expect(obj.$attrs.lineCap).assertEqual('BUTT');
// to confirm // to confirm
expect(obj.$attrs.color).assertEqual('#33182431'); expect(obj.$attrs.color).assertEqual('#33182431');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册