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

优化// done();

Signed-off-by: N华华小仙女 <zhurong18@h-partners.com>
上级 26c5c4ff
...@@ -695,7 +695,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -695,7 +695,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
} }
let arrLength = systemBarData.regionTint.length; let arrLength = systemBarData.regionTint.length;
for (let i = 0; i < arrLength; i++) { for (let i = 0; i < arrLength; i++) {
console.log(msgStr + 'for arrLenght compareCount: ' + compareCount + ' ,i:'+i); console.log(msgStr + 'for arrLenght compareCount: ' + compareCount + ' ,i:'+i+' ,arrLength:'+arrLength);
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);
...@@ -721,12 +721,12 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -721,12 +721,12 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
} catch (error) { } catch (error) {
console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`) console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`)
} }
done();
} else { } else {
console.log(msgStr + 'compareCount: ' + compareCount + ' ,flag:' + flag); console.log(msgStr + 'compareCount: ' + compareCount + ' ,flag:' + flag);
} }
console.log(msgStr + 'compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.SCC.length) + ' ,cloneColorArr.SBC:' + JSON.stringify(cloneColorArr.SBC)); console.log(msgStr + 'compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.SCC.length) + ' ,cloneColorArr.SBC:' + JSON.stringify(cloneColorArr.SBC));
console.log(msgStr + 'compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.SCC.length) + ' ,cloneColorArr.SCC' + JSON.stringify(cloneColorArr.SCC)); console.log(msgStr + 'compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.SCC.length) + ' ,cloneColorArr.SCC' + JSON.stringify(cloneColorArr.SCC));
done();
} else if (tempData.type === ohosWindow.WindowType.TYPE_NAVIGATION_BAR) { } else if (tempData.type === ohosWindow.WindowType.TYPE_NAVIGATION_BAR) {
console.log(msgStr + 'systemBarTintChange compare start!'); console.log(msgStr + 'systemBarTintChange compare start!');
compareCount++; compareCount++;
...@@ -751,13 +751,13 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -751,13 +751,13 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
} catch (error) { } catch (error) {
console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`) console.info(`ohosWindow.on catch error: ${JSON.stringify(error)}`)
} }
done();
} else { } else {
console.log(msgStr + 'compareCount: ' + compareCount + ' ,flag:' + flag); console.log(msgStr + 'compareCount: ' + compareCount + ' ,flag:' + flag);
} }
console.log(msgStr + 'compareCount: ' + endNum + ' ,compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.NBC.length) + ' ,cloneColorArr.SBC:' + JSON.stringify(cloneColorArr.NBC)); console.log(msgStr + 'compareCount: ' + endNum + ' ,compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.NBC.length) + ' ,cloneColorArr.SBC:' + JSON.stringify(cloneColorArr.NBC));
console.log(msgStr + 'compareCount: ' + endNum + ' ,compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.NCC.length) + ' ,cloneColorArr.SCC' + JSON.stringify(cloneColorArr.NCC)); console.log(msgStr + 'compareCount: ' + endNum + ' ,compareCount: ' + compareCount + ' ,length: ' + JSON.stringify(cloneColorArr.NCC.length) + ' ,cloneColorArr.SCC' + JSON.stringify(cloneColorArr.NCC));
endNum = compareCount endNum = compareCount
done();
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册