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

!9689 【ACE子系统】修改失败用例

Merge pull request !9689 from hekun/master
......@@ -36,23 +36,25 @@ struct CommonColorMode {
}
onLayout(children, constraint) {
Log.showInfo(TAG, `onLayout start` + JSON.stringify(children));
children[0].borderInfo = {
borderWidth: 20,
margin: 30,
padding: 20
}
children[0].constraint = {
maxWidth: 200
}
children[0].layout({
position: {
x:20,
y:20
},
constraint: {
maxWidth: 200
if (children.length != 0) {
children[0].borderInfo = {
borderWidth: 20,
margin: 30,
padding: 20
}
children[0].constraint = {
maxWidth: 200
}
})
children[0].layout({
position: {
x:20,
y:20
},
constraint: {
maxWidth: 200
}
})
}
}
onMeasure(children, constraint) {
Log.showInfo(TAG, `onMeasurestart`)
......
......@@ -91,8 +91,8 @@ export default function GridRowJsunit() {
expect(obj.$attrs.columns).assertEqual('12');
expect(obj.$attrs.breakpoints).assertEqual('12');
expect(obj.$attrs.direction).assertEqual('12');
let x = vp2px(5).toFixed(6);
let y = vp2px(10).toFixed(6);
let x = vp2px(0).toFixed(6);
let y = vp2px(0).toFixed(6);
let str = '<' + x + ', '+y;
expect(obj.$attrs.gutter).assertEqual(str);
console.info('[GridRowJsunit_0200] END');
......@@ -124,8 +124,8 @@ export default function GridRowJsunit() {
expect(obj.$attrs.columns).assertEqual('12');
expect(obj.$attrs.breakpoints).assertEqual('12');
expect(obj.$attrs.direction).assertEqual('12');
let x = vp2px(5).toFixed(6);
let y = vp2px(10).toFixed(6);
let x = vp2px(-10).toFixed(6);
let y = vp2px(-10).toFixed(6);
let str = '<' + x + ', '+y;
expect(obj.$attrs.gutter).assertEqual(str);
console.info('[GridRowJsunit_0300] END');
......
......@@ -109,7 +109,7 @@ export default function SelectJsunit() {
console.info("[SelectJsunit_0200] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.selected).assertEqual('2');
expect(obj.$attrs.value).assertEqual('testButton');
expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"500","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"FontWeight.Medium","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF');
expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FFFFFF00');
......@@ -186,7 +186,7 @@ export default function SelectJsunit() {
console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.selected).assertEqual('0');
expect(obj.$attrs.value).assertEqual('10');
expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"500","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.font).assertEqual('{"size":"16.00fp","weight":"FontWeight.Medium","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.fontColor).assertEqual('#FF00007B');
expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF');
expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册