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

优化callback形式的setSystemBarPropertiesTest5用例

Signed-off-by: N华华小仙女 <zhurong18@h-partners.com>
上级 90aa762c
...@@ -713,7 +713,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -713,7 +713,6 @@ 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));
} }
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 {
...@@ -742,8 +741,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -742,8 +741,6 @@ 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.
先完成此消息的编辑!
想要评论请 注册