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

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

Merge pull request !9689 from hekun/master
...@@ -36,6 +36,7 @@ struct CommonColorMode { ...@@ -36,6 +36,7 @@ struct CommonColorMode {
} }
onLayout(children, constraint) { onLayout(children, constraint) {
Log.showInfo(TAG, `onLayout start` + JSON.stringify(children)); Log.showInfo(TAG, `onLayout start` + JSON.stringify(children));
if (children.length != 0) {
children[0].borderInfo = { children[0].borderInfo = {
borderWidth: 20, borderWidth: 20,
margin: 30, margin: 30,
...@@ -54,6 +55,7 @@ struct CommonColorMode { ...@@ -54,6 +55,7 @@ struct CommonColorMode {
} }
}) })
} }
}
onMeasure(children, constraint) { onMeasure(children, constraint) {
Log.showInfo(TAG, `onMeasurestart`) Log.showInfo(TAG, `onMeasurestart`)
......
...@@ -91,8 +91,8 @@ export default function GridRowJsunit() { ...@@ -91,8 +91,8 @@ export default function GridRowJsunit() {
expect(obj.$attrs.columns).assertEqual('12'); expect(obj.$attrs.columns).assertEqual('12');
expect(obj.$attrs.breakpoints).assertEqual('12'); expect(obj.$attrs.breakpoints).assertEqual('12');
expect(obj.$attrs.direction).assertEqual('12'); expect(obj.$attrs.direction).assertEqual('12');
let x = vp2px(5).toFixed(6); let x = vp2px(0).toFixed(6);
let y = vp2px(10).toFixed(6); let y = vp2px(0).toFixed(6);
let str = '<' + x + ', '+y; let str = '<' + x + ', '+y;
expect(obj.$attrs.gutter).assertEqual(str); expect(obj.$attrs.gutter).assertEqual(str);
console.info('[GridRowJsunit_0200] END'); console.info('[GridRowJsunit_0200] END');
...@@ -124,8 +124,8 @@ export default function GridRowJsunit() { ...@@ -124,8 +124,8 @@ export default function GridRowJsunit() {
expect(obj.$attrs.columns).assertEqual('12'); expect(obj.$attrs.columns).assertEqual('12');
expect(obj.$attrs.breakpoints).assertEqual('12'); expect(obj.$attrs.breakpoints).assertEqual('12');
expect(obj.$attrs.direction).assertEqual('12'); expect(obj.$attrs.direction).assertEqual('12');
let x = vp2px(5).toFixed(6); let x = vp2px(-10).toFixed(6);
let y = vp2px(10).toFixed(6); let y = vp2px(-10).toFixed(6);
let str = '<' + x + ', '+y; let str = '<' + x + ', '+y;
expect(obj.$attrs.gutter).assertEqual(str); expect(obj.$attrs.gutter).assertEqual(str);
console.info('[GridRowJsunit_0300] END'); console.info('[GridRowJsunit_0300] END');
......
...@@ -109,7 +109,7 @@ export default function SelectJsunit() { ...@@ -109,7 +109,7 @@ export default function SelectJsunit() {
console.info("[SelectJsunit_0200] component obj is: " + JSON.stringify(obj)); console.info("[SelectJsunit_0200] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.selected).assertEqual('2'); expect(obj.$attrs.selected).assertEqual('2');
expect(obj.$attrs.value).assertEqual('testButton'); 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.selectedOptionBgColor).assertEqual('#FF0000FF');
expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}');
expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FFFFFF00'); expect(obj.$attrs.selectedOptionFontColor).assertEqual('#FFFFFF00');
...@@ -186,7 +186,7 @@ export default function SelectJsunit() { ...@@ -186,7 +186,7 @@ export default function SelectJsunit() {
console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj)); console.info("[SelectJsunit_0400] component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.selected).assertEqual('0'); expect(obj.$attrs.selected).assertEqual('0');
expect(obj.$attrs.value).assertEqual('10'); 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.fontColor).assertEqual('#FF00007B');
expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF'); expect(obj.$attrs.selectedOptionBgColor).assertEqual('#FF0000FF');
expect(obj.$attrs.selectedOptionFont).assertEqual('{"size":"16.00fp","weight":"400","family":"","style":"FontStyle.Normal"}'); 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.
先完成此消息的编辑!
想要评论请 注册