提交 ff4edba6 编写于 作者: 华华小仙女

优化callback形式的setSystemBarPropertiesTest5用例-添加详细日志

Signed-off-by: N华华小仙女 <zhurong18@h-partners.com>
上级 16f79eac
...@@ -694,9 +694,10 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -694,9 +694,10 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`) console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`)
} }
let arrLength = systemBarData.regionTint.length; let arrLength = systemBarData.regionTint.length;
let ca = cloneColorArr; // let ca = cloneColorArr;
let flag = ca.NCC.length || ca.NBC.length || ca.SBC.length || ca.SCC.length // let flag = ca.NCC.length || ca.NBC.length || ca.SBC.length || ca.SCC.length
for (let i = 0; i < arrLength; i++) { for (let i = 0; i < arrLength; i++) {
console.log(msgStr + 'for arrLenght compareCount: ' + compareCount + ' ,i:'+i);
let tempData = systemBarData.regionTint[i]; let tempData = systemBarData.regionTint[i];
if (tempData.type === ohosWindow.WindowType.TYPE_STATUS_BAR) { if (tempData.type === ohosWindow.WindowType.TYPE_STATUS_BAR) {
console.log(msgStr + 'systemBarTintChange compare start! arrLength= ' + arrLength); console.log(msgStr + 'systemBarTintChange compare start! arrLength= ' + arrLength);
...@@ -713,6 +714,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -713,6 +714,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
} else { } else {
console.log(msgStr + 'SCC tempData.contentColor:' + JSON.stringify(tempData.contentColor)); console.log(msgStr + 'SCC tempData.contentColor:' + JSON.stringify(tempData.contentColor));
} }
let ca = cloneColorArr;
let flag = ca.NCC.length || ca.NBC.length || ca.SBC.length || ca.SCC.length
if (compareCount === 18 && !flag) { if (compareCount === 18 && !flag) {
console.log(msgStr + 'if compareCount: ' + compareCount + ' ,true flag:' + flag); console.log(msgStr + 'if compareCount: ' + compareCount + ' ,true flag:' + flag);
try { try {
...@@ -741,6 +744,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -741,6 +744,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
} else { } else {
console.log(msgStr + 'NCC tempData.contentColor:' + JSON.stringify(tempData.contentColor)); console.log(msgStr + 'NCC tempData.contentColor:' + JSON.stringify(tempData.contentColor));
} }
let ca = cloneColorArr;
let flag = ca.NCC.length || ca.NBC.length || ca.SBC.length || ca.SCC.length
if (compareCount === 18 && !flag) { if (compareCount === 18 && !flag) {
console.log(msgStr + 'else compareCount: ' + compareCount + ' ,true flag:' + flag); console.log(msgStr + 'else compareCount: ' + compareCount + ' ,true flag:' + flag);
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册