未验证 提交 95c7cf2e 编写于 作者: O openharmony_ci 提交者: Gitee

!2693 修改ace fail用例

Merge pull request !2693 from zj/cherry-pick-1647832390
......@@ -52,7 +52,7 @@ export default function imageJsunit() {
console.info("imageTest_0100 component strJson:" + strJson);
let obj = JSON.parse(strJson);
console.info("imageTest_0100 obj.$attrs.content is: " + obj.$attrs.content);
expect(obj.$attrs.content).assertEqual('Hello');
expect(obj.$attrs.content).assertEqual('string_hello');
expect(obj.$attrs.fontSize).assertEqual('9.00fp');
console.info('imageTest_0100 END');
done();
......
......@@ -19,11 +19,12 @@ import app from '@system.app';
export default function systemAppJsunit() {
describe('appInfoTest', function () {
it('systemAppTest_0100', 0, async function (done) {
console.info('systemAppTest_0100 START');
var a = app.getInfo();
console.log('systemAppTest_0100 END' + JSON.stringify(a));
expect(a.appID == "com.open.harmony.acetest").assertTrue();
expect(a.appID == "com.open.harmony.acetestfour").assertTrue();
console.info('systemAppTest_0100 END');
done();
});
......
......@@ -36,7 +36,7 @@ export default function buttonJsunit() {
}
try {
router.clear();
await sleep(1);
await sleep(1);
let pages = router.getState();
console.info("get Button state success " + JSON.stringify(pages));
if (!("Button" == pages.name)) {
......@@ -65,16 +65,8 @@ export default function buttonJsunit() {
console.info('testGetInspectorByKey START');
let strJson = getInspectorByKey('button');
let obj = JSON.parse(strJson);
let style = JSON.parse(obj.$attrs.style)
console.log(style.fontSize)
console.info("cd button component obj is: " + JSON.stringify(obj));
console.log("cd button type" + JSON.stringify(obj.$type));
console.log("cd button Buttontype" + JSON.stringify(obj.$attrs.type));
console.log("cd button stateEffect" + JSON.stringify(obj.$attrs.stateEffect));
console.log("cd button label" + JSON.stringify(obj.$attrs.label));
console.log("cd button fontSize" + JSON.stringify(obj.$attrs.fontSize));
console.log("cd button fontWeight" + JSON.stringify(obj.$attrs.fontWeight));
console.log("cd button fontColor" + JSON.stringify(obj.$attrs.fontColor));
console.info("buttonGetInspectorByKey010 obj is: " + JSON.stringify(obj));
console.info("buttonGetInspectorByKey010 obj is: " + JSON.stringify(obj.$attrs));
expect(obj.$type).assertEqual('Button')
expect(obj.$attrs.type).assertEqual('ButtonType.Circle')
expect(obj.$attrs.stateEffect).assertEqual('true')
......@@ -92,9 +84,6 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button1');
let obj = JSON.parse(strJson);
console.info("cd button1 component obj is: " + JSON.stringify(obj));
console.log("cd button1 type" + JSON.stringify(obj.$type));
console.log("cd button1 Buttontype" + JSON.stringify(obj.$attrs.type));
console.log("cd button1 stateEffect" + JSON.stringify(obj.$attrs.stateEffect));
expect(obj.$attrs.type).assertEqual('ButtonType.Capsule')
expect(obj.$attrs.stateEffect).assertEqual('false')
console.info('cd button1InspectorByKey END');
......@@ -110,8 +99,6 @@ export default function buttonJsunit() {
let strJson = getInspectorByKey('button2');
let obj = JSON.parse(strJson);
console.info("cd button2 component obj is: " + JSON.stringify(obj));
console.log("cd button2 type" + JSON.stringify(obj.$type));
console.log("cd button2 Buttontype" + JSON.stringify(obj.$attrs.type));
expect(obj.$attrs.type).assertEqual('ButtonType.Normal')
console.info('cd button2InspectorByKey END');
done();
......
......@@ -65,22 +65,8 @@ export default function sliderJsunit() {
let obj = JSON.parse(strJson);
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor));
console.info("slider1 blockColor" + JSON.stringify(obj.$attrs.constructor.blockColor))
console.info("slider1 selectedColor" + JSON.stringify(obj.$attrs.constructor.selectedColor))
console.info("slider1 trackColor" + JSON.stringify(obj.$attrs.constructor.trackColor))
console.info("slider1 showTips" + JSON.stringify(obj.$attrs.constructor.showTips))
console.info("slider1 showSteps" + JSON.stringify(obj.$attrs.constructor.showSteps))
console.info("slider1 value" + JSON.stringify(obj.$attrs.constructor.value))
console.info("slider1 direction" + JSON.stringify(obj.$attrs.constructor.direction))
console.info("slider1 reverse" + JSON.stringify(obj.$attrs.constructor.reverse))
console.info("slider1 minLabel" + JSON.stringify(obj.$attrs.constructor.minLabel))
console.info("slider1 maxLabel" + JSON.stringify(obj.$attrs.constructor.maxLabel))
console.info("slider1 min" + JSON.stringify(obj.$attrs.constructor.min))
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.showTips).assertEqual("false")
expect(obj.$attrs.constructor.showSteps).assertEqual("false")
expect(obj.$attrs.showTips).assertEqual("false")
expect(obj.$attrs.showSteps).assertEqual("false")
expect(obj.$attrs.constructor.value).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6))
expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6))
......@@ -100,11 +86,8 @@ export default function sliderJsunit() {
let strJson = getInspectorByKey('slider2');
let obj = JSON.parse(strJson);
console.info("component obj is Slider: " + JSON.stringify(obj));
console.info("slider2 showTips" + JSON.stringify(obj.$attrs.constructor.showTips))
console.info("slider2 showSteps" + JSON.stringify(obj.$attrs.constructor.showSteps))
console.info("slider1 style" + JSON.stringify(obj.$attrs.constructor.style))
expect(obj.$attrs.constructor.showTips).assertEqual("true")
expect(obj.$attrs.constructor.showSteps).assertEqual("true")
expect(obj.$attrs.showTips).assertEqual("true")
expect(obj.$attrs.showSteps).assertEqual("true")
expect(obj.$attrs.constructor.style).assertEqual("SliderStyle.InSet")
console.info('testGetSliderAttr2 END');
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册