From af45b25db7c604fda5e5fc219c19e1cba5ba5a2d Mon Sep 17 00:00:00 2001 From: zhaoruiyuan Date: Thu, 10 Mar 2022 15:09:23 +0800 Subject: [PATCH] Fix xts test issue Add battery statistics test to rk3568 Fix interface spell issue Signed-off-by: zhaoruiyuan --- powermgr/BUILD.gn | 1 + .../js/default/test/batterystats_uint.test.js | 20 +++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/powermgr/BUILD.gn b/powermgr/BUILD.gn index af90e921d..54074eddd 100755 --- a/powermgr/BUILD.gn +++ b/powermgr/BUILD.gn @@ -17,6 +17,7 @@ group("powermgr") { if (is_standard_system) { deps = [ "powermgrbattery_rk3568:powermgr_battery_test_rk3568", + "powermgrbatterystats:powermgr_batterystats_test", "powermgrthermal:powermgr_thermal_test", ] } diff --git a/powermgr/powermgrbatterystats/src/main/js/default/test/batterystats_uint.test.js b/powermgr/powermgrbatterystats/src/main/js/default/test/batterystats_uint.test.js index dd75be838..263d70094 100755 --- a/powermgr/powermgrbatterystats/src/main/js/default/test/batterystats_uint.test.js +++ b/powermgr/powermgrbatterystats/src/main/js/default/test/batterystats_uint.test.js @@ -35,11 +35,11 @@ describe('appInfoTest', function () { /** /* @tc.number batteryStats_js_001 * @tc.name batteryStats_001 - * @tc.desc batteryStats getbatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_BLUETOOTH + * @tc.desc batteryStats getBatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_BLUETOOTH */ it('batteryStats_001', 0, async function (done) { var infoList; - let promise = batteryStats.getbatteryStats().then(function (value) { + let promise = batteryStats.getBatteryStats().then(function (value) { infoList = value; console.info("Executing"); }, function (msg) { @@ -62,11 +62,11 @@ describe('appInfoTest', function () { /** /* @tc.number batteryStats_js_002 * @tc.name batteryStats_002 - * @tc.desc batteryStats getbatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_IDLE + * @tc.desc batteryStats getBatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_IDLE */ it('batteryStats_002', 0, async function (done) { var infoList; - let promise = batteryStats.getbatteryStats().then(function (value) { + let promise = batteryStats.getBatteryStats().then(function (value) { infoList = value; console.info("Executing"); }, function (msg) { @@ -89,11 +89,11 @@ describe('appInfoTest', function () { /** /* @tc.number batteryStats_js_003 * @tc.name batteryStats_003 - * @tc.desc batteryStats getbatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_PHONE + * @tc.desc batteryStats getBatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_PHONE */ it('batteryStats_003', 0, async function (done) { var infoList; - let promise = batteryStats.getbatteryStats().then(function (value) { + let promise = batteryStats.getBatteryStats().then(function (value) { infoList = value; console.info("Executing"); }, function (msg) { @@ -116,11 +116,11 @@ describe('appInfoTest', function () { /** /* @tc.number batteryStats_js_004 * @tc.name batteryStats_004 - * @tc.desc batteryStats getbatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_RADIO + * @tc.desc batteryStats getBatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_RADIO */ it('batteryStats_004', 0, async function (done) { var infoList; - let promise = batteryStats.getbatteryStats().then(function (value) { + let promise = batteryStats.getBatteryStats().then(function (value) { infoList = value; console.info("Executing"); }, function (msg) { @@ -143,11 +143,11 @@ describe('appInfoTest', function () { /** /* @tc.number batteryStats_js_005 * @tc.name batteryStats_005 - * @tc.desc batteryStats getbatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_SCREEN + * @tc.desc batteryStats getBatteryStats Interface Test type = ConsumptionType.CONSUMPTION_TYPE_SCREEN */ it('batteryStats_005', 0, async function (done) { var infoList; - let promise = batteryStats.getbatteryStats().then(function (value) { + let promise = batteryStats.getBatteryStats().then(function (value) { infoList = value; console.info("Executing"); }, function (msg) { -- GitLab