Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3aa77e49
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,发现更多精彩内容 >>
提交
3aa77e49
编写于
5月 24, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix telephony test case error
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
a4cf0673
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
14 deletion
+24
-14
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/test/CallManageAll.test.js
...er_ims2_call/entry/src/main/js/test/CallManageAll.test.js
+12
-12
telephony/telephonyjstest/radiostatistic/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets
.../src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets
+12
-2
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/test/CallManageAll.test.js
浏览文件 @
3aa77e49
...
...
@@ -863,42 +863,42 @@ describe('CallManageImsCall', function () {
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0
12
0
* @tc.number Telephony_CallManager_formatPhoneNumber_Async_0
20
0
* @tc.name PhoneNumber is 13900000000, options: CN, Call formatPhoneNumber() to format the number.
* The return value is 1
0 000
000 0000
* The return value is 1
39 0
000 0000
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0
12
0
'
,
0
,
async
function
(
done
)
{
it
(
'
Telephony_CallManager_formatPhoneNumber_Async_0
20
0
'
,
0
,
async
function
(
done
)
{
let
numberFormatOptions
=
new
NumberFormatOptions
(
'
CN
'
);
call
.
formatPhoneNumber
(
'
13900000000
'
,
numberFormatOptions
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0
12
0 err =
${
err
.
message
}
`
);
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0
12
0 fail
'
);
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0
20
0 err =
${
err
.
message
}
`
);
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Async_0
20
0 fail
'
);
expect
().
assertFail
();
done
();
return
;
}
expect
(
data
===
'
139 0000 0000
"
'
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0
12
0 finish data =
${
data
}
`
);
expect
(
data
===
'
139 0000 0000
'
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Async_0
20
0 finish data =
${
data
}
`
);
done
();
});
});
/**
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0
12
0
* @tc.number Telephony_CallManager_formatPhoneNumber_Promise_0
20
0
* @tc.name PhoneNumber is 13900000000, options: US, Call formatPhoneNumber() to format the number.
* The return value is
200 0000
* The return value is
'1 390-000-0000'
* @tc.desc Function test
*/
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0
12
0
'
,
0
,
async
function
(
done
)
{
it
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0
20
0
'
,
0
,
async
function
(
done
)
{
let
numberFormatOptions
=
new
NumberFormatOptions
(
'
US
'
);
try
{
var
data
=
await
call
.
formatPhoneNumber
(
'
13900000000
'
,
numberFormatOptions
);
expect
(
data
===
'
1 390-000-0000
'
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Promise_0
12
0 finish data =
${
data
}
`
);
console
.
log
(
`Telephony_CallManager_formatPhoneNumber_Promise_0
20
0 finish data =
${
data
}
`
);
done
();
}
catch
(
err
)
{
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0
12
0 fail
'
);
console
.
log
(
'
Telephony_CallManager_formatPhoneNumber_Promise_0
20
0 fail
'
);
expect
().
assertFail
();
done
();
}
...
...
telephony/telephonyjstest/radiostatistic/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets
浏览文件 @
3aa77e49
...
...
@@ -238,6 +238,11 @@ export default function radioSecondJsunit() {
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_getNetworkSelectionMode_Async_0600', 0, async function (done) {
if (utils.notCheck) {
expect(true).assertTrue();
done();
return;
}
radio.getNetworkSelectionMode(0, (err, res) => {
if (err) {
console.log(`Telephony_NetworkSearch_getNetworkSelectionMode_Async_0600 err: ${err}`);
...
...
@@ -258,12 +263,17 @@ export default function radioSecondJsunit() {
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_getNetworkSelectionMode_Promise_0600', 0, async function (done) {
if (utils.notCheck) {
expect(true).assertTrue();
done();
return;
}
try {
await radio.getNetworkSelectionMode(0);
console.log('Telephony_NetworkSearch_getNetworkSelectionMode_Promise_0600 pass');
expect(true).assertTrue();
} catch (err) {
console.log('Telephony_NetworkSearch_getNetworkSelectionMode_Promise_0600 fail');
console.log('Telephony_NetworkSearch_getNetworkSelectionMode_Promise_0600 fail
: ${err}
');
expect().assertFail();
done();
return;
...
...
@@ -296,7 +306,7 @@ export default function radioSecondJsunit() {
* @tc.name SlotId parameter input is 0, test getISOCountryCodeForNetwork() query function
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_getISOCountryCodeForNetwork_Promise_0
4
00', 0, async function (done) {
it('Telephony_NetworkSearch_getISOCountryCodeForNetwork_Promise_0
5
00', 0, async function (done) {
try {
let data = await radio.getISOCountryCodeForNetwork(0);
console.log(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录