Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6b0e899e
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看板
未验证
提交
6b0e899e
编写于
9月 11, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 11, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5423 解决networksearch测试套执行un
Merge pull request !5423 from zhangfuzhi/master
上级
28447dbe
e940b783
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
45 addition
and
45 deletion
+45
-45
telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js
...earch_errors/src/main/js/test/NetworkSearchErrors.test.js
+45
-45
未找到文件。
telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js
浏览文件 @
6b0e899e
...
...
@@ -54,45 +54,45 @@ describe('ActsNetworkSearchTest', function () {
afterEach
(
async
function
()
{
try
{
expect
(
radio
.
RADIO_TECHNOLOGY_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_1XRTT
===
2
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_WCDMA
===
3
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_HSPA
===
4
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_HSPAP
===
5
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_TD_SCDMA
===
6
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_EVDO
===
7
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_EHRPD
===
8
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_LTE
===
9
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_LTE_CA
===
10
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_IWLAN
===
11
).
assertTrue
();
expect
(
radio
.
RADIO_TECHNOLOGY_NR
===
12
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_GSM
===
1
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_CDMA
===
2
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_WCDMA
===
3
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_TDSCDMA
===
4
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_LTE
===
5
).
assertTrue
();
expect
(
radio
.
NETWORK_TYPE_NR
===
6
).
assertTrue
();
expect
(
radio
.
REG_STATE_NO_SERVICE
===
0
).
assertTrue
();
expect
(
radio
.
REG_STATE_IN_SERVICE
===
1
).
assertTrue
();
expect
(
radio
.
REG_STATE_EMERGENCY_CALL_ONLY
===
2
).
assertTrue
();
expect
(
radio
.
REG_STATE_POWER_OFF
===
3
).
assertTrue
();
expect
(
radio
.
NSA_STATE_NOT_SUPPORT
===
1
).
assertTrue
();
expect
(
radio
.
NSA_STATE_NO_DETECT
===
2
).
assertTrue
();
expect
(
radio
.
NSA_STATE_CONNECTED_DETECT
===
3
).
assertTrue
();
expect
(
radio
.
NSA_STATE_IDLE_DETECT
===
4
).
assertTrue
();
expect
(
radio
.
NSA_STATE_DUAL_CONNECTED
===
5
).
assertTrue
();
expect
(
radio
.
NSA_STATE_SA_ATTACHED
===
6
).
assertTrue
();
expect
(
radio
.
NETWORK_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
NETWORK_CURRENT
===
2
).
assertTrue
();
expect
(
radio
.
NETWORK_FORBIDDEN
===
3
).
assertTrue
();
expect
(
radio
.
NETWORK_SELECTION_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
NETWORK_SELECTION_MANUAL
===
2
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_1XRTT
===
2
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_WCDMA
===
3
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_HSPA
===
4
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_HSPAP
===
5
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_TD_SCDMA
===
6
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_EVDO
===
7
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_EHRPD
===
8
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_LTE
===
9
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_LTE_CA
===
10
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_IWLAN
===
11
).
assertTrue
();
expect
(
radio
.
R
adioTechnology
.
R
ADIO_TECHNOLOGY_NR
===
12
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_GSM
===
1
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_CDMA
===
2
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_WCDMA
===
3
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_TDSCDMA
===
4
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_LTE
===
5
).
assertTrue
();
expect
(
radio
.
N
etworkType
.
N
ETWORK_TYPE_NR
===
6
).
assertTrue
();
expect
(
radio
.
R
egState
.
R
EG_STATE_NO_SERVICE
===
0
).
assertTrue
();
expect
(
radio
.
R
egState
.
R
EG_STATE_IN_SERVICE
===
1
).
assertTrue
();
expect
(
radio
.
R
egState
.
R
EG_STATE_EMERGENCY_CALL_ONLY
===
2
).
assertTrue
();
expect
(
radio
.
R
egState
.
R
EG_STATE_POWER_OFF
===
3
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_NOT_SUPPORT
===
1
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_NO_DETECT
===
2
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_CONNECTED_DETECT
===
3
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_IDLE_DETECT
===
4
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_DUAL_CONNECTED
===
5
).
assertTrue
();
expect
(
radio
.
N
saState
.
N
SA_STATE_SA_ATTACHED
===
6
).
assertTrue
();
expect
(
radio
.
N
etworkInformationState
.
N
ETWORK_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
N
etworkInformationState
.
N
ETWORK_CURRENT
===
2
).
assertTrue
();
expect
(
radio
.
N
etworkInformationState
.
N
ETWORK_FORBIDDEN
===
3
).
assertTrue
();
expect
(
radio
.
N
etworkSelectionMode
.
N
ETWORK_SELECTION_UNKNOWN
===
0
).
assertTrue
();
expect
(
radio
.
N
etworkSelectionMode
.
N
ETWORK_SELECTION_MANUAL
===
2
).
assertTrue
();
}
catch
(
error
)
{
console
.
info
(
`Telephony_NetworkSearch error`
);
}
...
...
@@ -150,7 +150,7 @@ describe('ActsNetworkSearchTest', function () {
radio
.
getSignalInformation
(
SLOT_2
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getSignalInformation_Async_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
return
;
}
...
...
@@ -173,7 +173,7 @@ describe('ActsNetworkSearchTest', function () {
radio
.
getISOCountryCodeForNetwork
(
SLOT_2
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Async_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
return
;
}
...
...
@@ -197,7 +197,7 @@ describe('ActsNetworkSearchTest', function () {
expect
(
data
.
length
===
0
).
assertTrue
();
}
catch
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getISOCountryCodeForNetwork_Promise_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
return
;
}
...
...
@@ -294,7 +294,7 @@ describe('ActsNetworkSearchTest', function () {
expect
(
data
.
length
===
0
).
assertTrue
();
}
catch
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getSignalInformation_Promise_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
return
;
}
...
...
@@ -310,7 +310,7 @@ describe('ActsNetworkSearchTest', function () {
radio
.
getOperatorName
(
SLOT_2
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getOperatorName_Async_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
return
;
}
...
...
@@ -333,7 +333,7 @@ describe('ActsNetworkSearchTest', function () {
done
();
}
catch
(
err
)
{
console
.
info
(
`Telephony_NetworkSearch_getOperatorName_Promise_0400 fail err:
${
err
}
`
);
expect
(
err
.
code
).
assertEqual
(
"
202
"
);
expect
(
err
.
code
).
assertEqual
(
202
);
done
();
}
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录