From ba29bbc2c69d3de276979b076a19212a989465ba 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, 8 Feb 2023 17:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9setWindowMode=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81401->1300002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 华华小仙女 --- .../main/ets/test/displayAndWindowRefactorInterface.test.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets b/graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets index 73b9f5263..c6ecf066a 100644 --- a/graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets +++ b/graphic/windowStage/entry/src/main/ets/test/displayAndWindowRefactorInterface.test.ets @@ -2305,7 +2305,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta expect(!!tempWnd).assertTrue(); await tempWnd.setWindowMode(ohosWindow.WindowMode.UNDEFINED).catch(async (err) => { console.error(msgStr + 'Failed to set the window mode. Cause: ' + JSON.stringify(err)); - expect(err.code == 401).assertTrue(); + expect(err.code == 1300002).assertTrue(); await tempWnd.destroyWindow() console.log(msgStr + 'tempWnd.setWindowMode failed ' + 'finished'); done(); @@ -2341,7 +2341,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta console.log(msgStr + 'currentType: ' + tempType) console.error(msgStr + 'Failed to set the window mode. Cause: ' + JSON.stringify(err)); try { - expect(err.code == 401).assertTrue(); + expect(err.code == 1300002).assertTrue(); } catch (error) { console.info(`ohosWindow.createWindow catch error: ${JSON.stringify(error)}`) } -- GitLab