提交 c52c621b 编写于 作者: O openharmony_ci 提交者: Gitee

!1206 【Powermgr】【3.0-LTS】同步master代码至3.0-LTS

Merge pull request !1206 from 小语/yuxi1126
......@@ -262,6 +262,21 @@ describe('appInfoTest', function () {
brightness.setValue(10);
brightness.setValue(0);
brightness.setValue(255);
expect(0).assertEqual('0')
expect(0 == 0).assertTrue();
})
/**
* @tc.number battery_manager_js_2300
* @tc.name is_battery_present_test
* @tc.desc Battry Present Interface Test
*/
it('is_battery_present_test', 0, function () {
var isBatteryPresent = batteryInfo.isBatteryPresent;
console.info('isBatteryPresent = ' + isBatteryPresent);
if (isBatteryPresent) {
expect(isBatteryPresent).assertTrue();
}else{
expect(isBatteryPresent).assertFalse();
}
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册