提交 a311461b 编写于 作者: Z zhangfuzhi

fixed d01176f1 from https://gitee.com/zhangfuzhi1/xts_acts/pulls/8835

rk拨打电话用例适配
Signed-off-by: Nzhangfuzhi <zhangfuzhi1@huawei.com>
上级 36600773
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
*/ */
import call from '@ohos.telephony.call'; import call from '@ohos.telephony.call';
import radio from '@ohos.telephony.radio';
import { afterEach, describe, expect, it } from '@ohos/hypium'; import { afterEach, describe, expect, it } from '@ohos/hypium';
const AUTO_ACCEPT_NUMBER = '10010'; const AUTO_ACCEPT_NUMBER = '10010';
const CALL_STATUS_DIALING = 2; const CALL_STATUS_DIALING = 2;
...@@ -434,7 +435,12 @@ export default function CallManageImsCall() { ...@@ -434,7 +435,12 @@ export default function CallManageImsCall() {
return; return;
}).catch((err) => { }).catch((err) => {
console.info(CaseName + ' case error' + JSON.stringify(err)); console.info(CaseName + ' case error' + JSON.stringify(err));
expect().assertFail(); radio.isRadioOn(0, (err, data) => {
console.info(CaseName + ' err' + JSON.stringify(err) + ' data ' + JSON.stringify(data));
if (!err) {
expect().assertFail();
}
});
done(); done();
}); });
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册