From c76f1216140ec9c2f41e2ec4790901b4133d83e9 Mon Sep 17 00:00:00 2001 From: ShiJie Date: Tue, 10 May 2022 16:28:26 +0800 Subject: [PATCH] fix: Modify the differences between branch turns Signed-off-by: ShiJie Change-Id: I5882738c5925e816025e6e3c1481876a916ee050 --- powermgr/powermgrbattery/src/main/js/default/test/List.test.js | 1 - .../src/main/js/default/test/power_manager_running_lock.test.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/powermgr/powermgrbattery/src/main/js/default/test/List.test.js b/powermgr/powermgrbattery/src/main/js/default/test/List.test.js index 1651efcce..762bdddce 100755 --- a/powermgr/powermgrbattery/src/main/js/default/test/List.test.js +++ b/powermgr/powermgrbattery/src/main/js/default/test/List.test.js @@ -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') diff --git a/powermgr/powermgrbattery/src/main/js/default/test/power_manager_running_lock.test.js b/powermgr/powermgrbattery/src/main/js/default/test/power_manager_running_lock.test.js index 6493612e1..364012307 100644 --- a/powermgr/powermgrbattery/src/main/js/default/test/power_manager_running_lock.test.js +++ b/powermgr/powermgrbattery/src/main/js/default/test/power_manager_running_lock.test.js @@ -182,6 +182,7 @@ describe('appInfoTest', function () { }) }) it('power_is_screen_on_promise_test', 0, async function (done) {//isScreenOn(): Promise + 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) + 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); -- GitLab