From 655ba4e4e4895483e25160f9777b0ed50744858d Mon Sep 17 00:00:00 2001 From: greada Date: Thu, 3 Nov 2022 21:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=B8=8A=E5=BA=93?= =?UTF-8?q?=E3=80=91=E3=80=90xts=5Facts=E3=80=91=E3=80=90powermgr=E3=80=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: greada --- .../src/main/js/test/system_display.test.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/powermgr/display_manager/src/main/js/test/system_display.test.js b/powermgr/display_manager/src/main/js/test/system_display.test.js index 00a5393e3..09f1e49ad 100644 --- a/powermgr/display_manager/src/main/js/test/system_display.test.js +++ b/powermgr/display_manager/src/main/js/test/system_display.test.js @@ -150,7 +150,16 @@ describe('SystemDisplayTest', function () { currValue = data.value; } }); - brightness.setValue({ value: setValue }); + brightness.setKeepScreenOn({ + keepScreenOn: true, + success: function () { + console.log('handling set keep screen on success.'); + brightness.setValue({ value: setValue }); + }, + fail: function (data, code) { + console.error('handling set keep screen on fail, code:' + code + ', data: ' + data); + } + }); brightness.getValue({ success: (data) => { console.log("set_value_success_value, brightness: " + data.value); -- GitLab