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 00a5393e35802ec10595400e13ead334ed068bdc..09f1e49adad035f3223656218831e094eab48c20 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);