diff --git a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets index e920545c9c9b384bdc21a5e6c71cf0675baba083..3e41f412ff85e812fa3a62251d151b10f4da41b3 100644 --- a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets @@ -694,9 +694,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`) } let arrLength = systemBarData.regionTint.length; - let ca = cloneColorArr; - let flag = ca.NCC.length || ca.NBC.length || ca.SBC.length || ca.SCC.length for (let i = 0; i < arrLength; i++) { + console.log(msgStr + 'for arrLenght compareCount: ' + compareCount + ' ,i:'+i); let tempData = systemBarData.regionTint[i]; if (tempData.type === ohosWindow.WindowType.TYPE_STATUS_BAR) { console.log(msgStr + 'systemBarTintChange compare start! arrLength= ' + arrLength); @@ -713,6 +712,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) } else { 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) { console.log(msgStr + 'if compareCount: ' + compareCount + ' ,true flag:' + flag); try { @@ -741,6 +742,8 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) } else { 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) { console.log(msgStr + 'else compareCount: ' + compareCount + ' ,true flag:' + flag); try { @@ -804,6 +807,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) listenerFlag = listenerStatus.pending; let loopCount = commonNUMBERColorArr.length for (let i = 0; i < loopCount; i++) { + console.log(msgStr+'tempWnd.setSystemBarEnable i:'+i); let tempColor = commonNUMBERColorArr[i]; let systemBarProperties = { statusBarColor: tempColor, @@ -822,7 +826,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) } catch (error) { console.info(`tempWnd.setSystemBarProperties catch error: ${JSON.stringify(error)}`) } - // done(); } }) }