提交 b9053fff 编写于 作者: L luffy505

modify

Signed-off-by: Nluffy505 <zhangjuan54@huawei.com>
上级 fb9893a7
...@@ -67,8 +67,8 @@ export default function columnSplitJsunit() { ...@@ -67,8 +67,8 @@ export default function columnSplitJsunit() {
console.info("component obj is: " + JSON.stringify(obj)) console.info("component obj is: " + JSON.stringify(obj))
expect(obj.$type).assertEqual('ColumnSplit') expect(obj.$type).assertEqual('ColumnSplit')
console.info("yr ColumnSplit0 type: " + JSON.stringify(obj.$type)) console.info("yr ColumnSplit0 type: " + JSON.stringify(obj.$type))
expect(obj.$attrs.resizable).assertEqual('true')
console.log("yr columnSplit0 obj.$resizable-'true':" + JSON.stringify(obj.$attrs.resizable)) console.log("yr columnSplit0 obj.$resizable-'true':" + JSON.stringify(obj.$attrs.resizable))
expect(obj.$attrs.resizeable).assertEqual('true')
console.info('new columnSplit0 END') console.info('new columnSplit0 END')
done() done()
}) })
...@@ -83,8 +83,8 @@ export default function columnSplitJsunit() { ...@@ -83,8 +83,8 @@ export default function columnSplitJsunit() {
let strJson = getInspectorByKey('columnSplit1'); let strJson = getInspectorByKey('columnSplit1');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); console.info("component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.resizable).assertEqual('false')
console.log("yr columnSplit obj.$resizable-'false':" + JSON.stringify(obj.$attrs.resizable)); console.log("yr columnSplit obj.$resizable-'false':" + JSON.stringify(obj.$attrs.resizable));
expect(obj.$attrs.resizeable).assertEqual('false')
console.info('new columnSplit1 END'); console.info('new columnSplit1 END');
done(); done();
}) })
......
...@@ -64,21 +64,15 @@ export default function progressJsunit() { ...@@ -64,21 +64,15 @@ export default function progressJsunit() {
console.info('testGetProgressAttr START'); console.info('testGetProgressAttr START');
let strJson = getInspectorByKey('progress'); let strJson = getInspectorByKey('progress');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); let objConstructor = JSON.parse(obj.$attrs.constructor)
console.log("progress value" + JSON.stringify(obj.$attrs.value)) console.log("progress constructor is " + objConstructor)
console.log("progress type" + JSON.stringify(obj.$type))
console.log("progress color" + JSON.stringify(obj.$attrs.color))
console.log("progress width" + JSON.stringify(obj.$attrs.width))
console.log("progress height" + JSON.stringify(obj.$attrs.height))
console.log("progress total" + JSON.stringify(obj.$attrs.total))
console.log("progress style" + JSON.stringify(obj.$attrs.style))
expect(obj.$attrs.value).assertEqual(3.000000.toFixed(6)) expect(obj.$attrs.value).assertEqual(3.000000.toFixed(6))
expect(obj.$type).assertEqual('Progress') expect(obj.$type).assertEqual('Progress')
expect(obj.$attrs.color).assertEqual("#FF0000FF") expect(obj.$attrs.color).assertEqual("#FF0000FF")
expect(obj.$attrs.width).assertEqual("50.00vp") expect(obj.$attrs.width).assertEqual("50.00vp")
expect(obj.$attrs.height).assertEqual("70.00vp") expect(obj.$attrs.height).assertEqual("70.00vp")
expect(obj.$attrs.total).assertEqual(40.000000.toFixed(6)) expect(objConstructor.total).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.style).assertEqual("ProgressStyle.Linear") expect(objConstructor.type).assertEqual("ProgressStyle.Linear")
console.info('testGetProgressAttr END'); console.info('testGetProgressAttr END');
done(); done();
}); });
...@@ -93,8 +87,9 @@ export default function progressJsunit() { ...@@ -93,8 +87,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress2'); let strJson = getInspectorByKey('progress2');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style)) let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Eclipse") console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Eclipse")
console.info('testGetProgressAttr2 END'); console.info('testGetProgressAttr2 END');
done(); done();
}); });
...@@ -109,8 +104,9 @@ export default function progressJsunit() { ...@@ -109,8 +104,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress3'); let strJson = getInspectorByKey('progress3');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style)) let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Ring") console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Ring")
console.info('testGetProgressAttr3 END'); console.info('testGetProgressAttr3 END');
done(); done();
}); });
...@@ -125,8 +121,9 @@ export default function progressJsunit() { ...@@ -125,8 +121,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress4'); let strJson = getInspectorByKey('progress4');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style)) let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.ScaleRing") console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.ScaleRing")
console.info('testGetProgressAttr4 END'); console.info('testGetProgressAttr4 END');
done(); done();
}); });
...@@ -141,8 +138,9 @@ export default function progressJsunit() { ...@@ -141,8 +138,9 @@ export default function progressJsunit() {
let strJson = getInspectorByKey('progress5'); let strJson = getInspectorByKey('progress5');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
console.info("component obj is: " + JSON.stringify(obj)); console.info("component obj is: " + JSON.stringify(obj));
console.log("progress style" + JSON.stringify(obj.$attrs.style)) let objConstructor = JSON.parse(obj.$attrs.constructor)
expect(obj.$attrs.style).assertEqual("ProgressStyle.Capsule") console.log("progress constructor is " + objConstructor)
expect(objConstructor.type).assertEqual("ProgressStyle.Capsule")
console.info('testGetProgressAttr5 END'); console.info('testGetProgressAttr5 END');
done(); done();
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for acevideo Tests", "description": "Configuration for acevideo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "30000", "test-timeout": "1000000",
"package": "com.example.acevideo", "package": "com.example.acevideo",
"shell-timeout": "30000" "shell-timeout": "30000"
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册