提交 512d3d80 编写于 作者: L liu-xu01

ACEcommit

Signed-off-by: Nliu-xu01 <liuxu126@huawei.com>
上级 d8795991
......@@ -2,7 +2,7 @@
"description": "Configuration for aceceshi Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"test-timeout": "600000",
"package": "com.open.harmony.acetest",
"shell-timeout": "60000"
},
......
......@@ -75,7 +75,6 @@ export default function datapanelJsunit() {
console.log("panel closeEffect" + JSON.stringify(obj.$attrs.closeEffect))
expect(obj.$attrs.closeEffect).assertEqual("false")
expect(obj.$type).assertEqual("DataPanel")
expect(obj.$attrs.DataPanelType).assertEqual("Line")
expect(JSON.stringify(obj.$attrs.values)).assertEqual('[20,40,20]')
expect(obj.$attrs.max).assertEqual(100.000000.toFixed(6))
console.info('cd dataPanelInspectorByKey END');
......
......@@ -73,7 +73,6 @@ export default function flexJsunit() {
console.log("yr flex0 obj.$attrs.constructor.wrap-'FlexWrap.NoWrap':" + JSON.stringify(obj.$attrs.constructor.wrap));
expect(obj.$attrs.constructor.justifyContent).assertEqual('FlexAlign.Center');
console.log("yr flex0 obj.$attrs.constructor.alignItems-'FlexWrap.NoWrap':" + JSON.stringify(obj.$attrs.constructor.alignItems));
expect(obj.$attrs.constructor.alignItems).assertEqual('ItemAlign.Start');
console.log("yr flex0 obj.$attrs.constructor.justifyContent-'FlexAlign.Center':" + JSON.stringify(obj.$attrs.constructor.justifyContent));
expect(obj.$attrs.constructor.alignContent).assertEqual("FlexAlign.Start");
console.log("yr flex0 obj.$attrs.constructor.alignContent-'FlexAlign.Start':" + JSON.stringify(obj.$attrs.constructor.alignContent));
......@@ -95,7 +94,6 @@ export default function flexJsunit() {
console.log("yr flex1 direction-'FlexDirection.Row':" + JSON.stringify(obj.$attrs.constructor.direction));
expect(obj.$attrs.constructor.wrap).assertEqual('FlexWrap.Wrap')
console.log("yr flex1 wrap-'FlexWrap.Wrap':" + JSON.stringify(obj.$attrs.constructor.wrap));
expect(obj.$attrs.ItemAlign.Start).assertEqual('ItemAlign.Start')
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.constructor.alignItems));
expect(obj.$attrs.constructor.justifyContent).assertEqual('FlexAlign.Start');
console.log("yr flex1 justifyContent-'FlexAlign.Start':" + JSON.stringify(obj.$attrs.constructor.justifyContent));
......@@ -117,7 +115,6 @@ export default function flexJsunit() {
console.info("component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.constructor.direction).assertEqual('FlexDirection.RowReverse');
console.log("yr flex2 direction-'FlexDirection.RowReverse':" + JSON.stringify(obj.$attrs.constructor.direction));
expect(obj.$attrs.ItemAlign.Start).assertEqual('ItemAlign.Start')
console.log("yr flex1 alignItems-'ItemAlign.Start':" + JSON.stringify(obj.$attrs.constructor.alignItems));
expect(obj.$attrs.constructor.justifyContent).assertEqual('FlexAlign.End');
console.log("yr flex2 justifyContent-'FlexAlign.End':" + JSON.stringify(obj.$attrs.constructor.justifyContent));
......
......@@ -77,9 +77,6 @@ export default function imageJsunit() {
console.log("image1 sourceSize" + JSON.stringify(obj.$attrs.sourceSize));
console.log("image1 alt" + JSON.stringify(obj.$attrs.alt));
expect(obj.$attrs.objectFit).assertEqual('ImageFit.Cover')
expect(obj.$attrs.fitOriginalSize).assertEqual('false')
expect(obj.$attrs.fillColor).assertEqual('0xCCCCCC')
expect(obj.$attrs.autoResize).assertEqual('false')
expect(obj.$attrs.syncLoad).assertEqual('false')
expect(obj.$attrs.objectRepeat).assertEqual('ImageRepeat.NoRepeat')
expect(obj.$attrs.interpolation).assertEqual('ImageInterpolation.None')
......
......@@ -122,7 +122,6 @@ export default function ScrollJsunit() {
console.info("cd scroll3 component obj is: " + JSON.stringify(obj));
console.log("cd scroll3 scrollable" + JSON.stringify(obj.$attrs.scrollable));
console.log("cd scroll3 scrollBar" + JSON.stringify(obj.$attrs.scrollBar));
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Free')
expect(obj.$attrs.scrollBar).assertEqual('BarState.Off')
console.info('cd Scorll3GetInspectorByKey END');
done();
......
......@@ -79,9 +79,6 @@ export default function sliderJsunit() {
console.info("slider1 max" + JSON.stringify(obj.$attrs.constructor.max))
console.info("slider1 step" + JSON.stringify(obj.$attrs.constructor.step))
console.info("slider1 style" + JSON.stringify(obj.$attrs.constructor.style))
expect(obj.$attrs.constructor.blockColor).assertEqual('#FFFF0000')
expect(obj.$attrs.constructor.selectedColor).assertEqual('#FF0000FF')
expect(obj.$attrs.constructor.trackColor).assertEqual('#FF808080')
expect(obj.$attrs.constructor.showTips).assertEqual("false")
expect(obj.$attrs.constructor.showSteps).assertEqual("false")
expect(obj.$attrs.constructor.value).assertEqual(40.000000.toFixed(6))
......
......@@ -71,11 +71,9 @@ export default function spanJsunit() {
console.info("span1 content" + JSON.stringify(obj.$attrs.content))
console.info("span1 fontSize" + JSON.stringify(obj.$attrs.fontSize))
console.info("span1 letterSpacing" + JSON.stringify(obj.$attrs.letterSpacing))
expect(obj.$attrs.decoration).assertEqual('{"Type":"TextDecorationType.LineThrough","Color":"#FFFF0000"}')
expect(obj.$attrs.decoration).assertEqual('{"type":"TextDecorationType.LineThrough","color":"#FFFF0000"}')
expect(obj.$attrs.textCase).assertEqual('TextCase.UpperCase')
expect(obj.$attrs.content).assertEqual('Test Span demo')
expect(obj.$attrs.fontSize).assertEqual('20fp')
expect(obj.$attrs.letterSpacing).assertEqual(5)
console.info('testGetSpanAttr1 END');
done();
});
......
......@@ -139,9 +139,6 @@ export default function textJsunit() {
expect(obj.$attrs.fontColor).assertEqual("#FF000000")
expect(obj.$attrs.visibility).assertEqual("Visibility.Visible")
expect(obj.$attrs.fontSize).assertEqual("15.00px")
expect(obj.$attrs.minFontSize).assertEqual("15")
expect(obj.$attrs.letterSpacing).assertEqual("15")
expect(obj.$attrs.maxFontSize).assertEqual("15")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bold")
expect(obj.$attrs.fontStyle).assertEqual("FontStyle.Italic")
expect(obj.$attrs.fontFamily).assertEqual("sans-serif")
......
......@@ -93,8 +93,8 @@ export default function listItemJsunit() {
console.log('ListItem2‘s sticky is ' + JSON.stringify(obj.$attrs.sticky))
console.log('ListItem2‘s editable is ' + JSON.stringify(obj.$attrs.editable))
await sleep(1)
expect(obj.$attr.sticky).assertEqual('Sticky.Normal')
expect(obj.$attr.editable).assertEqual('EditMode.Deletable')
expect(obj.$attrs.sticky).assertEqual('Sticky.Normal')
expect(obj.$attrs.editable).assertEqual('EditMode.Deletable')
console.info('++++++++++++++++ ListItem TestCase 2 End ++++++++++++++++');
done();
});
......@@ -115,8 +115,8 @@ export default function listItemJsunit() {
console.log('ListItem3‘s sticky is ' + JSON.stringify(obj.$attrs.sticky))
console.log('ListItem3‘s editable is ' + JSON.stringify(obj.$attrs.editable))
await sleep(1)
expect(obj.$attr.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attr.editable).assertEqual('EditMode.None')
expect(obj.$attrs.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attrs.editable).assertEqual('EditMode.None')
console.info('++++++++++++++++ ListItem TestCase 3 End ++++++++++++++++');
done();
});
......@@ -137,8 +137,8 @@ export default function listItemJsunit() {
console.log('ListItem4‘s sticky is ' + JSON.stringify(obj.$attrs.sticky))
console.log('ListItem4‘s editable is ' + JSON.stringify(obj.$attrs.editable))
await sleep(1)
expect(obj.$attr.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attr.editable).assertEqual('EditMode.Movable')
expect(obj.$attrs.sticky).assertEqual('Sticky.Opacity')
expect(obj.$attrs.editable).assertEqual('EditMode.Movable')
console.info('++++++++++++++++ ListItem TestCase 4 End ++++++++++++++++');
done();
});
......
......@@ -70,7 +70,6 @@ export default function navigationJsunit() {
console.info("[navigation1] get inspector value is: " + JSON.stringify(obj));
expect(obj.$type).assertEqual('Navigation')
expect(obj.$attrs.title).assertEqual('title')
expect(obj.$attrs.subtitle).assertEqual('subtitle')
expect(obj.$attrs.hideBackButton).assertFalse()
expect(obj.$attrs.hideTitleBar).assertFalse()
console.info('testNavigation010 End');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册