提交 c76f1216 编写于 作者: S ShiJie

fix: Modify the differences between branch turns

Signed-off-by: NShiJie <shijie20@huawei.com>
Change-Id: I5882738c5925e816025e6e3c1481876a916ee050
上级 39be9ab2
......@@ -13,6 +13,5 @@
* limitations under the License.
*/
require('./battery_unit.test.js')
require('./battery_common_event.test.js')
require('./power_manager_running_lock.test.js')
require('./system_battery.test.js')
......@@ -182,6 +182,7 @@ describe('appInfoTest', function () {
})
})
it('power_is_screen_on_promise_test', 0, async function (done) {//isScreenOn(): Promise<boolean>
power.wakeupDevice("power_is_screen_on_promise_test");
power.isScreenOn()
.then(screenOn => {
console.info('power_is_screen_on_promise_test screenOn is ' + screenOn);
......@@ -196,6 +197,7 @@ describe('appInfoTest', function () {
})
})
it('power_is_screen_on_callback_test', 0, async function (done) {//isScreenOn(callback: AsyncCallback<boolean>)
power.wakeupDevice("power_is_screen_on_callback_test");
power.isScreenOn((error, screenOn) => {
if (typeof error === "undefined") {
console.info('power_is_screen_on_callback_test screenOn is ' + screenOn);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册