Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
90d714df
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看板
未验证
提交
90d714df
编写于
2月 14, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 14, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7578 电话失败用例适配
Merge pull request !7578 from zhangfuzhi/master
上级
e8816355
310de4cd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
306 addition
and
306 deletion
+306
-306
telephony/telephonyjstest/netmanager_base/register/src/main/js/test/NetworkManagerRegister.test.js
.../register/src/main/js/test/NetworkManagerRegister.test.js
+35
-35
telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js
...ase/call_manager/src/main/js/test/CallManagerTest.test.js
+271
-271
未找到文件。
telephony/telephonyjstest/netmanager_base/register/src/main/js/test/NetworkManagerRegister.test.js
浏览文件 @
90d714df
...
...
@@ -35,7 +35,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
console
.
log
(
"
Telephony_NetworkManager_register_Async_0100 register
"
);
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -57,7 +57,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
console
.
log
(
"
Telephony_NetworkManager_register_Async_0100 unregister
"
);
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -106,7 +106,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregisterresult:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -158,7 +158,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -210,7 +210,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregisterresult:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -262,7 +262,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -314,7 +314,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregisterresult:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -366,7 +366,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -418,7 +418,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -469,7 +469,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -521,7 +521,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -574,7 +574,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -627,7 +627,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -681,7 +681,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -735,7 +735,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -788,7 +788,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -842,7 +842,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -895,7 +895,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -930,7 +930,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -944,7 +944,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn1
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -981,7 +981,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1034,7 +1034,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister fail
"
+
error
);
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1068,7 +1068,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -1084,14 +1084,14 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn1
.
register
(
function
(
error
)
{
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
netConn1
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1127,7 +1127,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -1143,14 +1143,14 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn1
.
register
(
function
(
error
)
{
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
netConn1
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1172,7 +1172,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
register
(
function
(
error
)
{
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -1197,7 +1197,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1249,7 +1249,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1270,7 +1270,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
register
(
function
(
error
)
{
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -1295,7 +1295,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
@@ -1315,7 +1315,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
register
(
function
(
error
)
{
if
(
error
)
{
console
.
info
(
caseName
+
"
register fail:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
return
;
}
...
...
@@ -1341,7 +1341,7 @@ export default function Telephony_NetworkManagerRegisterTest() {
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
console
.
info
(
caseName
+
"
unregister result:
"
+
JSON
.
stringify
(
error
));
expect
(
).
assertFail
();
expect
(
true
).
assertFalse
();
done
();
}
done
();
...
...
telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js
浏览文件 @
90d714df
...
...
@@ -38,11 +38,11 @@ export default function ActsBaseCallManagerTest() {
const
REJECT_MESSAGE_NUM
=
'
1234567890123456789012345678901234567890
'
;
/**
* @tc.number Telephony_CallManager_getCallState_Async_0100
* @tc.name To get the idle call status, call getCallState() to get the current call status.
* call.CALL_STATE_IDLE is returned
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_getCallState_Async_0100
* @tc.name To get the idle call status, call getCallState() to get the current call status.
* call.CALL_STATE_IDLE is returned
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_getCallState_Async_0100
'
,
0
,
async
function
(
done
)
{
call
.
getCallState
((
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -58,11 +58,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_getCallState_Promise_0100
* @tc.name To get the idle call status, call getCallState() to get the current call status.
* call.CALL_STATE_IDLE is returned
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_getCallState_Promise_0100
* @tc.name To get the idle call status, call getCallState() to get the current call status.
* call.CALL_STATE_IDLE is returned
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_getCallState_Promise_0100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
getCallState
();
...
...
@@ -79,10 +79,10 @@ export default function ActsBaseCallManagerTest() {
/**
* @tc.number Telephony_CallManager_hasCall_Async_0400
* @tc.name When idle, hasCall() is called to confirm that there is no current call,returning false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_hasCall_Async_0400
* @tc.name When idle, hasCall() is called to confirm that there is no current call,returning false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_hasCall_Async_0400
'
,
0
,
async
function
(
done
)
{
call
.
hasCall
((
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -99,10 +99,10 @@ export default function ActsBaseCallManagerTest() {
/**
* @tc.number Telephony_CallManager_hasCall_Promise_0400
* @tc.name When idle, hasCall() is called to confirm that there is no current call, returning false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_hasCall_Promise_0400
* @tc.name When idle, hasCall() is called to confirm that there is no current call, returning false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_hasCall_Promise_0400
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
hasCall
();
...
...
@@ -118,11 +118,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0100
* @tc.name PhoneNumber is 100000000000. Call formatPhoneNumber() to format the number.
* The return value is 10 000 000 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0100
* @tc.name PhoneNumber is 100000000000. Call formatPhoneNumber() to format the number.
* The return value is 10 000 000 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0100
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
100000000000
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -139,32 +139,33 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0200
* @tc.name If phoneNumber is 10 000 000 0000, options: CN, call formatPhoneNumber() to format the number,
* and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0200
* @tc.name If phoneNumber is 10 000 000 0000, options: CN, call formatPhoneNumber() to format the number,
* and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0200
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
10 000 000 0000
'
,
{
countryCode
:
'
CN
'
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0200 finish =
${
err
.
message
}
`
);
console
.
log
(
"
Telephony_CallManager_formatPhoneNumber_Async_0200 fail = ${err.message}
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
return
;
}
expect
(
).
assertFail
();
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0200 f
ail
'
);
expect
(
data
===
'
10 000 000 0000
'
).
assertTrue
();
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0200 f
inish
'
+
JSON
.
stringify
(
data
)
);
done
();
});
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0300
* @tc.name If phoneNumber is (010)00000000, options: CN, call formatPhoneNumber() to format the number,
* return the value 010 0000 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0300
* @tc.name If phoneNumber is (010)00000000, options: CN, call formatPhoneNumber() to format the number,
* return the value 010 0000 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0300
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
(010)00000000
'
,
{
countryCode
:
'
CN
'
...
...
@@ -182,11 +183,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0400
* @tc.name PhoneNumber is 010-0000-0000, options: CN, call formatPhoneNumber() to format the number,
* return 010 0000 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0400
* @tc.name PhoneNumber is 010-0000-0000, options: CN, call formatPhoneNumber() to format the number,
* return 010 0000 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0400
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
010-0000-0000
'
,
{
countryCode
:
'
CN
'
...
...
@@ -204,32 +205,33 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0500
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0500
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0500
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
666666999999
'
,
{
countryCode
:
'
CN
'
},
(
err
)
=>
{
},
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0500 finish err =
${
err
.
message
}
`
);
console
.
log
(
"
Telephony_CallManager_formatPhoneNumber_Async_0500 fail err =
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
return
;
}
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0500 f
ail
'
);
expect
(
).
assertFail
();
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0500 f
inish
'
+
JSON
.
stringify
(
data
)
);
expect
(
data
===
'
666666999999
'
).
assertTrue
();
done
();
});
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0600
* @tc.name If phoneNumber is 2000000000, type non-existent options: abCDFG. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0600
* @tc.name If phoneNumber is 2000000000, type non-existent options: abCDFG. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0600
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
2000000000
'
,
{
countryCode
:
'
abcdefg
'
...
...
@@ -246,11 +248,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0700
* @tc.name If phoneNumber is 2000000000, options: ', call formatPhoneNumber() to
* format the number and catch err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0700
* @tc.name If phoneNumber is 2000000000, options: ', call formatPhoneNumber() to
* format the number and catch err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0700
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumber
(
'
2000000000
'
,
{
countryCode
:
''
...
...
@@ -267,11 +269,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0100
* @tc.name PhoneNumber is 2000000. Call formatPhoneNumber() to format the number.
* The return value is 200 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0100
* @tc.name PhoneNumber is 2000000. Call formatPhoneNumber() to format the number.
* The return value is 200 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumber
(
'
2000000
'
);
...
...
@@ -287,31 +289,30 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0200
* @tc.name PhoneNumber is 010-100-0000, options: CN, call formatPhoneNumber() to format the number, err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0200
* @tc.name PhoneNumber is 010-100-0000, options: CN, call formatPhoneNumber() to format the number, err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0200
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumber
(
'
010-100-0000
'
,
{
countryCode
:
'
CN
'
});
expect
().
assertFail
();
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0200 fail
'
);
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0200 finish
'
);
done
();
}
catch
(
err
)
{
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Promise_0200 finish err =
${
err
}
`
);
console
.
log
(
"
Telephony_CallManager_formatPhoneNumber_Promise_0200 finish err = ${err}
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0300
* @tc.name PhoneNumber: (010)00000000, options: CN, call formatPhoneNumber() to format the number,
* return the value 010 0000 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0300
* @tc.name PhoneNumber: (010)00000000, options: CN, call formatPhoneNumber() to format the number,
* return the value 010 0000 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0300
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumber
(
'
(010)00000000
'
,
{
...
...
@@ -329,11 +330,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0400
* @tc.name If phoneNumber is 200-0000, options: CN, call formatPhoneNumber() to format the
* number and return 200 0000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0400
* @tc.name If phoneNumber is 200-0000, options: CN, call formatPhoneNumber() to format the
* number and return 200 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0400
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumber
(
'
200-0000
'
,
{
...
...
@@ -351,32 +352,31 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0500
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0500
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0500
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumber
(
'
666666999999
'
,
{
countryCode
:
'
CN
'
});
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0500 fail
'
);
expect
().
assertFail
();
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0500 finish
'
);
done
();
return
;
}
catch
(
err
)
{
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Promise_0500 finish err =
${
err
.
message
}
`
);
console
.
log
(
"
Telephony_CallManager_formatPhoneNumber_Promise_0500 finish err = ${err.message}
"
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
done
();
}
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0600
* @tc.name If phoneNumber is 20000000, enter non-existent options: abCDFG and call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0600
* @tc.name If phoneNumber is 20000000, enter non-existent options: abCDFG and call
* formatPhoneNumber() to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0600
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumber
(
'
20000000
'
,
{
...
...
@@ -393,10 +393,10 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0700
* @tc.name If phoneNumber is 20000000, options: , call formatPhoneNumber() to format the number and catch err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0700
* @tc.name If phoneNumber is 20000000, options: , call formatPhoneNumber() to format the number and catch err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0700
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumber
(
'
20000000
'
,
{
...
...
@@ -413,11 +413,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0100
* @tc.name PhoneNumber is 010-0000-0000, options: CN, call formatPhoneNumberToE164() to format the number,
* and return +861000000000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0100
* @tc.name PhoneNumber is 010-0000-0000, options: CN, call formatPhoneNumberToE164() to format the number,
* and return +861000000000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0100
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
010-0000-0000
'
,
'
CN
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -433,11 +433,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0200
* @tc.name If phoneNumber is (010)00000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +861000000000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0200
* @tc.name If phoneNumber is (010)00000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +861000000000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0200
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
(010)00000000
'
,
'
CN
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -453,11 +453,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0300
* @tc.name If phoneNumber is 01000000000, options: CN, call formatPhoneNumberToE164() to format the number,
* and return +861000000000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0300
* @tc.name If phoneNumber is 01000000000, options: CN, call formatPhoneNumberToE164() to format the number,
* and return +861000000000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0300
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
01000000000
'
,
'
CN
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
...
...
@@ -473,11 +473,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0400
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumberToE164() to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0400
* @tc.name PhoneNumber 666666999999 is not supported in the current country. Options: CN. Call
* formatPhoneNumberToE164() to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0400
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
666666999999
'
,
'
CN
'
,
(
err
)
=>
{
if
(
err
)
{
...
...
@@ -492,11 +492,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0500
* @tc.name If phoneNumber is 01000000000, type non-existent options: abCDFG. Call formatPhoneNumberToE164()
* to format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0500
* @tc.name If phoneNumber is 01000000000, type non-existent options: abCDFG. Call formatPhoneNumberToE164()
* to format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0500
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
01000000000
'
,
'
abcdfg
'
,
(
err
)
=>
{
if
(
err
)
{
...
...
@@ -511,11 +511,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0600
* @tc.name If phoneNumber is 01000000000, options: ', call formatPhoneNumberToE164() to
* format the number and catch err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Async_0600
* @tc.name If phoneNumber is 01000000000, options: ', call formatPhoneNumberToE164() to
* format the number and catch err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Async_0600
'
,
0
,
async
function
(
done
)
{
call
.
formatPhoneNumberToE164
(
'
01000000000
'
,
''
,
(
err
)
=>
{
if
(
err
)
{
...
...
@@ -530,11 +530,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0100
* @tc.name PhoneNumber is 52300000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +8652300000000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0100
* @tc.name PhoneNumber is 52300000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +8652300000000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumberToE164
(
'
52300000000
'
,
'
CN
'
);
...
...
@@ -550,11 +550,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0200
* @tc.name If phoneNumber is (523)00000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +8652300000000
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0200
* @tc.name If phoneNumber is (523)00000000, options: CN, call formatPhoneNumberToE164() to format the number,
* return +8652300000000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0200
'
,
0
,
async
function
(
done
)
{
console
.
log
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0200 running
'
);
try
{
...
...
@@ -571,11 +571,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0300
* @tc.name PhoneNumber is 523-0000-0000, options: CN. Call formatPhoneNumberToE164() to format the number.
* +8652300000000 is returned
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0300
* @tc.name PhoneNumber is 523-0000-0000, options: CN. Call formatPhoneNumberToE164() to format the number.
* +8652300000000 is returned
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0300
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
formatPhoneNumberToE164
(
'
523-0000-0000
'
,
'
CN
'
);
...
...
@@ -591,11 +591,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0400
* @tc.name Currently, phoneNumber is 999999, options: CN. Call formatPhoneNumberToE164() to
* format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0400
* @tc.name Currently, phoneNumber is 999999, options: CN. Call formatPhoneNumberToE164() to
* format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0400
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumberToE164
(
'
999999
'
,
'
CN
'
);
...
...
@@ -610,11 +610,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0500
* @tc.name PhoneNumber is 52300000000. Type non-existent options: abCDFG. Call formatPhoneNumberToE164() to
* format the number and capture err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0500
* @tc.name PhoneNumber is 52300000000. Type non-existent options: abCDFG. Call formatPhoneNumberToE164() to
* format the number and capture err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0500
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumberToE164
(
'
52300000000
'
,
'
abcdefg
'
);
...
...
@@ -629,11 +629,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0600
* @tc.name If phoneNumber is 52300000000, options: ', call formatPhoneNumberToE164()
* to format the number and catch err
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_formatPhoneNumberToE164_Promise_0600
* @tc.name If phoneNumber is 52300000000, options: ', call formatPhoneNumberToE164()
* to format the number and catch err
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumberToE164_Promise_0600
'
,
0
,
async
function
(
done
)
{
try
{
await
call
.
formatPhoneNumberToE164
(
'
52300000000
'
,
''
);
...
...
@@ -649,11 +649,11 @@ export default function ActsBaseCallManagerTest() {
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0100
* @tc.name PhoneNumber: 0+0+0, options is 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0100
* @tc.name PhoneNumber: 0+0+0, options is 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0100
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
0+0+0
'
,
{
slotId
:
SLOT_0
...
...
@@ -671,11 +671,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0200
* @tc.name PhoneNumber: INVALID_NUMBER, options 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0200
* @tc.name PhoneNumber: INVALID_NUMBER, options 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0200
'
,
0
,
async
function
(
done
)
{
let
CASE_NAME
=
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0200
'
;
call
.
isEmergencyPhoneNumber
(
INVALID_NUMBER
,
{
...
...
@@ -693,11 +693,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0300
* @tc.name PhoneNumber: 000, options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency number
* The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0300
* @tc.name PhoneNumber: 000, options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency number
* The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0300
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
000
'
,
{
slotId
:
SLOT_0
...
...
@@ -715,11 +715,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0400
* @tc.name PhoneNumber: 112 with options 1. Call isEmergencyPhoneNumber() to verify whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0400
* @tc.name PhoneNumber: 112 with options 1. Call isEmergencyPhoneNumber() to verify whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0400
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
112
'
,
{
slotId
:
SLOT_0
...
...
@@ -737,11 +737,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0500
* @tc.name PhoneNumber: 911, options are 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0500
* @tc.name PhoneNumber: 911, options are 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0500
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
911
'
,
{
slotId
:
SLOT_0
...
...
@@ -759,11 +759,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0600
* @tc.name PhoneNumber: 08 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0600
* @tc.name PhoneNumber: 08 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0600
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
08
'
,
{
slotId
:
SLOT_0
...
...
@@ -781,11 +781,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0700
* @tc.name PhoneNumber: 118, options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0700
* @tc.name PhoneNumber: 118, options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0700
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
118
'
,
{
slotId
:
SLOT_0
...
...
@@ -803,11 +803,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0800
* @tc.name PhoneNumber: 999 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0800
* @tc.name PhoneNumber: 999 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0800
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
999
'
,
{
slotId
:
SLOT_0
...
...
@@ -825,11 +825,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0900
* @tc.name PhoneNumber: 119. Call isEmergencyPhoneNumber() to determine whether it is an emergency number.
* The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_0900
* @tc.name PhoneNumber: 119. Call isEmergencyPhoneNumber() to determine whether it is an emergency number.
* The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_0900
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
119
'
,
{
slotId
:
SLOT_0
...
...
@@ -847,11 +847,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_1000
* @tc.name PhoneNumber: 110, isEmergencyPhoneNumber() is called back to determine whether it is an emergency
* number, returning true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_1000
* @tc.name PhoneNumber: 110, isEmergencyPhoneNumber() is called back to determine whether it is an emergency
* number, returning true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_1000
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
110
'
,
{
slotId
:
SLOT_0
...
...
@@ -869,11 +869,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_1300
* @tc.name PhoneNumber: 110, options -1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Async_1300
* @tc.name PhoneNumber: 110, options -1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Async_1300
'
,
0
,
async
function
(
done
)
{
call
.
isEmergencyPhoneNumber
(
'
110
'
,
{
slotId
:
ERR_SLOT_ID
...
...
@@ -890,11 +890,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0100
* @tc.name PhoneNumber: 0+0+0, options is 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0100
* @tc.name PhoneNumber: 0+0+0, options is 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
0+0+0
'
,
{
...
...
@@ -912,11 +912,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0200
* @tc.name PhoneNumber: INVALID_NUMBER, options 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0200
* @tc.name PhoneNumber: INVALID_NUMBER, options 1. Call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0200
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
INVALID_NUMBER
'
,
{
...
...
@@ -934,11 +934,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0300
* @tc.name PhoneNumber: 000 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0300
* @tc.name PhoneNumber: 000 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0300
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
000
'
,
{
...
...
@@ -956,11 +956,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0400
* @tc.name PhoneNumber: 112 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0400
* @tc.name PhoneNumber: 112 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0400
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
112
'
,
{
...
...
@@ -978,11 +978,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0500
* @tc.name PhoneNumber: 911 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0500
* @tc.name PhoneNumber: 911 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0500
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
911
'
,
{
...
...
@@ -1000,11 +1000,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0600
* @tc.name PhoneNumber: 08. If options are 1, call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0600
* @tc.name PhoneNumber: 08. If options are 1, call isEmergencyPhoneNumber() to check whether it is an
* emergency number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0600
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
08
'
,
{
...
...
@@ -1022,11 +1022,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0700
* @tc.name PhoneNumber: 118 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0700
* @tc.name PhoneNumber: 118 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0700
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
118
'
,
{
...
...
@@ -1044,11 +1044,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0800
* @tc.name PhoneNumber: 999 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_0800
* @tc.name PhoneNumber: 999 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_0800
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
999
'
,
{
...
...
@@ -1066,11 +1066,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1100
* @tc.name PhoneNumber: 119 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1100
* @tc.name PhoneNumber: 119 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_1100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
119
'
);
...
...
@@ -1086,11 +1086,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1200
* @tc.name PhoneNumber: 110 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1200
* @tc.name PhoneNumber: 110 with options 1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is true
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_1200
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
110
'
);
...
...
@@ -1106,11 +1106,11 @@ export default function ActsBaseCallManagerTest() {
});
/**
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1300
* @tc.name PhoneNumber: 120, options -1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
* @tc.number Telephony_CallManager_isEmergencyPhoneNumber_Promise_1300
* @tc.name PhoneNumber: 120, options -1. Call isEmergencyPhoneNumber() to check whether it is an emergency
* number. The return value is false
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_isEmergencyPhoneNumber_Promise_1300
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
isEmergencyPhoneNumber
(
'
120
'
,
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录