From 1be793c7920e343f340a1a371f11ea008f2da8df Mon Sep 17 00:00:00 2001 From: zhurong Date: Wed, 6 Jul 2022 17:00:36 +0800 Subject: [PATCH] Modify alarm prompt Signed-off-by: zhurong --- .../src/main/ets/test/windowCallback.test.ets | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 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 54e0d80f4..3c3fcf190 100644 --- a/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/windowCallback.test.ets @@ -763,7 +763,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) done(); } } else { - expectedError(err, caseName, 'ohosWindow.create ' + tempType, done); + unexpectedError(err, caseName, 'ohosWindow.create ' + tempType, done); } }) } @@ -828,7 +828,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) done(); return; } - expectedError(err, caseName, 'ohosWindow.create', done); + unexpectedError(err, caseName, 'ohosWindow.create', done); }) }) @@ -1013,7 +1013,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) console.log(msgStr + 'tempWnd.setWindowType data' + JSON.stringify(data)); console.log(msgStr + 'tempWnd.setWindowType !!data' + !!data); if (!!data) { - expectedError(err, caseName, 'tempWnd.setWindowType', done); + unexpectedError(err, caseName, 'tempWnd.setWindowType', done); } else { expect(err.code == 1003).assertTrue(); done(); @@ -1059,7 +1059,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) expect(err.code == 1001).assertTrue(); done(); } else { - expectedError(err, caseName, 'tempWnd.setWindowType', done); + unexpectedError(err, caseName, 'tempWnd.setWindowType', done); } }) } @@ -1093,7 +1093,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) console.log(msgStr + 'tempWnd.loadContent data' + JSON.stringify(data)); console.log(msgStr + 'tempWnd.loadContent !data' + !data); if (err && err.code) { - expectedError(err, caseName, 'tempWnd.loadContent', done); + unexpectedError(err, caseName, 'tempWnd.loadContent', done); } else { expect(!data).assertTrue(); done(); @@ -1131,7 +1131,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) expect(err.code === 1003).assertTrue(); done(); } else { - expectedError(err, caseName, 'tempWnd.loadContent', done); + unexpectedError(err, caseName, 'tempWnd.loadContent', done); } }) } else { @@ -1429,7 +1429,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) if (err && err.code)unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(true)', done); console.log(msgStr + 'screenManager.setScreenRotationLocked err: ' + JSON.stringify(err)); console.log(msgStr + 'screenManager.setScreenRotationLocked true data: ' + JSON.stringify(data)); - expect(!data).assertTrue(); screenManager.isScreenRotationLocked((err, data) => { if (err && err.code)unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked', done); console.log(msgStr + 'screenManager.isLocked err: ' + JSON.stringify(err)); @@ -1439,7 +1438,6 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) if (err && err.code)unexpectedError(err, caseName, 'screenManager.setScreenRotationLocked(false)', done); console.log(msgStr + 'screenManager.setScreenRotationLocked err: ' + JSON.stringify(err)); console.log(msgStr + 'screenManager.setScreenRotationLocked true data: ' + JSON.stringify(data)); - expect(!data).assertTrue(); screenManager.isScreenRotationLocked((err, data) => { if (err && err.code)unexpectedError(err, caseName, 'screenManager.isScreenRotationLocked', done); console.log(msgStr + 'screenManager.isLocked err: ' + JSON.stringify(err)); -- GitLab