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 1651efcce05c6743408b93a6acb595e748e4072d..762bdddced80461584a2d1f1f608a17f733db95c 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 6493612e12934a4c58b298c7c03c55b40f96168d..364012307647bc16bacd71bddda4d5551014037d 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);