From ff4edba68901cd7c881b5dddc6398ac6d6caefbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E5=8D=8E=E5=B0=8F=E4=BB=99=E5=A5=B3?= Date: Wed, 16 Nov 2022 11:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96callback=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E7=9A=84setSystemBarPropertiesTest5=E7=94=A8=E4=BE=8B-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=A6=E7=BB=86=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 华华小仙女 --- .../entry/src/main/ets/test/windowCallback.test.ets | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 242dbf289..65bf5e9fa 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,10 @@ 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 +// 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 +714,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 +744,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 { -- GitLab