From 2b97957208047d1762e4c1711d5909b983513b31 Mon Sep 17 00:00:00 2001 From: hk_js Date: Tue, 31 May 2022 17:29:46 +0800 Subject: [PATCH] fix the default value Signed-off-by: hk_js --- .../windowstandard/src/main/js/default/test/window.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 851b5e3d0..7778d31bb 100755 --- a/graphic/windowstandard/src/main/js/default/test/window.test.js +++ b/graphic/windowstandard/src/main/js/default/test/window.test.js @@ -122,7 +122,7 @@ describe('window_test', function () { expect(!data.isKeepScreenOn).assertTrue(); expect(!data.isTransparent).assertTrue(); expect(data.brightness != null).assertTrue(); - expect(data.dimBehindValue).assertEqual(undefined); + expect(data.dimBehindValue).assertEqual(0); expect(!data.isRoundCorner).assertTrue(); expect(!data.isPrivacyMode).assertTrue(); done(); @@ -166,7 +166,7 @@ describe('window_test', function () { expect(!data.isKeepScreenOn).assertTrue(); expect(!data.isTransparent).assertTrue(); expect(data.brightness != null).assertTrue(); - expect(data.dimBehindValue).assertEqual(undefined); + expect(data.dimBehindValue).assertEqual(0); expect(!data.isRoundCorner).assertTrue(); expect(!data.isPrivacyMode).assertTrue(); done(); -- GitLab