未验证 提交 3bd23b21 编写于 作者: O openharmony_ci 提交者: Gitee

!6353 【代码上库】【xts_acts】【powermgr】测试用例优化

Merge pull request !6353 from kangqiao/master
......@@ -150,7 +150,16 @@ describe('SystemDisplayTest', function () {
currValue = data.value;
}
});
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册