Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8d1181a7
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看板
未验证
提交
8d1181a7
编写于
9月 27, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5686 电话子系统失败用例修改
Merge pull request !5686 from 李昊/master
上级
d071c95e
fcc59e69
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
9 addition
and
1 deletion
+9
-1
telephony/telephonyjstest/netmanager_base/register/src/main/js/test/NetworkManagerRegister.test.js
.../register/src/main/js/test/NetworkManagerRegister.test.js
+9
-1
未找到文件。
telephony/telephonyjstest/netmanager_base/register/src/main/js/test/NetworkManagerRegister.test.js
浏览文件 @
8d1181a7
...
@@ -133,6 +133,7 @@
...
@@ -133,6 +133,7 @@
returnValue
=
value
.
netId
;
returnValue
=
value
.
netId
;
}
}
});
});
console
.
info
(
"
netAvailable end
"
);
netConn
.
on
(
'
netCapabilitiesChange
'
,
(
value
)
=>
{
netConn
.
on
(
'
netCapabilitiesChange
'
,
(
value
)
=>
{
if
(
value
===
undefined
)
{
if
(
value
===
undefined
)
{
console
.
info
(
"
${caseName} netCapabilitiesChange fail
"
);
console
.
info
(
"
${caseName} netCapabilitiesChange fail
"
);
...
@@ -144,6 +145,7 @@
...
@@ -144,6 +145,7 @@
}
}
});
});
console
.
info
(
"
netCapabilitiesChange end
"
);
netConn
.
on
(
'
netConnectionPropertiesChange
'
,
(
value
)
=>
{
netConn
.
on
(
'
netConnectionPropertiesChange
'
,
(
value
)
=>
{
if
(
value
===
undefined
)
{
if
(
value
===
undefined
)
{
console
.
info
(
"
${caseName} netConnectionPropertiesChange fail
"
);
console
.
info
(
"
${caseName} netConnectionPropertiesChange fail
"
);
...
@@ -153,6 +155,7 @@
...
@@ -153,6 +155,7 @@
console
.
info
(
"
${caseName} netConnectionPropertiesChange handle =:
"
+
value
.
netHandle
.
netId
);
console
.
info
(
"
${caseName} netConnectionPropertiesChange handle =:
"
+
value
.
netHandle
.
netId
);
}
}
});
});
console
.
info
(
"
netConnectionPropertiesChange end
"
);
netConn
.
on
(
'
netLost
'
,
(
value
)
=>
{
netConn
.
on
(
'
netLost
'
,
(
value
)
=>
{
if
(
error
)
{
if
(
error
)
{
console
.
info
(
"
${caseName} netLost fail
"
);
console
.
info
(
"
${caseName} netLost fail
"
);
...
@@ -162,6 +165,7 @@
...
@@ -162,6 +165,7 @@
console
.
info
(
"
${caseName} netLost :
"
+
value
.
netId
);
console
.
info
(
"
${caseName} netLost :
"
+
value
.
netId
);
}
}
});
});
console
.
info
(
"
netLost end
"
);
netConn
.
on
(
'
netUnavailable
'
,
(
value
)
=>
{
netConn
.
on
(
'
netUnavailable
'
,
(
value
)
=>
{
if
(
error
)
{
if
(
error
)
{
console
.
info
(
"
${caseName} netUnavailable fail
"
);
console
.
info
(
"
${caseName} netUnavailable fail
"
);
...
@@ -171,6 +175,7 @@
...
@@ -171,6 +175,7 @@
console
.
info
(
"
${caseName} netUnavailable:
"
+
value
.
netId
);
console
.
info
(
"
${caseName} netUnavailable:
"
+
value
.
netId
);
}
}
});
});
console
.
info
(
"
netUnavailable end
"
);
netConn
.
on
(
'
netBlockStatuschange
'
,
(
value
)
=>
{
netConn
.
on
(
'
netBlockStatuschange
'
,
(
value
)
=>
{
if
(
error
)
{
if
(
error
)
{
console
.
info
(
"
${caseName} netBlockStatusChange fail
"
);
console
.
info
(
"
${caseName} netBlockStatusChange fail
"
);
...
@@ -180,11 +185,13 @@
...
@@ -180,11 +185,13 @@
console
.
info
(
"
${caseName} netBlockStatusChange :
"
+
value
.
netHandle
.
netId
);
console
.
info
(
"
${caseName} netBlockStatusChange :
"
+
value
.
netHandle
.
netId
);
}
}
});
});
console
.
info
(
"
netBlockStatuschange end
"
);
netConn
.
register
((
error
)
=>
{
netConn
.
register
((
error
)
=>
{
if
(
error
)
{
if
(
error
)
{
console
.
info
(
"
${caseName} register fail: ${error}
"
);
console
.
info
(
"
${caseName} register fail: ${error}
"
);
}
}
});
});
console
.
info
(
"
register end
"
);
await
sleep
(
DELAY
);
await
sleep
(
DELAY
);
netConn
.
unregister
((
error
)
=>
{
netConn
.
unregister
((
error
)
=>
{
if
(
error
)
{
if
(
error
)
{
...
@@ -192,6 +199,7 @@
...
@@ -192,6 +199,7 @@
done
();
done
();
}
}
});
});
console
.
info
(
"
unregister end
"
);
done
();
done
();
});
});
...
@@ -1304,7 +1312,7 @@
...
@@ -1304,7 +1312,7 @@
}
else
{
}
else
{
console
.
info
(
"
${caseName} netAvailable :
"
+
value
.
netId
);
console
.
info
(
"
${caseName} netAvailable :
"
+
value
.
netId
);
VALUE
=
value
.
netId
;
VALUE
=
value
.
netId
;
expect
(
VALUE
).
assertEqual
(
ETH_100
);
expect
(
VALUE
>=
ETH_100
).
assertTrue
(
);
}
}
});
});
netConn
.
on
(
'
netBlockStatusChange
'
,
(
error
,
value
)
=>
{
netConn
.
on
(
'
netBlockStatusChange
'
,
(
error
,
value
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录