Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8ee3bb98
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8ee3bb98
编写于
1月 12, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 12, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7203 新增dial接口用例
Merge pull request !7203 from zhangfuzhi/master
上级
30f8c9ad
d97c8a6d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
74 addition
and
2 deletion
+74
-2
telephony/telephonyjstest/call_manager/call_manager_ims2_call/signature/openharmony_sx.p7b
...nager/call_manager_ims2_call/signature/openharmony_sx.p7b
+0
-0
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json
.../call_manager/call_manager_ims2_call/src/main/config.json
+4
-0
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js
..._manager_ims2_call/src/main/js/test/CallManageAll.test.js
+70
-2
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/signature/openharmony_sx.p7b
浏览文件 @
8ee3bb98
无法预览此类型文件
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json
浏览文件 @
8ee3bb98
...
@@ -74,6 +74,10 @@
...
@@ -74,6 +74,10 @@
{
{
"name"
:
"ohos.permission.READ_CONTACTS"
,
"name"
:
"ohos.permission.READ_CONTACTS"
,
"reason"
:
"need use ohos.permission.READ_CONTACTS"
"reason"
:
"need use ohos.permission.READ_CONTACTS"
},
{
"name"
:
"ohos.permission.PLACE_CALL"
,
"reason"
:
"need use ohos.permission.PLACE_CALL"
}
}
],
],
"js"
:
[
"js"
:
[
...
...
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js
浏览文件 @
8ee3bb98
/**
/**
* Copyright (C) 2021-202
2
Huawei Device Co., Ltd.
* Copyright (C) 2021-202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License")
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
@@ -22,7 +22,7 @@ const DIAL_TYPE_OTT = 2;
...
@@ -22,7 +22,7 @@ const DIAL_TYPE_OTT = 2;
const
MEDIA_TYPE_VOICE
=
0
;
const
MEDIA_TYPE_VOICE
=
0
;
const
TEL_CONFERENCE_IDLE
=
0
;
const
TEL_CONFERENCE_IDLE
=
0
;
const
ERR_SLOT_ID
=
-
1
;
const
ERR_SLOT_ID
=
-
1
;
const
CALL_NUMBER
=
'
10086
'
;
class
EmergencyNumberOptions
{
class
EmergencyNumberOptions
{
slotId
;
slotId
;
...
@@ -368,5 +368,73 @@ export default function CallManageImsCall() {
...
@@ -368,5 +368,73 @@ export default function CallManageImsCall() {
done
();
done
();
}
}
});
});
/**
* @tc.number Telephony_CallManager_Dial_Async_0100
* @tc.name testDial—0100
* @tc.desc PhoneNumber: 10086, no options. Call dial api by callback.
* The return value is true
*/
it
(
'
Telephony_CallManager_Dial_Async_0100
'
,
0
,
async
function
(
done
)
{
let
CaseName
=
'
Telephony_CallManager_Dial_Async_0100
'
;
try
{
call
.
dial
(
CALL_NUMBER
,
(
err
,
data
)
=>
{
console
.
info
(
CaseName
+
"
case success
"
+
JSON
.
stringify
(
data
));
expect
(
data
==
true
).
assertTrue
();
done
();
return
;
});
}
catch
(
err
)
{
console
.
info
(
CaseName
+
'
case error
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
});
/**
* @tc.number Telephony_CallManager_Dial_Async_0200
* @tc.name testDial—0200
* @tc.desc PhoneNumber: 10086, has options. Call dial api by callback.
* The return value is true
*/
it
(
'
Telephony_CallManager_Dial_Async_0200
'
,
0
,
async
function
(
done
)
{
let
CaseName
=
'
Telephony_CallManager_Dial_Async_0200
'
;
try
{
call
.
dial
(
CALL_NUMBER
,
{
extras
:
false
},
(
err
,
data
)
=>
{
console
.
info
(
CaseName
+
"
case success
"
+
JSON
.
stringify
(
data
));
expect
(
data
==
true
).
assertTrue
();
done
();
return
;
});
}
catch
(
err
)
{
console
.
info
(
CaseName
+
'
case error
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
});
/**
* @tc.number Telephony_CallManager_Dial_Promise_0100
* @tc.name testIsEmergencyPhoneNumber_1400
* @tc.desc PhoneNumber: 10086, has options. Call dila api by permise
* The return value is true
*/
it
(
'
Telephony_CallManager_Dial_Promise_0100
'
,
0
,
async
function
(
done
)
{
let
CaseName
=
'
Telephony_CallManager_Dial_Promise_0100
'
;
call
.
dial
(
CALL_NUMBER
,
{
extras
:
false
}).
then
((
data
)
=>
{
console
.
info
(
CaseName
+
"
case success
"
+
JSON
.
stringify
(
data
));
expect
(
data
==
true
).
assertTrue
();
done
();
return
;
}).
catch
((
err
)
=>
{
console
.
info
(
CaseName
+
'
case error
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
});
});
});
});
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录