未验证 提交 aa83f0cd 编写于 作者: O openharmony_ci 提交者: Gitee

!3215 test: 添加remainingChargeTime_test 接口测试用例

Merge pull request !3215 from zhaoruiyuan/master
......@@ -390,4 +390,15 @@ describe('appInfoTest', function () {
console.info('batteryLevelState = ' + batteryLevelState);
expect(batteryLevelState == 5).assertTrue();
})
/**
* @tc.number battery_manager_js_3400
* @tc.name remainingChargeTime_test
* @tc.desc Battry Present Interface Test
*/
it('remainingChargeTime_test', 0, function () {
let remainingChargeTime = batteryInfo.estimatedRemainingChargeTime;
console.info('remainingChargeTime = ' + remainingChargeTime);
expect(remainingChargeTime >= 0).assertTrue();
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册