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

!3495 【Openharmony3.2】【Power】电源温控用例&权限整改

Merge pull request !3495 from logic42/OpenHarmony-3.1-Release
......@@ -55,6 +55,12 @@
"autoDesignWidth": false
}
}
],
"reqPermissions": [
{
"name": "ohos.permission.RUNNING_LOCK",
"reason": "use ohos.permission.RUNNING_LOCK"
}
]
}
}
\ No newline at end of file
......@@ -37,7 +37,7 @@ function test14() {
setTimeout(() => {
let level = thermal.getThermalLevel();
console.info("level is: " + level);
expect(level == -1).assertTrue();
expect(level >= 0 && level <= 6).assertTrue();
resolve();
done();
}, MSEC_1000 * 4);
......@@ -54,7 +54,7 @@ function test15() {
it('Thermal_015', 0, async function (done) {
thermal.subscribeThermalLevel((level) => {
console.info("level is: " + level);
expect(level == -1).assertTrue();
expect(level >= 0 && level <= 6).assertTrue();
done();
})
await new Promise((resolve, reject) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册