From 539f6963e8aa89d8c933eba73da5afacc7cfdac8 Mon Sep 17 00:00:00 2001 From: hk_js Date: Tue, 24 May 2022 18:47:48 +0800 Subject: [PATCH] fix xts Signed-off-by: hk_js --- .../src/main/js/default/test/window.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphic/windowstandard/src/main/js/default/test/window.test.js b/graphic/windowstandard/src/main/js/default/test/window.test.js index 151d4d14d..4559fe250 100755 --- a/graphic/windowstandard/src/main/js/default/test/window.test.js +++ b/graphic/windowstandard/src/main/js/default/test/window.test.js @@ -1893,9 +1893,9 @@ describe('window_test', function () { console.log('screenshotTest setScreenActiveModeTest1 getAllScreen src' + src); expect(src[0] != null).assertTrue(); let screenIndex = src[0]; - screenIndex.setScreenActiveMode(0).then(res => { - console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 res: ' + res); - expect(res).assertTrue(); + screenIndex.setScreenActiveMode(0).then(() => { + console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 success '); + expect(TRUE_WINDOW).assertTrue() done(); },(err) => { console.log('screenshotTest setScreenActiveModeTest1 setScreenActiveMode 0 failed: err' + JSON.stringify(err)); @@ -1925,7 +1925,7 @@ describe('window_test', function () { done(); },(err) => { console.log('screenshotTest setScreenActiveModeTest2 setScreenActiveMode -5 failed: err' + JSON.stringify(err)); - expect(err.code).assertEqual(0); + expect(err.code).assertEqual(-1); done(); }) }) -- GitLab