Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d15931d1
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d15931d1
编写于
7月 09, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4219 revise power and battery test name
Merge pull request !4219 from liuzixuan/master
上级
78f8a545
d44e4b48
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
739 addition
and
739 deletion
+739
-739
powermgr/battery_manager/src/main/js/default/test/battery_common_event.test.js
...ger/src/main/js/default/test/battery_common_event.test.js
+441
-441
powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js
...ery_manager/src/main/js/default/test/battery_unit.test.js
+136
-136
powermgr/battery_manager/src/main/js/default/test/system_battery.test.js
...y_manager/src/main/js/default/test/system_battery.test.js
+9
-9
powermgr/power_manager/src/main/js/default/test/power_manager_power.test.js
...ager/src/main/js/default/test/power_manager_power.test.js
+55
-55
powermgr/power_manager/src/main/js/default/test/power_manager_running_lock.test.js
...c/main/js/default/test/power_manager_running_lock.test.js
+57
-57
powermgr/thermal_manager/src/main/js/default/test/thermal_uint.test.js
...mal_manager/src/main/js/default/test/thermal_uint.test.js
+39
-39
powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js
...manager/src/main/js/default/test/thermal_unittest.test.js
+2
-2
未找到文件。
powermgr/battery_manager/src/main/js/default/test/battery_common_event.test.js
浏览文件 @
d15931d1
...
...
@@ -18,1401 +18,1401 @@ describe('appInfoTest_battery_1', function () {
console
.
log
(
"
*************Battery commonEvent Test Begin*************
"
);
/**
* @tc.number
BatteryCommonEventTest_001
* @tc.name
subscribe battery changed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0100
* @tc.name
Subscribe_Battery_Changed_Common_E
vent
* @tc.desc battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_001
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Battery_Changed_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_002
* @tc.name
subscribe battery okay common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0110
* @tc.name
Subscribe_Battery_Okay_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_002
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Battery_Okay_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryOkaySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_003
* @tc.name
subscribe battery low common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0120
* @tc.name
Subscribe_Battery_Low_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_003
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Battery_Low_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryLowSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_004
* @tc.name
subscribe power connected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0130
* @tc.name
Subscribe_Power_Connected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_004
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Power_Connected_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryPowerConnectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_005
* @tc.name
subscribe power disconnected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0140
* @tc.name
Subscribe_Power_Disconnected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_005
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Power_Disconnected_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryPowerDisconnectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_006
* @tc.name
subscribe battery charging common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0150
* @tc.name
Subscribe_Battery_Charging_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_006
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Battery_Charging_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryChargingSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_007
* @tc.name
subscribe battery discharging common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0160
* @tc.name
Subscribe_Battery_Discharging_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_007
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Battery_Discharging_Common_Event
'
,
0
,
function
(
done
)
{
createBatteryDischargingSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_008
* @tc.name
subscribe boot completed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0170
* @tc.name
Subscribe_Boot_Completed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_008
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Boot_Completed_Common_Event
'
,
0
,
function
(
done
)
{
createBootCompletedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_009
* @tc.name
subscribe locked boot completed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0180
* @tc.name
Subscribe_Locked_Boot_Completed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_009
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Locked_Boot_Completed_Common_Event
'
,
0
,
function
(
done
)
{
createLockedBootCompletedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_01
0
* @tc.name
subscribe shutdown common e
vent
* @tc.number
Usb_powersystem_batterymanager_jstest_019
0
* @tc.name
Subscribe_Shutdown_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_010
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Shutdown_Common_Event
'
,
0
,
function
(
done
)
{
createShutdownSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_011
* @tc.name
subscribe screen on common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0200
* @tc.name
Subscribe_Screen_On_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_011
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Screen_On_Common_Event
'
,
0
,
function
(
done
)
{
createScreenOnSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_012
* @tc.name
subscribe user present common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0210
* @tc.name
Subscribe_User_Present_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_012
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_User_Present_Common_Event
'
,
0
,
function
(
done
)
{
createUserPresentSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_013
* @tc.name
subscribe time tick common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0220
* @tc.name
Subscribe_Time_Tick_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_013
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Time_Tick_Common_Event
'
,
0
,
function
(
done
)
{
createTimeTickSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_014
* @tc.name
subscribe screen off common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0230
* @tc.name
Subscribe_Screen_Off_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_014
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Screen_Off_Common_Event
'
,
0
,
function
(
done
)
{
createScreenOffSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_015
* @tc.name
subscribe time changed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0240
* @tc.name
Subscribe_Time_Changed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_015
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Time_Changed_Common_Event
'
,
0
,
function
(
done
)
{
createTimeChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_016
* @tc.name
subscribe date changed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0250
* @tc.name
Subscribe_Date_Changed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_016
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Date_Changed_Common_Event
'
,
0
,
function
(
done
)
{
createDateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_017
* @tc.name
subscribe timezone changed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0260
* @tc.name
Subscribe_Timezone_Changed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_017
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Timezone_Changed_Common_Event
'
,
0
,
function
(
done
)
{
createTimezoneChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_018
* @tc.name
subscribe close system dialogs common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0270
* @tc.name
Subscribe_Close_System_Dialogs_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_018
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Close_System_Dialogs_Common_Event
'
,
0
,
function
(
done
)
{
createCloseSystemDialogsSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_019
* @tc.name
subscribe package added common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0280
* @tc.name
Subscribe_Package_Added_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_019
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Package_Added_Common_Event
'
,
0
,
function
(
done
)
{
createPackageAddedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_02
0
* @tc.name
subscribe package replaced common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_029
0
* @tc.name
Subscribe_Package_Replaced_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_020
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Package_Replaced_Common_Event
'
,
0
,
function
(
done
)
{
createPackageReplacedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_021
* @tc.name
subscribe my package replaced common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0300
* @tc.name
Subscribe_My_Package_Replaced_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_021
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_My_Package_Replaced_Common_Event
'
,
0
,
function
(
done
)
{
createMyPackageReplacedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_022
* @tc.name
subscribe package removed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0310
* @tc.name
Subscribe_Package_Removed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_022
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Package_Removed_Common_Event
'
,
0
,
function
(
done
)
{
createPackageRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_023
* @tc.name
subscribe bundle removed common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0320
* @tc.name
Subscribe_Bundle_Removed_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_023
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bundle_Removed_Common_Event
'
,
0
,
function
(
done
)
{
createBundleRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_024
* @tc.name
subscribe PackageFullyRemoved common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0330
* @tc.name
Subscribe_Packagefullyremoved_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_024
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagefullyremoved_Common_Event
'
,
0
,
function
(
done
)
{
createPackageFullyRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_025
* @tc.name
subscribe PackageChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0340
* @tc.name
Subscribe_Packagechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_025
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagechanged_Common_Event
'
,
0
,
function
(
done
)
{
createPackageChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_026
* @tc.name
subscribe PackageRestarted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0350
* @tc.name
Subscribe_Packagerestarted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_026
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagerestarted_Common_Event
'
,
0
,
function
(
done
)
{
createPackageRestartedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_027
* @tc.name
subscribe PackageDataCleared common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0360
* @tc.name
Subscribe_Packagedatacleared_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_027
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagedatacleared_Common_Event
'
,
0
,
function
(
done
)
{
createPackageDataClearedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_028
* @tc.name
subscribe PackageSuspended common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0370
* @tc.name
Subscribe_Packagesuspended_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_028
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagesuspended_Common_Event
'
,
0
,
function
(
done
)
{
createPackageSuspendedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_029
* @tc.name
subscribe PackagesUnsuspended common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0380
* @tc.name
Subscribe_Packagesunsuspended_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_029
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Packagesunsuspended_Common_Event
'
,
0
,
function
(
done
)
{
createPackagesUnsuspendedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_03
0
* @tc.name
subscribe MyPackageSuspended common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_039
0
* @tc.name
Subscribe_Mypackagesuspended_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_030
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Mypackagesuspended_Common_Event
'
,
0
,
function
(
done
)
{
createMyPackageSuspendedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_031
* @tc.name
subscribe MyPackageUnsuspended common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0400
* @tc.name
Subscribe_Mypackageunsuspended_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_031
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Mypackageunsuspended_Common_Event
'
,
0
,
function
(
done
)
{
createMyPackageUnsuspendedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_032
* @tc.name
subscribe MyPackageFirstLaunch common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0410
* @tc.name
Subscribe_Mypackagefirstlaunch_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_032
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Mypackagefirstlaunch_Common_Event
'
,
0
,
function
(
done
)
{
createMyPackageFirstLaunchSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_033
* @tc.name
subscribe MyPackageNeedsVerification common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0420
* @tc.name
Subscribe_Mypackageneedsverification_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_033
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Mypackageneedsverification_Common_Event
'
,
0
,
function
(
done
)
{
createMyPackageNeedsVerificationSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_034
* @tc.name
subscribe ExternalApplicationsAvailable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0430
* @tc.name
Subscribe_Externalapplicationsavailable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_034
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Externalapplicationsavailable_Common_Event
'
,
0
,
function
(
done
)
{
createExternalApplicationsAvailableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_035
* @tc.name
subscribe ExternalApplicationsUnAvailable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0440
* @tc.name
Subscribe_Externalapplicationsunavailable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_035
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Externalapplicationsunavailable_Common_Event
'
,
0
,
function
(
done
)
{
createExternalApplicationsUnAvailableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_036
* @tc.name
subscribe ConfigurationChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0450
* @tc.name
Subscribe_Configurationchanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_036
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Configurationchanged_Common_Event
'
,
0
,
function
(
done
)
{
createConfigurationChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_037
* @tc.name
subscribe LocateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0460
* @tc.name
Subscribe_Locatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_037
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Locatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createLocateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_038
* @tc.name
subscribe ManagePackageStorage common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0470
* @tc.name
Subscribe_Managepackagestorage_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_038
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Managepackagestorage_Common_Event
'
,
0
,
function
(
done
)
{
createManagePackageStorageSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_039
* @tc.name
subscribe DriveMode common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0480
* @tc.name
Subscribe_Drivemode_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_039
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Drivemode_Common_Event
'
,
0
,
function
(
done
)
{
createDriveModeSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_04
0
* @tc.name
subscribe HomeMode common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_049
0
* @tc.name
Subscribe_Homemode_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_040
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Homemode_Common_Event
'
,
0
,
function
(
done
)
{
createHomeModeSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_041
* @tc.name
subscribe OfficeMode common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0500
* @tc.name
Subscribe_Officemode_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_041
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Officemode_Common_Event
'
,
0
,
function
(
done
)
{
createOfficeModeSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_042
* @tc.name
subscribe UserStarted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0510
* @tc.name
Subscribe_Userstarted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_042
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userstarted_Common_Event
'
,
0
,
function
(
done
)
{
createUserStartedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_043
* @tc.name
subscribe UserBackground common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0520
* @tc.name
Subscribe_Userbackground_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_043
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userbackground_Common_Event
'
,
0
,
function
(
done
)
{
createUserBackgroundSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_044
* @tc.name
subscribe UserForground common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0530
* @tc.name
Subscribe_Userforground_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_044
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userforground_Common_Event
'
,
0
,
function
(
done
)
{
createUserForgroundSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_045
* @tc.name
subscribe UserSwitched common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0540
* @tc.name
Subscribe_Userswitched_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_045
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userswitched_Common_Event
'
,
0
,
function
(
done
)
{
createUserSwitchedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_046
* @tc.name
subscribe UserStarting common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0550
* @tc.name
Subscribe_Userstarting_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_046
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userstarting_Common_Event
'
,
0
,
function
(
done
)
{
createUserStartingSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_047
* @tc.name
subscribe UserUnlocked common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0560
* @tc.name
Subscribe_Userunlocked_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_047
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userunlocked_Common_Event
'
,
0
,
function
(
done
)
{
createUserUnlockedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_048
* @tc.name
subscribe UserStopping common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0570
* @tc.name
Subscribe_Userstopping_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_048
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userstopping_Common_Event
'
,
0
,
function
(
done
)
{
createUserStoppingSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_049
* @tc.name
subscribe UserStopped common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0580
* @tc.name
Subscribe_Userstopped_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_049
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Userstopped_Common_Event
'
,
0
,
function
(
done
)
{
createUserStoppedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_05
0
* @tc.name
subscribe HwidLogin common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_059
0
* @tc.name
Subscribe_Hwidlogin_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_050
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Hwidlogin_Common_Event
'
,
0
,
function
(
done
)
{
createHwidLoginSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_051
* @tc.name
subscribe HwidLogout common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0600
* @tc.name
Subscribe_Hwidlogout_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_051
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Hwidlogout_Common_Event
'
,
0
,
function
(
done
)
{
createHwidLogoutSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_052
* @tc.name
subscribe HwidTokenInvalid common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0610
* @tc.name
Subscribe_Hwidtokeninvalid_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_052
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Hwidtokeninvalid_Common_Event
'
,
0
,
function
(
done
)
{
createHwidTokenInvalidSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_053
* @tc.name
subscribe HwidLogOff common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0620
* @tc.name
Subscribe_Hwidlogoff_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_053
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Hwidlogoff_Common_Event
'
,
0
,
function
(
done
)
{
createHwidLogOffSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_054
* @tc.name
subscribe WifiPowerState common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0630
* @tc.name
Subscribe_Wifipowerstate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_054
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifipowerstate_Common_Event
'
,
0
,
function
(
done
)
{
createWifiPowerStateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_055
* @tc.name
subscribe WifiScanFinished common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0640
* @tc.name
Subscribe_Wifiscanfinished_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_055
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifiscanfinished_Common_Event
'
,
0
,
function
(
done
)
{
createWifiScanFinishedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_056
* @tc.name
subscribe WifiRssiValue common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0650
* @tc.name
Subscribe_Wifirssivalue_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_056
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifirssivalue_Common_Event
'
,
0
,
function
(
done
)
{
createWifiRssiValueSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_057
* @tc.name
subscribe WifiConnState common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0660
* @tc.name
Subscribe_Wificonnstate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_057
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wificonnstate_Common_Event
'
,
0
,
function
(
done
)
{
createWifiConnStateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_058
* @tc.name
subscribe WifiHostpotState common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0670
* @tc.name
Subscribe_Wifihostpotstate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_058
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifihostpotstate_Common_Event
'
,
0
,
function
(
done
)
{
createWifiHostpotStateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_059
* @tc.name
subscribe WifiApStaJoin common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0680
* @tc.name
Subscribe_Wifiapstajoin_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_059
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifiapstajoin_Common_Event
'
,
0
,
function
(
done
)
{
createWifiApStaJoinSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_06
0
* @tc.name
subscribe WifiApStaLeave common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_069
0
* @tc.name
Subscribe_Wifiapstaleave_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_060
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifiapstaleave_Common_Event
'
,
0
,
function
(
done
)
{
createWifiApStaLeaveSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_061
* @tc.name
subscribe WifiMplinkStateChange common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0700
* @tc.name
Subscribe_Wifimplinkstatechange_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_061
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifimplinkstatechange_Common_Event
'
,
0
,
function
(
done
)
{
createWifiMplinkStateChangeSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_062
* @tc.name
subscribe WifiP2PConnState common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0710
* @tc.name
Subscribe_Wifip2pconnstate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_062
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2pconnstate_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PConnStateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_063
* @tc.name
subscribe WifiP2PStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0720
* @tc.name
Subscribe_Wifip2pstatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_063
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2pstatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_064
* @tc.name
subscribe WifiP2PPeersStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0730
* @tc.name
Subscribe_Wifip2ppeersstatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_064
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2ppeersstatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PPeersStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_065
* @tc.name
subscribe WifiP2PPeersDiscoveryStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0740
* @tc.name
Subscribe_Wifip2ppeersdiscoverystatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_065
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2ppeersdiscoverystatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PPeersDiscoveryStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_066
* @tc.name
subscribe WifiP2PCurrentDeviceStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0750
* @tc.name
Subscribe_Wifip2pcurrentdevicestatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_066
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2pcurrentdevicestatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PCurrentDeviceStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_067
* @tc.name
subscribe WifiP2PGroupStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0760
* @tc.name
Subscribe_Wifip2pgroupstatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_067
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Wifip2pgroupstatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createWifiP2PGroupStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_068
* @tc.name
subscribe BluetoothHandsfreeAgConntectStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0770
* @tc.name
Subscribe_Bluetoothhandsfreeagconntectstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_068
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeagconntectstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeAgConntectStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_069
* @tc.name
subscribe BluetoothHandsfreeAgConntectDeviceUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0780
* @tc.name
Subscribe_Bluetoothhandsfreeagconntectdeviceupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_069
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeagconntectdeviceupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeAgConntectDeviceUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_07
0
* @tc.name
subscribe BluetoothHandsfreeAgAudioStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_079
0
* @tc.name
Subscribe_Bluetoothhandsfreeagaudiostateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_070
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeagaudiostateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeAgAudioStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_071
* @tc.name
subscribe BluetoothA2DPsourceConnectStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0800
* @tc.name
Subscribe_Bluetootha2dpsourceconnectstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_071
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetootha2dpsourceconnectstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothA2DPsourceConnectStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_072
* @tc.name
subscribe BluetoothA2DPsourceCurrentDeviceUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0810
* @tc.name
Subscribe_Bluetootha2dpsourcecurrentdeviceupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_072
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetootha2dpsourcecurrentdeviceupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothA2DPsourceCurrentDeviceUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_073
* @tc.name
subscribe BluetoothA2DPsourcePlayingStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0820
* @tc.name
Subscribe_Bluetootha2dpsourceplayingstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_073
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetootha2dpsourceplayingstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothA2DPsourcePlayingStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_074
* @tc.name
subscribe BluetoothA2DPsourceAvrcpConntectStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0830
* @tc.name
Subscribe_Bluetootha2dpsourceavrcpconntectstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_074
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetootha2dpsourceavrcpconntectstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothA2DPsourceAvrcpConntectStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_075
* @tc.name
subscribe BluetoothA2DPsourceCodecValueUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0840
* @tc.name
Subscribe_Bluetootha2dpsourcecodecvalueupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_075
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetootha2dpsourcecodecvalueupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothA2DPsourceCodecValueUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_076
* @tc.name
subscribe BluetoothRemotedeviceDiscovered common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0850
* @tc.name
Subscribe_Bluetoothremotedevicediscovered_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_076
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicediscovered_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceDiscoveredSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_077
* @tc.name
subscribe BluetoothRemotedeviceClassValueUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0860
* @tc.name
Subscribe_Bluetoothremotedeviceclassvalueupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_077
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceclassvalueupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceClassValueUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_078
* @tc.name
subscribe BluetoothRemotedeviceAclConnected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0870
* @tc.name
Subscribe_Bluetoothremotedeviceaclconnected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_078
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceaclconnected_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceAclConnectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_079
* @tc.name
subscribe BluetoothRemotedeviceAclDisconnected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0880
* @tc.name
Subscribe_Bluetoothremotedeviceacldisconnected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_079
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceacldisconnected_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceAclDisconnectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_08
0
* @tc.name
subscribe BluetoothRemotedeviceNameUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_089
0
* @tc.name
Subscribe_Bluetoothremotedevicenameupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_080
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicenameupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceNameUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_081
* @tc.name
subscribe BluetoothRemotedevicePairState common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0900
* @tc.name
Subscribe_Bluetoothremotedevicepairstate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_081
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicepairstate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedevicePairStateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_082
* @tc.name
subscribe BluetoothRemotedeviceBateryValueUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0910
* @tc.name
Subscribe_Bluetoothremotedevicebateryvalueupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_082
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicebateryvalueupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceBateryValueUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_083
* @tc.name
subscribe BluetoothRemotedeviceSdpResult common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0920
* @tc.name
Subscribe_Bluetoothremotedevicesdpresult_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_083
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicesdpresult_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceSdpResultSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_084
* @tc.name
subscribe BluetoothRemotedeviceUuidValue common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0930
* @tc.name
Subscribe_Bluetoothremotedeviceuuidvalue_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_084
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceuuidvalue_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceUuidValueSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_085
* @tc.name
subscribe BluetoothPairingReq common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0940
* @tc.name
Subscribe_Bluetoothpairingreq_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_085
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothpairingreq_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothPairingReqSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_086
* @tc.name
subscribe BluetoothRemotedevicePairingCancel common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0950
* @tc.name
Subscribe_Bluetoothremotedevicepairingcancel_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_086
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedevicepairingcancel_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedevicePairingCancelSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_087
* @tc.name
subscribe BluetoothRemotedeviceConntectReq common e
vent
* @tc.desc Battery acquisition
k
it
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0960
* @tc.name
Subscribe_Bluetoothremotedeviceconntectreq_Common_E
vent
* @tc.desc Battery acquisition
K
it
*/
it
(
'
BatteryCommonEventTest_087
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceconntectreq_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceConntectReqSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_088
* @tc.name
subscribe BluetoothRemotedeviceConntectReply common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0970
* @tc.name
Subscribe_Bluetoothremotedeviceconntectreply_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_088
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceconntectreply_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceConntectReplySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_089
* @tc.name
subscribe BluetoothRemotedeviceConntectCancel common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_0980
* @tc.name
Subscribe_Bluetoothremotedeviceconntectcancel_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_089
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothremotedeviceconntectcancel_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothRemotedeviceConntectCancelSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_0
90
* @tc.name
subscribe BluetoothHandsfreeunitConntectStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_09
90
* @tc.name
Subscribe_Bluetoothhandsfreeunitconntectstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_090
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeunitconntectstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeunitConntectStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_091
* @tc.name
subscribe BluetoothHandsfreeunitAudioStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1010
* @tc.name
Subscribe_Bluetoothhandsfreeunitaudiostateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_091
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeunitaudiostateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeunitAudioStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_092
* @tc.name
subscribe BluetoothHandsfreeunitAgCommonEvent common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1020
* @tc.name
Subscribe_Bluetoothhandsfreeunitagcommonevent_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_092
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeunitagcommonevent_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeunitAgCommonEventSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_093
* @tc.name
subscribe BluetoothHandsfreeunitAgCallStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1030
* @tc.name
Subscribe_Bluetoothhandsfreeunitagcallstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_093
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhandsfreeunitagcallstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHandsfreeunitAgCallStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_094
* @tc.name
subscribe BluetoothHostStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1040
* @tc.name
Subscribe_Bluetoothhoststateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_094
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhoststateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHostStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_095
* @tc.name
subscribe BluetoothHostReqDiscoverable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1050
* @tc.name
Subscribe_Bluetoothhostreqdiscoverable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_095
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Bluetoothhostreqdiscoverable_Common_Event
'
,
0
,
function
(
done
)
{
createBluetoothHostReqDiscoverableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_096
* @tc.name
subscribe CommonEventHostReqEnable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1060
* @tc.name
Subscribe_Commoneventhostreqenable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_096
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostreqenable_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostReqEnableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_097
* @tc.name
subscribe CommonEventHostReqDisable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1070
* @tc.name
Subscribe_Commoneventhostreqdisable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_097
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostreqdisable_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostReqDisableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_098
* @tc.name
subscribe CommonEventHostScanModeUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1080
* @tc.name
Subscribe_Commoneventhostscanmodeupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_098
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostscanmodeupdate_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostScanModeUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_099
* @tc.name
subscribe CommonEventHostDiscovetyStarted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1090
* @tc.name
Subscribe_Commoneventhostdiscovetystarted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_099
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostdiscovetystarted_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostDiscovetyStartedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_
100
* @tc.name
subscribe CommonEventHostDiscovetyFinished common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1
100
* @tc.name
Subscribe_Commoneventhostdiscovetyfinished_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_100
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostdiscovetyfinished_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostDiscovetyFinishedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_101
* @tc.name
subscribe CommonEventHostNameUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1110
* @tc.name
Subscribe_Commoneventhostnameupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_101
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhostnameupdate_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostNameUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_102
* @tc.name
subscribe CommonEventHostStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1120
* @tc.name
Subscribe_Commoneventhoststateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_102
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventhoststateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventHostStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_103
* @tc.name
subscribe CommonEventA2DPsinkPlayingStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1130
* @tc.name
Subscribe_Commoneventa2dpsinkplayingstateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_103
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventa2dpsinkplayingstateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventA2DPsinkPlayingStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_104
* @tc.name
subscribe CommonEventA2DPsinkAudioStateUpdate common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1140
* @tc.name
Subscribe_Commoneventa2dpsinkaudiostateupdate_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_104
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventa2dpsinkaudiostateupdate_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventA2DPsinkAudioStateUpdateSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_105
* @tc.name
subscribe CommonEventNFCActionAdapterStateChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1150
* @tc.name
Subscribe_Commoneventnfcactionadapterstatechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_105
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventnfcactionadapterstatechanged_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventNFCActionAdapterStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_106
* @tc.name
subscribe CommonEventNFCActionRFFieldOnDetected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1160
* @tc.name
Subscribe_Commoneventnfcactionrffieldondetected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_106
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventnfcactionrffieldondetected_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventNFCActionRFFieldOnDetectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_107
* @tc.name
subscribe CommonEventNFCActionRFFieldOffDetected common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1170
* @tc.name
Subscribe_Commoneventnfcactionrffieldoffdetected_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_107
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventnfcactionrffieldoffdetected_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventNFCActionRFFieldOffDetectedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_108
* @tc.name
subscribe CommonEventDeviceIdleModeChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1180
* @tc.name
Subscribe_Commoneventdeviceidlemodechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_108
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdeviceidlemodechanged_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDeviceIdleModeChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_109
* @tc.name
subscribe CommonEventPowerSaveModeChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1190
* @tc.name
Subscribe_Commoneventpowersavemodechanged_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_109
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventpowersavemodechanged_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventPowerSaveModeChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_11
0
* @tc.name
subscribe CommonEventUserAdded common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_120
0
* @tc.name
Subscribe_Commoneventuseradded_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_110
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventuseradded_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventUserAddedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_111
* @tc.name
subscribe CommonEventUserRemoved common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1210
* @tc.name
Subscribe_Commoneventuserremoved_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_111
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventuserremoved_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventUserRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_112
* @tc.name
subscribe CommonEventAbilityAdded common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1220
* @tc.name
Subscribe_Commoneventabilityadded_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_112
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventabilityadded_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventAbilityAddedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_113
* @tc.name subscribe
CommonEventAbilityRemoved common
event
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1230
* @tc.name subscribe
_CommonEventAbilityRemoved_common_
event
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_113
'
,
0
,
function
(
done
)
{
it
(
'
subscribe_CommonEventAbilityRemoved_common_event
'
,
0
,
function
(
done
)
{
createCommonEventAbilityRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_114
* @tc.name subscribe
CommonEventAbilityUpdated common
event
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1240
* @tc.name subscribe
_CommonEventAbilityUpdated_common_
event
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_114
'
,
0
,
function
(
done
)
{
it
(
'
subscribe_CommonEventAbilityUpdated_common_event
'
,
0
,
function
(
done
)
{
createCommonEventAbilityUpdatedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_115
* @tc.name subscribe
CommonEventLocationModeStateChanged common
event
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1250
* @tc.name subscribe
_CommonEventLocationModeStateChanged_common_
event
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_115
'
,
0
,
function
(
done
)
{
it
(
'
subscribe_CommonEventLocationModeStateChanged_common_event
'
,
0
,
function
(
done
)
{
createCommonEventLocationModeStateChangedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_116
* @tc.name subscribe
CommonEventIVISleep common
event
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1260
* @tc.name subscribe
_CommonEventIVISleep_common_
event
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_116
'
,
0
,
function
(
done
)
{
it
(
'
subscribe_CommonEventIVISleep_common_event
'
,
0
,
function
(
done
)
{
createCommonEventIVISleepSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_117
* @tc.name subscribe
CommonEventIVIPause common
event
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1270
* @tc.name subscribe
_CommonEventIVIPause_common_
event
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_117
'
,
0
,
function
(
done
)
{
it
(
'
subscribe_CommonEventIVIPause_common_event
'
,
0
,
function
(
done
)
{
createCommonEventIVIPauseSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_118
* @tc.name
subscribe CommonEventIVIStandBy common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1280
* @tc.name
Subscribe_Commoneventivistandby_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_118
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivistandby_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIStandBySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_119
* @tc.name
subscribe CommonEventIVILastmodeSave common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1290
* @tc.name
Subscribe_Commoneventivilastmodesave_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_119
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivilastmodesave_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVILastmodeSaveSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_12
0
* @tc.name
subscribe CommonEventIVIVoltageAbnormal common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_130
0
* @tc.name
Subscribe_Commoneventivivoltageabnormal_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_120
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivivoltageabnormal_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIVoltageAbnormalSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_121
* @tc.name
subscribe CommonEventIVIHightTemperature common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1310
* @tc.name
Subscribe_Commoneventivihighttemperature_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_121
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivihighttemperature_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIHightTemperatureSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_122
* @tc.name
subscribe CommonEventIVIExtremeTemperature common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1320
* @tc.name
Subscribe_Commoneventiviextremetemperature_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_122
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventiviextremetemperature_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIExtremeTemperatureSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_123
* @tc.name
subscribe CommonEventIVITemperatureAbnormal common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1330
* @tc.name
Subscribe_Commoneventivitemperatureabnormal_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_123
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivitemperatureabnormal_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVITemperatureAbnormalSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_124
* @tc.name
subscribe CommonEventIVIVoltageRecovery common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1340
* @tc.name
Subscribe_Commoneventivivoltagerecovery_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_124
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivivoltagerecovery_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIVoltageRecoverySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_125
* @tc.name
subscribe CommonEventIVITempratureRecovery common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1350
* @tc.name
Subscribe_Commoneventivitempraturerecovery_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_125
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventivitempraturerecovery_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVITempratureRecoverySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_126
* @tc.name
subscribe CommonEventIVIActive common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1360
* @tc.name
Subscribe_Commoneventiviactive_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_126
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventiviactive_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventIVIActiveSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_127
* @tc.name
subscribe CommonEventUSBDevidceAttached common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1370
* @tc.name
Subscribe_Commoneventusbdevidceattached_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_127
'
,
0
,
function
(
done
)
{
createCommonEvent
US
BDevidceAttachedSubscriber
();
it
(
'
Subscribe_Commoneventusbdevidceattached_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEvent
SU
BDevidceAttachedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_128
* @tc.name
subscribe CommonEventUSBDevidceDetached common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1380
* @tc.name
Subscribe_Commoneventusbdevidcedetached_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_128
'
,
0
,
function
(
done
)
{
createCommonEvent
US
BDevidceDetachedSubscriber
();
it
(
'
Subscribe_Commoneventusbdevidcedetached_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEvent
SU
BDevidceDetachedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_129
* @tc.name
subscribe CommonEventUSBAccessoryAttached common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1390
* @tc.name
Subscribe_Commoneventusbaccessoryattached_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_129
'
,
0
,
function
(
done
)
{
createCommonEvent
US
BAccessoryAttachedSubscriber
();
it
(
'
Subscribe_Commoneventusbaccessoryattached_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEvent
SU
BAccessoryAttachedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_13
0
* @tc.name
subscribe CommonEventUSBAccessoryDetached common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_140
0
* @tc.name
Subscribe_Commoneventusbaccessorydetached_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_130
'
,
0
,
function
(
done
)
{
createCommonEvent
US
BAccessoryDetachedSubscriber
();
it
(
'
Subscribe_Commoneventusbaccessorydetached_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEvent
SU
BAccessoryDetachedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_131
* @tc.name
subscribe CommonEventDickRemoved common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1410
* @tc.name
Subscribe_Commoneventdickremoved_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_131
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdickremoved_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickRemovedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_132
* @tc.name
subscribe CommonEventDickUnmounted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1420
* @tc.name
Subscribe_Commoneventdickunmounted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_132
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdickunmounted_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickUnmountedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_133
* @tc.name
subscribe CommonEventDickMounted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1430
* @tc.name
Subscribe_Commoneventdickmounted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_133
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdickmounted_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickMountedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_134
* @tc.name
subscribe CommonEventDickNadRemoval common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1440
* @tc.name
Subscribe_Commoneventdicknadremoval_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_134
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdicknadremoval_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickNadRemovalSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_135
* @tc.name
subscribe CommonEventDickUnmoutable common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1450
* @tc.name
Subscribe_Commoneventdickunmoutable_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_135
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_Commoneventdickunmoutable_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickUnmoutableSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_136
* @tc.name
subscribe CommonEventDickEject common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1460
* @tc.name
Subscribe_CommonEventDickEject_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_136
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_CommonEventDickEject_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventDickEjectSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_137
* @tc.name
subscribe CommonEventVisibleAccountsUpdated common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1470
* @tc.name
Subscribe_CommonEventVisibleAccountsUpdated_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_137
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_CommonEventVisibleAccountsUpdated_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventVisibleAccountsUpdatedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_138
* @tc.name
subscribe CommonEventAccountDeleted common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1480
* @tc.name
Subscribe_CommonEventAccountDeleted_Common_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_138
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_CommonEventAccountDeleted_Common_Event
'
,
0
,
function
(
done
)
{
createCommonEventAccountDeletedSubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_139
* @tc.name
subscribe CommonEventFoundationReady common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1490
* @tc.name
Subscribe_CommonEventFoundation_ReadyCommon_E
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_139
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_CommonEventFoundation_ReadyCommon_Event
'
,
0
,
function
(
done
)
{
createCommonEventFoundationReadySubscriber
();
done
();
})
/**
* @tc.number
BatteryCommonEventTest_14
0
* @tc.name
subscribe CommonEventAirplaneModeChanged common e
vent
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_150
0
* @tc.name
Subscribe_CommonEventAirplane_ModeChanged_CommonE
vent
* @tc.desc Battery acquisition kit
*/
it
(
'
BatteryCommonEventTest_140
'
,
0
,
function
(
done
)
{
it
(
'
Subscribe_CommonEventAirplane_ModeChanged_CommonEvent
'
,
0
,
function
(
done
)
{
createCommonEventAirplaneModeChangedSubscriber
();
done
();
})
...
...
@@ -1851,13 +1851,13 @@ function createCommonEventDickRemovedSubscriber() {
});
}
function
createCommonEvent
US
BAccessoryDetachedSubscriber
()
{
function
createCommonEvent
SU
BAccessoryDetachedSubscriber
()
{
var
commonEventSubscribeInfo
=
{
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
US
B_ACCESSORY_DETACHED
],
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
SU
B_ACCESSORY_DETACHED
],
};
commonEvent
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
(
subscriber
=>
{
console
.
info
(
'
createCommonEvent
US
BAccessoryDetachedSubscriber success
'
);
console
.
info
(
'
createCommonEvent
SU
BAccessoryDetachedSubscriber success
'
);
var
mySubscriber
=
subscriber
;
console
.
log
(
subscriber
);
...
...
@@ -1876,7 +1876,7 @@ function createCommonEventUSBAccessoryDetachedSubscriber() {
}).
catch
((
error
)
=>
{
console
.
error
(
'
Subscriber getData error because:
'
+
JSON
.
stringify
(
error
));
})
console
.
info
(
'
subscribe Common_Event_
US
B_Accessory_Detached begin
'
);
console
.
info
(
'
subscribe Common_Event_
SU
B_Accessory_Detached begin
'
);
commonEvent
.
subscribe
(
mySubscriber
,
(
error
,
commonEventData
)
=>
{
console
.
error
(
'
err code:
'
+
JSON
.
stringify
(
error
));
...
...
@@ -1894,13 +1894,13 @@ function createCommonEventUSBAccessoryDetachedSubscriber() {
});
}
function
createCommonEvent
US
BAccessoryAttachedSubscriber
()
{
function
createCommonEvent
SU
BAccessoryAttachedSubscriber
()
{
var
commonEventSubscribeInfo
=
{
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
US
B_ACCESSORY_ATTACHED
],
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
SU
B_ACCESSORY_ATTACHED
],
};
commonEvent
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
(
subscriber
=>
{
console
.
info
(
'
createCommonEvent
US
BAccessoryAttachedSubscriber success
'
);
console
.
info
(
'
createCommonEvent
SU
BAccessoryAttachedSubscriber success
'
);
var
mySubscriber
=
subscriber
;
console
.
log
(
subscriber
);
...
...
@@ -1919,7 +1919,7 @@ function createCommonEventUSBAccessoryAttachedSubscriber() {
}).
catch
((
error
)
=>
{
console
.
error
(
'
Subscriber getData error because:
'
+
JSON
.
stringify
(
error
));
})
console
.
info
(
'
subscribe Common_Event_
US
B_Accessory_Attached begin
'
);
console
.
info
(
'
subscribe Common_Event_
SU
B_Accessory_Attached begin
'
);
commonEvent
.
subscribe
(
mySubscriber
,
(
error
,
commonEventData
)
=>
{
console
.
error
(
'
err code:
'
+
JSON
.
stringify
(
error
));
...
...
@@ -1937,13 +1937,13 @@ function createCommonEventUSBAccessoryAttachedSubscriber() {
});
}
function
createCommonEvent
US
BDevidceDetachedSubscriber
()
{
function
createCommonEvent
SU
BDevidceDetachedSubscriber
()
{
var
commonEventSubscribeInfo
=
{
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
US
B_DEVICE_DETACHED
],
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
SU
B_DEVICE_DETACHED
],
};
commonEvent
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
(
subscriber
=>
{
console
.
info
(
'
createCommonEvent
US
BDevidceDetachedSubscriber success
'
);
console
.
info
(
'
createCommonEvent
SU
BDevidceDetachedSubscriber success
'
);
var
mySubscriber
=
subscriber
;
console
.
log
(
subscriber
);
...
...
@@ -1962,7 +1962,7 @@ function createCommonEventUSBDevidceDetachedSubscriber() {
}).
catch
((
error
)
=>
{
console
.
error
(
'
Subscriber getData error because:
'
+
JSON
.
stringify
(
error
));
})
console
.
info
(
'
subscribe Common_Event_
US
B_Devidce_Detached begin
'
);
console
.
info
(
'
subscribe Common_Event_
SU
B_Devidce_Detached begin
'
);
commonEvent
.
subscribe
(
mySubscriber
,
(
error
,
commonEventData
)
=>
{
console
.
error
(
'
err code:
'
+
JSON
.
stringify
(
error
));
...
...
@@ -1980,13 +1980,13 @@ function createCommonEventUSBDevidceDetachedSubscriber() {
});
}
function
createCommonEvent
US
BDevidceAttachedSubscriber
()
{
function
createCommonEvent
SU
BDevidceAttachedSubscriber
()
{
var
commonEventSubscribeInfo
=
{
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
US
B_DEVICE_ATTACHED
],
events
:
[
commonEvent
.
Support
.
COMMON_EVENT_
SU
B_DEVICE_ATTACHED
],
};
commonEvent
.
createSubscriber
(
commonEventSubscribeInfo
)
.
then
(
subscriber
=>
{
console
.
info
(
'
createCommonEvent
US
BDevidceAttachedSubscriber success
'
);
console
.
info
(
'
createCommonEvent
SU
BDevidceAttachedSubscriber success
'
);
var
mySubscriber
=
subscriber
;
console
.
log
(
subscriber
);
...
...
@@ -2005,7 +2005,7 @@ function createCommonEventUSBDevidceAttachedSubscriber() {
}).
catch
((
error
)
=>
{
console
.
error
(
'
Subscriber getData error because:
'
+
JSON
.
stringify
(
error
));
})
console
.
info
(
'
subscribe Common_Event_
US
B_Devidce_Attached begin
'
);
console
.
info
(
'
subscribe Common_Event_
SU
B_Devidce_Attached begin
'
);
commonEvent
.
subscribe
(
mySubscriber
,
(
error
,
commonEventData
)
=>
{
console
.
error
(
'
err code:
'
+
JSON
.
stringify
(
error
));
...
...
powermgr/battery_manager/src/main/js/default/test/battery_unit.test.js
浏览文件 @
d15931d1
...
...
@@ -22,242 +22,242 @@ describe('appInfoTest_battery_2', function () {
console
.
log
(
"
*************Battery Unit Test Begin*************
"
);
/**
* @tc.number
battery_manager_js_010
0
* @tc.name battery_soc_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_151
0
* @tc.name battery_soc_
JST
est
* @tc.desc Battery acquisition kit
*/
it
(
'
battery_soc_
t
est
'
,
0
,
function
()
{
it
(
'
battery_soc_
JST
est
'
,
0
,
function
()
{
let
batterySoc
=
batteryInfo
.
batterySOC
;
console
.
info
(
'
batterySoc =
'
+
batterySoc
);
expect
(
batterySoc
>=
-
1
&&
batterySoc
<=
100
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_020
0
* @tc.name charging_status_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_152
0
* @tc.name charging_status_
JST
est
* @tc.desc Battery charging kit
*/
it
(
'
charging_status_
t
est
'
,
0
,
function
()
{
it
(
'
charging_status_
JST
est
'
,
0
,
function
()
{
let
chargingStatus
=
batteryInfo
.
chargingStatus
;
console
.
info
(
'
chargingStatus =
'
+
chargingStatus
);
expect
(
chargingStatus
>=
0
&&
chargingStatus
<=
4
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_030
0
* @tc.name health_status_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_153
0
* @tc.name health_status_
JST
est
* @tc.desc Get Battery Health Get KIT
*/
it
(
'
health_status_
t
est
'
,
0
,
function
()
{
it
(
'
health_status_
JST
est
'
,
0
,
function
()
{
let
healthStatus
=
batteryInfo
.
healthStatus
;
console
.
info
(
'
healthStatus =
'
+
healthStatus
);
expect
(
healthStatus
>=
0
&&
healthStatus
<=
6
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_040
0
* @tc.name plugged_type_
t
est
* @tc.desc Obtaining the
US
B Connection Type KIT
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_154
0
* @tc.name plugged_type_
JST
est
* @tc.desc Obtaining the
SU
B Connection Type KIT
*/
it
(
'
plugged_type_
t
est
'
,
0
,
function
()
{
it
(
'
plugged_type_
JST
est
'
,
0
,
function
()
{
let
pluggedType
=
batteryInfo
.
pluggedType
;
console
.
info
(
'
pluggedType =
'
+
pluggedType
);
expect
(
pluggedType
>=
0
&&
pluggedType
<=
4
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_050
0
* @tc.name voltage_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_155
0
* @tc.name voltage_
JST
est
* @tc.desc Obtaining the Voltage Interface KIT
*/
it
(
'
voltage_
t
est
'
,
0
,
function
()
{
it
(
'
voltage_
JST
est
'
,
0
,
function
()
{
let
voltage
=
batteryInfo
.
voltage
;
console
.
info
(
'
voltage =
'
+
voltage
);
expect
(
voltage
>=
-
1
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_060
0
* @tc.name technology_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_156
0
* @tc.name technology_
JST
est
* @tc.desc Obtaining the Battery Technology Interface KIT
*/
it
(
'
technology_
t
est
'
,
0
,
function
()
{
it
(
'
technology_
JST
est
'
,
0
,
function
()
{
let
technology
=
batteryInfo
.
technology
;
console
.
info
(
'
technology =
'
+
technology
);
expect
(
technology
!==
null
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_070
0
* @tc.name battery_temperature_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_157
0
* @tc.name battery_temperature_
JST
est
* @tc.desc BatteryTemperature values Interface Test
*/
it
(
'
battery_temperature_
t
est
'
,
0
,
function
()
{
it
(
'
battery_temperature_
JST
est
'
,
0
,
function
()
{
let
batteryTemperature
=
batteryInfo
.
batteryTemperature
;
console
.
info
(
'
batteryTemperature =
'
+
batteryTemperature
);
expect
(
batteryTemperature
<=
700
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_080
0
* @tc.name enum_health_state_
t
est_unknown
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_158
0
* @tc.name enum_health_state_
JST
est_unknown
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_unknown
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_unknown
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
UNKNOWN
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
0
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_090
0
* @tc.name enum_health_state_
t
est_good
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_159
0
* @tc.name enum_health_state_
JST
est_good
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_good
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_good
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
GOOD
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
1
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_10
00
* @tc.name enum_health_state_
t
est_overheat
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_16
00
* @tc.name enum_health_state_
JST
est_overheat
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_overheat
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_overheat
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
OVERHEAT
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
2
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_110
0
* @tc.name enum_health_state_
t
est_overvoltage
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_161
0
* @tc.name enum_health_state_
JST
est_overvoltage
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_overvoltage
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_overvoltage
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
OVERVOLTAGE
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
3
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_120
0
* @tc.name enum_health_state_
t
est_cold
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_162
0
* @tc.name enum_health_state_
JST
est_cold
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_cold
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_cold
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
COLD
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
4
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_130
0
* @tc.name enum_health_state_
t
est_dead
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_163
0
* @tc.name enum_health_state_
JST
est_dead
* @tc.desc BatteryHealthState values Interface Test
*/
it
(
'
enum_health_state_
t
est_dead
'
,
0
,
function
()
{
it
(
'
enum_health_state_
JST
est_dead
'
,
0
,
function
()
{
let
batteryHealthState
=
batteryInfo
.
BatteryHealthState
.
DEAD
;
console
.
info
(
'
batteryHealthState =
'
+
batteryHealthState
);
expect
(
batteryHealthState
==
5
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_140
0
* @tc.name enum_charge_state_
t
est_none
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_164
0
* @tc.name enum_charge_state_
JST
est_none
* @tc.desc BatteryChargeState values Interface Test
*/
it
(
'
enum_charge_state_
t
est_none
'
,
0
,
function
()
{
it
(
'
enum_charge_state_
JST
est_none
'
,
0
,
function
()
{
let
batteryChargeState
=
batteryInfo
.
BatteryChargeState
.
NONE
;
console
.
info
(
'
batteryChargeState =
'
+
batteryChargeState
);
expect
(
batteryChargeState
==
0
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_150
0
* @tc.name enum_charge_state_
t
est_enable
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_165
0
* @tc.name enum_charge_state_
JST
est_enable
* @tc.desc BatteryChargeState values Interface Test
*/
it
(
'
enum_charge_state_
t
est_enable
'
,
0
,
function
()
{
it
(
'
enum_charge_state_
JST
est_enable
'
,
0
,
function
()
{
let
batteryChargeState
=
batteryInfo
.
BatteryChargeState
.
ENABLE
;
console
.
info
(
'
batteryChargeState =
'
+
batteryChargeState
);
expect
(
batteryChargeState
==
1
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_160
0
* @tc.name enum_charge_state_
t
est_disable
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_166
0
* @tc.name enum_charge_state_
JST
est_disable
* @tc.desc BatteryChargeState values Interface Test
*/
it
(
'
enum_charge_state_
t
est_disable
'
,
0
,
function
()
{
it
(
'
enum_charge_state_
JST
est_disable
'
,
0
,
function
()
{
let
batteryChargeState
=
batteryInfo
.
BatteryChargeState
.
DISABLE
;
console
.
info
(
'
batteryChargeState =
'
+
batteryChargeState
);
expect
(
batteryChargeState
==
2
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_170
0
* @tc.name enum_charge_state_
t
est_full
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_167
0
* @tc.name enum_charge_state_
JST
est_full
* @tc.desc BatteryChargeState values Interface Test
*/
it
(
'
enum_charge_state_
t
est_full
'
,
0
,
function
()
{
it
(
'
enum_charge_state_
JST
est_full
'
,
0
,
function
()
{
let
batteryChargeState
=
batteryInfo
.
BatteryChargeState
.
FULL
;
console
.
info
(
'
batteryChargeState =
'
+
batteryChargeState
);
expect
(
batteryChargeState
==
3
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_180
0
* @tc.name enum_plugged_type_
t
est_none
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_168
0
* @tc.name enum_plugged_type_
JST
est_none
* @tc.desc BatteryPluggedType values Interface Test
*/
it
(
'
enum_plugged_type_
t
est_none
'
,
0
,
function
()
{
it
(
'
enum_plugged_type_
JST
est_none
'
,
0
,
function
()
{
let
batteryPluggedType
=
batteryInfo
.
BatteryPluggedType
.
NONE
;
console
.
info
(
'
batteryPluggedType =
'
+
batteryPluggedType
);
expect
(
batteryPluggedType
==
0
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_190
0
* @tc.name enum_plugged_type_
t
est_ac
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_169
0
* @tc.name enum_plugged_type_
JST
est_ac
* @tc.desc BatteryPluggedType values Interface Test
*/
it
(
'
enum_plugged_type_
t
est_ac
'
,
0
,
function
()
{
it
(
'
enum_plugged_type_
JST
est_ac
'
,
0
,
function
()
{
let
batteryPluggedType
=
batteryInfo
.
BatteryPluggedType
.
AC
;
console
.
info
(
'
batteryPluggedType =
'
+
batteryPluggedType
);
expect
(
batteryPluggedType
==
1
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_20
00
* @tc.name enum_plugged_type_
t
est_usb
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_17
00
* @tc.name enum_plugged_type_
JST
est_usb
* @tc.desc BatteryPluggedType values Interface Test
*/
it
(
'
enum_plugged_type_
t
est_usb
'
,
0
,
function
()
{
it
(
'
enum_plugged_type_
JST
est_usb
'
,
0
,
function
()
{
let
batteryPluggedType
=
batteryInfo
.
BatteryPluggedType
.
USB
;
console
.
info
(
'
batteryPluggedType =
'
+
batteryPluggedType
);
expect
(
batteryPluggedType
==
2
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_210
0
* @tc.name enum_plugged_type_
t
est_wireless
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_171
0
* @tc.name enum_plugged_type_
JST
est_wireless
* @tc.desc BatteryPluggedType values Interface Test
*/
it
(
'
enum_plugged_type_
t
est_wireless
'
,
0
,
function
()
{
it
(
'
enum_plugged_type_
JST
est_wireless
'
,
0
,
function
()
{
let
batteryPluggedType
=
batteryInfo
.
BatteryPluggedType
.
WIRELESS
;
console
.
info
(
'
batteryPluggedType =
'
+
batteryPluggedType
);
expect
(
batteryPluggedType
==
3
).
assertTrue
()
})
/**
* @tc.number
battery_manager_js_220
0
* @tc.name brightness_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_172
0
* @tc.name brightness_
JST
est
* @tc.desc Set Value Interface Test
*/
it
(
'
brightness_
t
est
'
,
0
,
function
()
{
it
(
'
brightness_
JST
est
'
,
0
,
function
()
{
brightness
.
setValue
(
10
);
brightness
.
setValue
(
0
);
brightness
.
setValue
(
255
);
...
...
@@ -265,11 +265,11 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number
battery_manager_js_230
0
* @tc.name is_battery_present_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_173
0
* @tc.name is_battery_present_
JST
est
* @tc.desc Battry Present Interface Test
*/
it
(
'
is_battery_present_
t
est
'
,
0
,
function
()
{
it
(
'
is_battery_present_
JST
est
'
,
0
,
function
()
{
let
isBatteryPresent
=
batteryInfo
.
isBatteryPresent
;
console
.
info
(
'
isBatteryPresent =
'
+
isBatteryPresent
);
if
(
isBatteryPresent
)
{
...
...
@@ -280,44 +280,44 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number
battery_manager_js_240
0
* @tc.name nowCurrent_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_174
0
* @tc.name nowCurrent_
JST
est
* @tc.desc Battry Present Interface Test
*/
it
(
'
nowCurrent_
t
est
'
,
0
,
function
()
{
it
(
'
nowCurrent_
JST
est
'
,
0
,
function
()
{
let
nowCurrent
=
batteryInfo
.
nowCurrent
;
console
.
info
(
'
nowCurrent =
'
+
nowCurrent
);
expect
((
nowCurrent
>=
-
20000
&&
nowCurrent
<=
20000
)).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_250
0
* @tc.name remainingEnergy_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_175
0
* @tc.name remainingEnergy_
JST
est
* @tc.desc Battry Present Interface Test
*/
it
(
'
remainingEnergy_
t
est
'
,
0
,
function
()
{
it
(
'
remainingEnergy_
JST
est
'
,
0
,
function
()
{
let
remainingEnergy
=
batteryInfo
.
remainingEnergy
;
console
.
info
(
'
remEnergy =
'
+
remainingEnergy
);
expect
(
remainingEnergy
>=
0
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_260
0
* @tc.name totalEnergy_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_176
0
* @tc.name totalEnergy_
JST
est
* @tc.desc Battry Present Interface Test
*/
it
(
'
totalEnergy_
t
est
'
,
0
,
function
()
{
it
(
'
totalEnergy_
JST
est
'
,
0
,
function
()
{
let
totalEnergy
=
batteryInfo
.
totalEnergy
;
console
.
info
(
'
totalenergy =
'
+
totalEnergy
);
expect
(
totalEnergy
>=
0
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_270
0
* @tc.name batterylevel_
t
est
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_178
0
* @tc.name batterylevel_
JST
est
* @tc.desc Battry Present Interface Test
*/
it
(
'
batterylevel_
t
est
'
,
0
,
function
()
{
it
(
'
batterylevel_
JST
est
'
,
0
,
function
()
{
let
batteryLevel
=
batteryInfo
.
batteryCapacityLevel
;
console
.
info
(
'
batteryLevel =
'
+
batteryLevel
);
expect
(
batteryLevel
>=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_NONE
&&
...
...
@@ -325,198 +325,198 @@ describe('appInfoTest_battery_2', function () {
})
/**
* @tc.number
battery_manager_js_280
0
* @tc.name enum_level_state_
t
est_none
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_179
0
* @tc.name enum_level_state_
JST
est_none
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_none
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_none
'
,
0
,
function
()
{
let
batterylevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_NONE
;
console
.
info
(
'
batterylevelState =
'
+
batterylevelState
);
expect
(
batterylevelState
==
0
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_29
00
* @tc.name enum_level_state_
t
est_full
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_18
00
* @tc.name enum_level_state_
JST
est_full
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_full
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_full
'
,
0
,
function
()
{
let
batteryLevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_FULL
;
console
.
info
(
'
batteryLevelState =
'
+
batteryLevelState
);
expect
(
batteryLevelState
==
1
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_300
0
* @tc.name enum_level_state_
t
est_high
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_181
0
* @tc.name enum_level_state_
JST
est_high
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_high
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_high
'
,
0
,
function
()
{
let
batteryLevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_HIGH
;
console
.
info
(
'
batteryLevelState =
'
+
batteryLevelState
);
expect
(
batteryLevelState
==
2
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_310
0
* @tc.name enum_level_state_
t
est_normal
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_182
0
* @tc.name enum_level_state_
JST
est_normal
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_normal
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_normal
'
,
0
,
function
()
{
let
batteryLevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_NORMAL
;
console
.
info
(
'
batteryLevelState =
'
+
batteryLevelState
);
expect
(
batteryLevelState
==
3
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_320
0
* @tc.name enum_level_state_
t
est_low
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_183
0
* @tc.name enum_level_state_
JST
est_low
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_low
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_low
'
,
0
,
function
()
{
let
batteryLevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_LOW
;
console
.
info
(
'
batteryLevelState =
'
+
batteryLevelState
);
expect
(
batteryLevelState
==
4
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_330
0
* @tc.name enum_level_state_
t
est_emergency
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_184
0
* @tc.name enum_level_state_
JST
est_emergency
* @tc.desc Battry Present Interface Test
*/
it
(
'
enum_level_state_
t
est_emergency
'
,
0
,
function
()
{
it
(
'
enum_level_state_
JST
est_emergency
'
,
0
,
function
()
{
let
batteryLevelState
=
batteryInfo
.
BatteryCapacityLevel
.
LEVEL_CRITICAL
;
console
.
info
(
'
batteryLevelState =
'
+
batteryLevelState
);
expect
(
batteryLevelState
==
5
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_340
0
* @tc.name
battery_manager_js
_3400
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_185
0
* @tc.name
SUB_PowerSystem_BatteryManager_JSTest
_3400
* @tc.desc Battry Present Interface Test
*/
it
(
'
remainingChargeTime_
t
est
'
,
0
,
function
()
{
it
(
'
remainingChargeTime_
JST
est
'
,
0
,
function
()
{
let
remainingChargeTime
=
batteryInfo
.
estimatedRemainingChargeTime
;
console
.
info
(
'
remainingChargeTime =
'
+
remainingChargeTime
);
expect
(
remainingChargeTime
>=
0
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_350
0
* @tc.name
battery_manager_js_3500
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_186
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_SOC_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_SOC_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_SOC_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_SOC =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_SOC
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_SOC
==
0
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_360
0
* @tc.name
battery_manager_js_3600
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_187
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_VOLTAGE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_VOLTAGE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_VOLTAGE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_VOLTAGE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_VOLTAGE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_VOLTAGE
==
1
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_370
0
* @tc.name
battery_manager_js_3700
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_188
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_TEMPERATURE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_TEMPERATURE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_TEMPERATURE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_TEMPERATURE
==
2
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_380
0
* @tc.name
battery_manager_js_3800
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_189
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_HEALTH_STATE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_HEALTH_STATE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_HEALTH_STATE
==
3
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_3
900
* @tc.name
battery_manager_js_3900
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_1
900
* @tc.name
CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_PLUGGED_TYPE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_PLUGGED_TYPE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_PLUGGED_TYPE
==
4
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_400
0
* @tc.name
battery_manager_js_4000
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_191
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_CURRENT =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_MAX_CURRENT
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_MAX_CURRENT
==
5
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_410
0
* @tc.name
battery_manager_js_4100
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_192
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_MAX_VOLTAGE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_MAX_VOLTAGE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_MAX_VOLTAGE
==
6
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_420
0
* @tc.name
battery_manager_js_4200
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_193
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_STATE =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_CHARGE_STATE
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_CHARGE_STATE
==
7
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_430
0
* @tc.name
battery_manager_js_4300
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_194
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_CHARGE_COUNTER =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_CHARGE_COUNTER
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_CHARGE_COUNTER
==
8
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_440
0
* @tc.name
battery_manager_js_4400
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_195
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_PRESENT_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_PRESENT_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_PRESENT_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_PRESENT =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_PRESENT
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_PRESENT
==
9
).
assertTrue
();
})
/**
* @tc.number
battery_manager_js_450
0
* @tc.name
battery_manager_js_4500
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_196
0
* @tc.name
CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_JSTest
* @tc.desc Battry Present Interface Test
*/
it
(
'
CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_
t
est
'
,
0
,
function
()
{
it
(
'
CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY_
JST
est
'
,
0
,
function
()
{
console
.
info
(
'
CommonEventBatteryChangedCode_EXTRA_TECHNOLOGY =
'
+
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_TECHNOLOGY
);
expect
(
batteryInfo
.
CommonEventBatteryChangedCode
.
EXTRA_TECHNOLOGY
==
10
).
assertTrue
();
...
...
powermgr/battery_manager/src/main/js/default/test/system_battery.test.js
浏览文件 @
d15931d1
...
...
@@ -43,7 +43,7 @@ describe('appInfoTest_battery_3', function () {
console
.
log
(
"
*************System Battery Unit Test Begin*************
"
);
/**
* @tc.number
system_battery_js_010
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_001
0
* @tc.name get_status_success_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -69,7 +69,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_020
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_002
0
* @tc.name get_status_success_null_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -90,7 +90,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_030
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_003
0
* @tc.name get_status_success_empty_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -110,7 +110,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_040
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_004
0
* @tc.name get_status_fail_null_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -134,7 +134,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_050
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_005
0
* @tc.name get_status_fail_empty_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -157,7 +157,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_060
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_006
0
* @tc.name get_status_complete_null_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -178,7 +178,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_070
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_007
0
* @tc.name get_status_complete_empty_test
* @tc.desc Battery acquisition kit
*/
...
...
@@ -198,7 +198,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_080
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_008
0
* @tc.name get_status_all_null
* @tc.desc Battery acquisition kit
*/
...
...
@@ -213,7 +213,7 @@ describe('appInfoTest_battery_3', function () {
});
/**
* @tc.number
system_battery_js_080
0
* @tc.number
SUB_PowerSystem_BatteryManager_JSTest_009
0
* @tc.name get_status_all_empty
* @tc.desc Battery acquisition kit
*/
...
...
powermgr/power_manager/src/main/js/default/test/power_manager_power.test.js
浏览文件 @
d15931d1
...
...
@@ -21,41 +21,41 @@ describe('appInfoTest_power_1', function () {
console
.
log
(
"
*************Power Unit Test Begin*************
"
);
/**
* @tc.number
power_js_001
* @tc.name
power_is_screen_on_promise_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0010
* @tc.name
Power_Is_Screnn_On_Promise_JSTest0010
* @tc.desc Checks whether the screen of a device is on or off
*/
it
(
'
power_is_screen_on_promise_test
'
,
0
,
async
function
(
done
)
{
power
.
wakeupDevice
(
"
power_is_screen_on_promise_test
"
);
it
(
'
Power_Is_Screnn_On_Promise_JSTest0010
'
,
0
,
async
function
(
done
)
{
power
.
wakeupDevice
(
"
Power_Is_Screnn_On_Promise_JSTest0010
"
);
power
.
isScreenOn
()
.
then
(
screenOn
=>
{
console
.
info
(
'
power_is_screen_on_promise_test
screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_Is_Screnn_On_Promise_JSTest0010
screenOn is
'
+
screenOn
);
expect
(
screenOn
).
assertTrue
();
console
.
info
(
'
power_is_screen_on_promise_test
success
'
);
console
.
info
(
'
Power_Is_Screnn_On_Promise_JSTest0010
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
power_is_screen_on_promise_test
error:
'
+
error
);
console
.
log
(
'
Power_Is_Screnn_On_Promise_JSTest0010
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
power_js_002
* @tc.name
power_is_screen_on_callback_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0020
* @tc.name
Power_Is_Screnn_On_Callback_JSTest0020
* @tc.desc Checks whether the screen of a device is on or off
*/
it
(
'
power_is_screen_on_callback_test
'
,
0
,
async
function
(
done
)
{
power
.
wakeupDevice
(
"
power_is_screen_on_callback_test
"
);
it
(
'
Power_Is_Screnn_On_Callback_JSTest0020
'
,
0
,
async
function
(
done
)
{
power
.
wakeupDevice
(
"
Power_Is_Screnn_On_Callback_JSTest0020
"
);
power
.
isScreenOn
((
error
,
screenOn
)
=>
{
if
(
typeof
error
===
"
undefined
"
)
{
console
.
info
(
'
power_is_screen_on_callback_test
screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_Is_Screnn_On_Callback_JSTest0020
screenOn is
'
+
screenOn
);
expect
(
screenOn
).
assertTrue
();
console
.
info
(
'
power_is_screen_on_callback_test
success
'
);
console
.
info
(
'
Power_Is_Screnn_On_Callback_JSTest0020
success
'
);
done
();
}
else
{
console
.
log
(
'
power_is_screen_on_callback_test
:
'
+
error
);
console
.
log
(
'
Power_Is_Screnn_On_Callback_JSTest0020
:
'
+
error
);
expect
().
assertFail
();
done
();
}
...
...
@@ -63,34 +63,34 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number
power_js_003
* @tc.name
power_wakeupDevice_test_string
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0030
* @tc.name
Power_WakeupDevices_String_JSTest0030
* @tc.desc Try to wakeup the device and let screen on
*/
it
(
'
power_wakeupDevice_test_string
'
,
0
,
async
function
(
done
)
{
it
(
'
Power_WakeupDevices_String_JSTest0030
'
,
0
,
async
function
(
done
)
{
power
.
isScreenOn
()
.
then
(
screenOn
=>
{
console
.
info
(
'
power_wakeupDevice_test_string
: The current screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_WakeupDevices_String_JSTest0030
: The current screenOn is
'
+
screenOn
);
if
(
screenOn
)
{
power
.
suspendDevice
();
}
})
.
catch
(
error
=>
{
console
.
log
(
'
power_wakeupDevice_test_string
error:
'
+
error
);
console
.
log
(
'
Power_WakeupDevices_String_JSTest0030
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
setTimeout
(
function
(){
power
.
wakeupDevice
(
"
power_wakeupDevice_test_string
"
);
power
.
wakeupDevice
(
"
Power_WakeupDevices_String_JSTest0030
"
);
power
.
isScreenOn
()
.
then
(
screenOn
=>
{
console
.
info
(
'
power_wakeupDevice_test_string
: The current screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_WakeupDevices_String_JSTest0030
: The current screenOn is
'
+
screenOn
);
expect
(
screenOn
).
assertTrue
();
console
.
info
(
'
power_wakeupDevice_test_string
success
'
);
console
.
info
(
'
Power_WakeupDevices_String_JSTest0030
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
power_wakeupDevice_test_string
error:
'
+
error
);
console
.
log
(
'
Power_WakeupDevices_String_JSTest0030
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
...
...
@@ -98,35 +98,35 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number
power_js_004
* @tc.name
power_suspendDevice_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0040
* @tc.name
Power_SuspendDevices_JSTest0040
* @tc.desc Try to suspend the device and let screen off
*/
it
(
'
power_suspendDevice_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Power_SuspendDevices_JSTest0040
'
,
0
,
async
function
(
done
)
{
power
.
isScreenOn
()
.
then
(
screenOn
=>
{
console
.
info
(
'
power_suspendDevice_test
: The current screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_SuspendDevices_JSTest0040
: The current screenOn is
'
+
screenOn
);
if
(
!
screenOn
)
{
power
.
wakeupDevice
(
"
power_suspendDevice_test
"
);
power
.
wakeupDevice
(
"
Power_SuspendDevices_JSTest0040
"
);
}
})
.
catch
(
error
=>
{
console
.
log
(
'
power_suspendDevice_test
error:
'
+
error
);
console
.
log
(
'
Power_SuspendDevices_JSTest0040
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
setTimeout
(
function
(){
power
.
suspendDevice
();
console
.
info
(
'
power_suspendDevice_test
: SuspendDevice end
'
);
console
.
info
(
'
Power_SuspendDevices_JSTest0040
: SuspendDevice end
'
);
power
.
isScreenOn
()
.
then
(
screenOn
=>
{
console
.
info
(
'
power_suspendDevice_test
: The current screenOn is
'
+
screenOn
);
console
.
info
(
'
Power_SuspendDevices_JSTest0040
: The current screenOn is
'
+
screenOn
);
expect
(
screenOn
).
assertFalse
();
console
.
info
(
'
power_suspendDevice_test
success
'
);
console
.
info
(
'
Power_SuspendDevices_JSTest0040
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
power_suspendDevice_test
error:
'
+
error
);
console
.
log
(
'
Power_SuspendDevices_JSTest0040
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
...
...
@@ -134,37 +134,37 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number
power_js_005
* @tc.name
power_set_power_mode_promise
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0050
* @tc.name
Power_Get_PowerMode_Callback_JSTest0050
* @tc.desc Get The mode the device
*/
it
(
'
power_get_power_mode_promise
'
,
0
,
async
function
(
done
)
{
it
(
'
Power_Get_PowerMode_Callback_JSTest0050
'
,
0
,
async
function
(
done
)
{
power
.
getPowerMode
()
.
then
(
powerMode
=>
{
console
.
info
(
'
power_get_set_power_mode_promise
power mode is
'
+
powerMode
);
console
.
info
(
'
Power_Get_PowerMode_Callback_JSTest0050
power mode is
'
+
powerMode
);
expect
(
powerMode
>=
600
&&
powerMode
<=
603
).
assertTrue
();
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
power_get_set_power_mode_promise
error:
'
+
error
);
console
.
log
(
'
Power_Get_PowerMode_Callback_JSTest0050
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
power_js_006
* @tc.name
power_get_power_mode_callback
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0060
* @tc.name
Power_Get_PowerMode_Promise_JSTest0060
* @tc.desc Get The mode the device
*/
it
(
'
power_get_power_mode_callback
'
,
0
,
async
function
(
done
)
{
it
(
'
Power_Get_PowerMode_Promise_JSTest0060
'
,
0
,
async
function
(
done
)
{
power
.
getPowerMode
((
error
,
powerMode
)
=>
{
if
(
typeof
error
===
"
undefined
"
)
{
console
.
info
(
'
power_power_mode_callback
power mode is
'
+
powerMode
);
console
.
info
(
'
Power_Get_PowerMode_Promise_JSTest0060
power mode is
'
+
powerMode
);
expect
(
powerMode
>=
600
&&
powerMode
<=
603
).
assertTrue
();
done
();
}
else
{
console
.
log
(
'
power_get_power_mode_callback
:
'
+
error
);
console
.
log
(
'
Power_Get_PowerMode_Promise_JSTest0060
:
'
+
error
);
expect
().
assertFail
();
done
();
}
...
...
@@ -172,44 +172,44 @@ describe('appInfoTest_power_1', function () {
})
/**
* @tc.number
power_js_007
* @tc.name
power_device_power_mode_MODE_NORMAL
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0070
* @tc.name
Power_Device_Power_Mode_MODENORMAL_JSTest0070
* @tc.desc Get device power mode MODE_NORMAL
*/
it
(
'
power_device_power_mode_normal
'
,
0
,
function
()
{
it
(
'
Power_Device_Power_Mode_MODENORMAL_JSTest0070
'
,
0
,
function
()
{
let
devicePowerMode
=
power
.
DevicePowerMode
.
MODE_NORMAL
;
console
.
info
(
'
MODE_NORMAL =
'
+
devicePowerMode
);
expect
(
devicePowerMode
===
600
).
assertTrue
();
})
/**
* @tc.number
power_js_008
* @tc.name
power_device_power_mode_MODE_POWER_SAVE
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0080
* @tc.name
Power_Device_Power_Mode_MODEPOWERSAVE_JSTest0080
* @tc.desc Get device power mode MODE_POWER_SAVE
*/
it
(
'
power_device_power_mode_power_save
'
,
0
,
function
()
{
it
(
'
Power_Device_Power_Mode_MODEPOWERSAVE_JSTest0080
'
,
0
,
function
()
{
let
devicePowerMode
=
power
.
DevicePowerMode
.
MODE_POWER_SAVE
;
console
.
info
(
'
MODE_POWER_SAVE =
'
+
devicePowerMode
);
expect
(
devicePowerMode
===
601
).
assertTrue
();
})
/**
* @tc.number
power_js_009
* @tc.name
power_device_power_mode_MODE_PERFORMANCE
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0090
* @tc.name
Power_Device_pPower_Mode_MODEPERFORMANCE_JSTest0090
* @tc.desc Get device power mode MODE_PERFORMANCE
*/
it
(
'
power_device_power_mode_performance
'
,
0
,
function
()
{
it
(
'
Power_Device_pPower_Mode_MODEPERFORMANCE_JSTest0090
'
,
0
,
function
()
{
let
devicePowerMode
=
power
.
DevicePowerMode
.
MODE_PERFORMANCE
;
console
.
info
(
'
MODE_PERFORMANCE =
'
+
devicePowerMode
);
expect
(
devicePowerMode
===
602
).
assertTrue
();
})
/**
* @tc.number
power_js_01
0
* @tc.name
power_device_power_mode_MODE_EXTREME_POWER_SAVE
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_010
0
* @tc.name
Power_Device_Power_Mode_MODE_EXTREME_POWER_SAVE_JSTest0100
* @tc.desc Get device power mode MODE_EXTREME_POWER_SAVE
*/
it
(
'
power_device_power_mode_extreme_power_save
'
,
0
,
function
()
{
it
(
'
Power_Device_Power_Mode_MODE_EXTREME_POWER_SAVE_JSTest0100
'
,
0
,
function
()
{
let
devicePowerMode
=
power
.
DevicePowerMode
.
MODE_EXTREME_POWER_SAVE
;
console
.
info
(
'
MODE_EXTREME_POWER_SAVE =
'
+
devicePowerMode
);
expect
(
devicePowerMode
===
603
).
assertTrue
();
...
...
powermgr/power_manager/src/main/js/default/test/power_manager_running_lock.test.js
浏览文件 @
d15931d1
...
...
@@ -21,46 +21,46 @@ describe('appInfoTest_power_2', function () {
console
.
log
(
"
*************RunningLock Unit Test Begin*************
"
);
/**
* @tc.number
running_lock_js_001
* @tc.name
create_running_lock_promise_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0110
* @tc.name
Create_Running_Lock_Promise_JSTest0010
* @tc.desc Create running lock
*/
it
(
'
create_running_lock_promise_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Create_Running_Lock_Promise_JSTest0010
'
,
0
,
async
function
(
done
)
{
runningLock
.
createRunningLock
(
"
running_lock_test_1
"
,
runningLock
.
RunningLockType
.
BACKGROUND
)
.
then
(
runninglock
=>
{
expect
(
runninglock
!==
null
).
assertTrue
();
console
.
info
(
'
create_running_lock_promise_test
success
'
);
console
.
info
(
'
Create_Running_Lock_Promise_JSTest0010
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
create_running_lock_promise_test
error:
'
+
error
);
console
.
log
(
'
Create_Running_Lock_Promise_JSTest0010
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
running_lock_js_002
* @tc.name
create_running_lock_callback_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0120
* @tc.name
Create_Running_Lock_CallBack_JSTest0020
* @tc.desc Create running lock
*/
it
(
'
create_running_lock_callback_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Create_Running_Lock_CallBack_JSTest0020
'
,
0
,
async
function
(
done
)
{
runningLock
.
createRunningLock
(
"
running_lock_test_2
"
,
runningLock
.
RunningLockType
.
BACKGROUND
,
(
error
,
runninglock
)
=>
{
if
(
typeof
error
===
"
undefined
"
)
{
console
.
info
(
'
create_running_lock_callback_test
: runningLock is
'
+
runninglock
);
console
.
info
(
'
Create_Running_Lock_CallBack_JSTest0020
: runningLock is
'
+
runninglock
);
expect
(
runninglock
!==
null
).
assertTrue
();
let
used
=
runninglock
.
isUsed
();
console
.
info
(
'
create_running_lock_callback_test
is used:
'
+
used
);
console
.
info
(
'
Create_Running_Lock_CallBack_JSTest0020
is used:
'
+
used
);
expect
(
used
).
assertFalse
();
runninglock
.
lock
(
500
);
used
=
runninglock
.
isUsed
();
console
.
info
(
'
after lock
create_running_lock_callback_test
is used:
'
+
used
);
console
.
info
(
'
after lock
Create_Running_Lock_CallBack_JSTest0020
is used:
'
+
used
);
expect
(
used
).
assertTrue
();
console
.
info
(
'
create_running_lock_callback_test
success
'
);
console
.
info
(
'
Create_Running_Lock_CallBack_JSTest0020
success
'
);
done
();
}
else
{
console
.
log
(
'
create_running_lock_callback_test
:
'
+
error
);
console
.
log
(
'
Create_Running_Lock_CallBack_JSTest0020
:
'
+
error
);
expect
().
assertFail
();
done
();
}
...
...
@@ -68,113 +68,113 @@ describe('appInfoTest_power_2', function () {
})
/**
* @tc.number
running_lock_js_003
* @tc.name
running_lock_lock_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0130
* @tc.name
Running_Lock_Lock_JSTest0030
* @tc.desc Prevents the system from hibernating and sets the lock duration
*/
it
(
'
running_lock_lock_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Running_Lock_Lock_JSTest0030
'
,
0
,
async
function
(
done
)
{
runningLock
.
createRunningLock
(
"
running_lock_test_3
"
,
runningLock
.
RunningLockType
.
BACKGROUND
)
.
then
(
runninglock
=>
{
expect
(
runninglock
!==
null
).
assertTrue
();
let
used
=
runninglock
.
isUsed
();
console
.
info
(
'
running_lock_lock_test
is used:
'
+
used
);
console
.
info
(
'
Running_Lock_Lock_JSTest0030
is used:
'
+
used
);
expect
(
used
).
assertFalse
();
runninglock
.
lock
(
500
);
used
=
runninglock
.
isUsed
();
console
.
info
(
'
after lock
running_lock_lock_test
is used:
'
+
used
);
console
.
info
(
'
after lock
Running_Lock_Lock_JSTest0030
is used:
'
+
used
);
expect
(
used
).
assertTrue
();
console
.
info
(
'
running_lock_lock_test
success
'
);
console
.
info
(
'
Running_Lock_Lock_JSTest0030
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
running_lock_lock_test
error:
'
+
error
);
console
.
log
(
'
Running_Lock_Lock_JSTest0030
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
running_lock_js_004
* @tc.name
running_lock_lock_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0140
* @tc.name
Running_Lock_used_JSTest0040
* @tc.desc Checks whether a lock is held or in use
*/
it
(
'
running_lock_isused_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Running_Lock_used_JSTest0040
'
,
0
,
async
function
(
done
)
{
runningLock
.
createRunningLock
(
"
running_lock_test_4
"
,
runningLock
.
RunningLockType
.
BACKGROUND
)
.
then
(
runninglock
=>
{
expect
(
runninglock
!==
null
).
assertTrue
();
let
used
=
runninglock
.
isUsed
();
console
.
info
(
'
running_lock_isused_test
used:
'
+
used
);
console
.
info
(
'
Running_Lock_used_JSTest0040
used:
'
+
used
);
expect
(
used
).
assertFalse
();
console
.
info
(
'
running_lock_isused_test
success
'
);
console
.
info
(
'
Running_Lock_used_JSTest0040
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
running_lock_isused_test
error:
'
+
error
);
console
.
log
(
'
Running_Lock_used_JSTest0040
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
running_lock_js_005
* @tc.name
running_lock_unlock_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0150
* @tc.name
Running_Lock_Unlock_JSTest0050
* @tc.desc Release running lock
*/
it
(
'
running_lock_unlock_test
'
,
0
,
async
function
(
done
)
{
it
(
'
Running_Lock_Unlock_JSTest0050
'
,
0
,
async
function
(
done
)
{
runningLock
.
createRunningLock
(
"
running_lock_test_5
"
,
runningLock
.
RunningLockType
.
BACKGROUND
)
.
then
(
runninglock
=>
{
expect
(
runninglock
!==
null
).
assertTrue
();
let
used
=
runninglock
.
isUsed
();
console
.
info
(
'
running_lock_unlock_test
is used:
'
+
used
);
console
.
info
(
'
Running_Lock_Unlock_JSTest0050
is used:
'
+
used
);
expect
(
used
).
assertFalse
();
runninglock
.
lock
(
500
);
used
=
runninglock
.
isUsed
();
console
.
info
(
'
after lock
running_lock_unlock_test
is used:
'
+
used
);
console
.
info
(
'
after lock
Running_Lock_Unlock_JSTest0050
is used:
'
+
used
);
expect
(
used
).
assertTrue
();
runninglock
.
unlock
();
used
=
runninglock
.
isUsed
();
console
.
info
(
'
after unlock
running_lock_unlock_test
is used:
'
+
used
);
console
.
info
(
'
after unlock
Running_Lock_Unlock_JSTest0050
is used:
'
+
used
);
expect
(
used
).
assertFalse
();
console
.
info
(
'
running_lock_unlock_test
success
'
);
console
.
info
(
'
Running_Lock_Unlock_JSTest0050
success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
running_lock_unlock_test
error:
'
+
error
);
console
.
log
(
'
Running_Lock_Unlock_JSTest0050
error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
running_lock_js_006
* @tc.name
enum_runningLock_type_background_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0160
* @tc.name
Enum_RunningLock_Type_Background_JSTest0060
* @tc.desc The lock type is BACKGROUND
*/
it
(
'
enum_runningLock_type_background_test
'
,
0
,
function
()
{
it
(
'
Enum_RunningLock_Type_Background_JSTest0060
'
,
0
,
function
()
{
let
runningLockType
=
runningLock
.
RunningLockType
.
BACKGROUND
;
console
.
info
(
'
runningLockType =
'
+
runningLockType
);
expect
(
runningLockType
==
1
).
assertTrue
();
console
.
info
(
'
enum_runningLock_type_background_test
success
'
);
console
.
info
(
'
Enum_RunningLock_Type_Background_JSTest0060
success
'
);
})
/**
* @tc.number
running_lock_js_007
* @tc.name
enum_runningLock_type_proximityscreencontrol_test
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0170
* @tc.name
Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070
* @tc.desc The lock type is PROXIMITY_SCREEN_CONTROL
*/
it
(
'
enum_runningLock_type_proximityscreencontrol_test
'
,
0
,
function
()
{
it
(
'
Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070
'
,
0
,
function
()
{
let
runningLockType
=
runningLock
.
RunningLockType
.
PROXIMITY_SCREEN_CONTROL
;
console
.
info
(
'
runningLockType =
'
+
runningLockType
);
expect
(
runningLockType
==
2
).
assertTrue
();
console
.
info
(
'
enum_runningLock_type_proximityscreencontrol_test
success
'
);
console
.
info
(
'
Enum_RunningLock_Type_Proximityscreencontrol_JSTest0070
success
'
);
})
/**
* @tc.number
running_lock_js_008
* @tc.name
is_runninglock_type_supported_promise_test_1
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0180
* @tc.name
Is_Runninglock_Type_Supported_Promise_Test1_JSTest0080
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it
(
'
is_runninglock_type_supported_promise_test_1
'
,
0
,
async
function
(
done
)
{
it
(
'
Is_Runninglock_Type_Supported_Promise_Test1_JSTest0080
'
,
0
,
async
function
(
done
)
{
runningLock
.
isRunningLockTypeSupported
(
runningLock
.
RunningLockType
.
PROXIMITY_SCREEN_CONTROL
)
.
then
(
supported
=>
{
console
.
info
(
'
is_runninglock_type_supported_test_1 PROXIMITY_SCREEN_CONTROL supported is
'
+
supported
);
...
...
@@ -190,39 +190,39 @@ describe('appInfoTest_power_2', function () {
})
/**
* @tc.number
running_lock_js_009
* @tc.name
is_runninglock_type_supported_promise_test_2
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_0190
* @tc.name
Is_Runninglock_Type_Supported_Promise_Test2_JSTest0090
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it
(
'
is_runninglock_type_supported_promise_test_2
'
,
0
,
async
function
(
done
)
{
it
(
'
Is_Runninglock_Type_Supported_Promise_Test2_JSTest0090
'
,
0
,
async
function
(
done
)
{
runningLock
.
isRunningLockTypeSupported
(
runningLock
.
RunningLockType
.
BACKGROUND
)
.
then
(
supported
=>
{
console
.
info
(
'
is_runninglock_type_supported_promise_test_
2 BACKGROUND supported is
'
+
supported
);
console
.
info
(
'
Is_Runninglock_Type_Supported_Promise_Test
2 BACKGROUND supported is
'
+
supported
);
expect
(
supported
).
assertTrue
();
console
.
info
(
'
is_runninglock_type_supported_promise_test_
2 success
'
);
console
.
info
(
'
Is_Runninglock_Type_Supported_Promise_Test
2 success
'
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
'
is_runninglock_type_supported_promise_test_
2 error:
'
+
error
);
console
.
log
(
'
Is_Runninglock_Type_Supported_Promise_Test
2 error:
'
+
error
);
expect
().
assertFail
();
done
();
})
})
/**
* @tc.number
running_lock_js_01
0
* @tc.name
is_runninglock_type_supported_callback_test_3
* @tc.number
SUB_PowerSystem_PowerManager_JSTest_020
0
* @tc.name
Is_Runninglock_Type_Supported_Callback_test3_JSTest0100
* @tc.desc Checks whether the specified RunningLockType is supported.
*/
it
(
'
is_runninglock_type_supported_callback_test_3
'
,
0
,
async
function
(
done
)
{
it
(
'
Is_Runninglock_Type_Supported_Callback_test3_JSTest0100
'
,
0
,
async
function
(
done
)
{
runningLock
.
isRunningLockTypeSupported
(
runningLock
.
RunningLockType
.
BACKGROUND
,
(
error
,
supported
)
=>
{
if
(
typeof
error
===
"
undefined
"
)
{
console
.
info
(
'
is_runninglock_type_supported_callback_test_3 BACKGROUND
supported is
'
+
supported
);
console
.
info
(
'
Is_Runninglock_Type_Supported_Callback_test3_JSTest
supported is
'
+
supported
);
expect
(
supported
).
assertTrue
();
console
.
info
(
'
is_runninglock_type_supported_callback_test_3
success
'
);
console
.
info
(
'
Is_Runninglock_Type_Supported_Callback_test3_JSTest
success
'
);
done
();
}
else
{
console
.
log
(
'
is_runninglock_type_supported_callback_test_3
:
'
+
error
);
console
.
log
(
'
Is_Runninglock_Type_Supported_Callback_test3_JSTest
:
'
+
error
);
expect
().
assertFail
();
done
();
}
...
...
powermgr/thermal_manager/src/main/js/default/test/thermal_uint.test.js
浏览文件 @
d15931d1
...
...
@@ -40,11 +40,11 @@ describe('appInfoTest_thermal_2', function () {
function
test1
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_001
* @tc.name Thermal_
001
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0010
* @tc.name Thermal_
JSTest0010
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
001
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0010
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
enter
"
);
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
...
...
@@ -61,11 +61,11 @@ function test1() {
function
test2
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_002
* @tc.name Thermal_
002
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0020
* @tc.name Thermal_
JSTest0020
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
002
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0020
'
,
0
,
async
function
(
done
)
{
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
let
warm
=
thermal
.
getThermalLevel
();
...
...
@@ -81,11 +81,11 @@ function test2() {
function
test3
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_003
* @tc.name Thermal_
003
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0030
* @tc.name Thermal_
JSTest0030
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
003
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0030
'
,
0
,
async
function
(
done
)
{
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
let
hot
=
thermal
.
getThermalLevel
();
...
...
@@ -101,11 +101,11 @@ function test3() {
function
test4
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_004
* @tc.name Thermal_
004
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0040
* @tc.name Thermal_
JSTest0040
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
004
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0040
'
,
0
,
async
function
(
done
)
{
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
let
overheated
=
thermal
.
getThermalLevel
();
...
...
@@ -122,11 +122,11 @@ function test4() {
function
test5
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_005
* @tc.name Thermal_
005
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0050
* @tc.name Thermal_
JSTest0050
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
005
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0050
'
,
0
,
async
function
(
done
)
{
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
let
warning
=
thermal
.
getThermalLevel
();
...
...
@@ -142,11 +142,11 @@ function test5() {
function
test6
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_006
* @tc.name Thermal_
006
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0060
* @tc.name Thermal_
JSTest0060
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
006
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0060
'
,
0
,
async
function
(
done
)
{
await
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
let
emergency
=
thermal
.
getThermalLevel
();
...
...
@@ -163,11 +163,11 @@ function test6() {
function
test7
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_007
* @tc.name Thermal_
007
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0070
* @tc.name Thermal_
JSTest0070
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
007
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0070
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
cool
)
=>
{
console
.
info
(
"
warm level is:
"
+
cool
);
expect
(
cool
>=
thermal
.
ThermalLevel
.
COOL
&&
cool
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
@@ -187,11 +187,11 @@ function test7() {
function
test8
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_008
* @tc.name Thermal_
008
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0080
* @tc.name Thermal_
JSTest0080
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
008
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0080
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
warm
)
=>
{
console
.
info
(
"
warm level is:
"
+
warm
);
expect
(
warm
>=
thermal
.
ThermalLevel
.
COOL
&&
warm
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
@@ -211,11 +211,11 @@ function test8() {
function
test9
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_009
* @tc.name Thermal_
009
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0090
* @tc.name Thermal_
JSTest0090
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
009
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0090
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
hot
)
=>
{
console
.
info
(
"
hot level is:
"
+
hot
);
expect
(
hot
>=
thermal
.
ThermalLevel
.
COOL
&&
hot
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
@@ -236,11 +236,11 @@ function test9() {
function
test10
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_01
0
* @tc.name Thermal_
01
0
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_010
0
* @tc.name Thermal_
JSTest010
0
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
01
0
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest010
0
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
overheated
)
=>
{
console
.
info
(
"
overheated level is:
"
+
overheated
);
expect
(
overheated
>=
thermal
.
ThermalLevel
.
COOL
&&
...
...
@@ -261,11 +261,11 @@ function test10() {
function
test11
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_011
* @tc.name Thermal_
011
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0110
* @tc.name Thermal_
JSTest0110
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
011
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0110
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
warning
)
=>
{
console
.
info
(
"
warning level is:
"
+
warning
);
expect
(
warning
>=
thermal
.
ThermalLevel
.
COOL
&&
warning
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
@@ -285,11 +285,11 @@ function test11() {
function
test12
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_012
* @tc.name Thermal_
012
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0120
* @tc.name Thermal_
JSTest0120
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
012
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0120
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
emergency
)
=>
{
console
.
info
(
"
emergency level is:
"
+
emergency
);
expect
(
emergency
>=
thermal
.
ThermalLevel
.
COOL
&&
emergency
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
@@ -309,11 +309,11 @@ function test12() {
function
test13
()
{
const
MSEC_1000
=
1000
;
/* @tc.number
thermal_manager_js_013
* @tc.name Thermal_
013
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0130
* @tc.name Thermal_
JSTest0130
* @tc.desc Thermal acquisition kit
*/
it
(
'
Thermal_
013
'
,
0
,
async
function
(
done
)
{
it
(
'
Thermal_
JSTest0130
'
,
0
,
async
function
(
done
)
{
thermal
.
subscribeThermalLevel
((
cool
)
=>
{
console
.
info
(
"
cool level is:
"
+
cool
);
expect
(
cool
>=
thermal
.
ThermalLevel
.
COOL
&&
cool
<=
thermal
.
ThermalLevel
.
EMERGENCY
).
assertTrue
();
...
...
powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js
浏览文件 @
d15931d1
...
...
@@ -27,7 +27,7 @@ describe('appInfoTest_thermal_1', function () {
function
test14
()
{
/* @tc.number
thermal_manager_js_014
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0010
* @tc.name Thermal_014
* @tc.desc Thermal acquisition kit
*/
...
...
@@ -47,7 +47,7 @@ function test14() {
function
test15
()
{
/* @tc.number
thermal_manager_js_015
/* @tc.number
USB_PowerSystem_ThermalManager_JSTest_0020
* @tc.name Thermal_015
* @tc.desc Thermal acquisition kit
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录