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 38c4cf75c57d3d62f8d0bed8b7f64e75998c4914..54e0d80f413d4a8f57e5389e66895cd612ae8a6f 100644 --- a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets @@ -63,14 +63,15 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) on: false, typeStr: '', }; + var newWindowObj = null; beforeAll(function () { appWindowTypeArr = Object.keys(appWindowTypeDic); systemWindowTypeArr = Object.keys(systemWindowTypeDic); - for (i in ohosWindow.WindowType) { + for (var i in ohosWindow.WindowType) { windowTypeArr.push(ohosWindow.WindowType[i]); } console.log('jsunittest beforeall'); - console.log(msgStr + 'beforeall ohosWindow.windowType' + JSON.stringify(ohosWindow.windowType)) + console.log('beforeall ohosWindow.windowType' + JSON.stringify(ohosWindow.WindowType)) }) beforeEach(function () { })