Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
aae68dbb
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看板
未验证
提交
aae68dbb
编写于
8月 25, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 25, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5115 修改失败用例
Merge pull request !5115 from 高曦/OpenHarmony-3.1-Release
上级
ee075f74
f5d6f04c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
10 addition
and
6 deletion
+10
-6
telephony/telephonyjstest/netmanager_base/socket/entry/src/main/js/test/NetStackSocket.test.js
...base/socket/entry/src/main/js/test/NetStackSocket.test.js
+10
-6
未找到文件。
telephony/telephonyjstest/netmanager_base/socket/entry/src/main/js/test/NetStackSocket.test.js
浏览文件 @
aae68dbb
...
@@ -226,7 +226,7 @@ describe('Telephony_NETSTACK_SocketTest', function () {
...
@@ -226,7 +226,7 @@ describe('Telephony_NETSTACK_SocketTest', function () {
*/
*/
it
(
'
Telephony_NetStack_UDPTest1200
'
,
0
,
function
(
done
)
{
it
(
'
Telephony_NetStack_UDPTest1200
'
,
0
,
function
(
done
)
{
let
udp
=
s
ocket
.
constructUDPSocketInstance
();
let
udp
=
netS
ocket
.
constructUDPSocketInstance
();
let
callback
=
value
=>
{
let
callback
=
value
=>
{
console
.
info
(
"
on message, message:
"
+
value
.
message
+
"
, remoteInfo:
"
+
value
.
remoteInfo
);
console
.
info
(
"
on message, message:
"
+
value
.
message
+
"
, remoteInfo:
"
+
value
.
remoteInfo
);
}
}
...
@@ -245,9 +245,11 @@ describe('Telephony_NETSTACK_SocketTest', function () {
...
@@ -245,9 +245,11 @@ describe('Telephony_NETSTACK_SocketTest', function () {
let
callback3
=
err
=>
{
let
callback3
=
err
=>
{
console
.
info
(
"
on error, err:
"
+
JSON
.
stringify
(
err
));
console
.
info
(
"
on error, err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
===
undefined
).
assertTrue
();
expect
(
err
===
undefined
).
assertTrue
();
done
();
}
}
udp
.
on
(
'
error
'
,
callback3
);
udp
.
on
(
'
error
'
,
callback3
);
udp
.
off
(
'
error
'
,
callback3
);
udp
.
off
(
'
error
'
,
callback3
);
done
();
});
});
/**
/**
...
@@ -446,28 +448,30 @@ describe('Telephony_NETSTACK_SocketTest', function () {
...
@@ -446,28 +448,30 @@ describe('Telephony_NETSTACK_SocketTest', function () {
*/
*/
it
(
'
Telephony_NetStack_TCPTest1200
'
,
0
,
function
(
done
)
{
it
(
'
Telephony_NetStack_TCPTest1200
'
,
0
,
function
(
done
)
{
let
tcp
=
s
ocket
.
constructTCPSocketInstance
();
let
tcp
=
netS
ocket
.
constructTCPSocketInstance
();
let
callback
=
value
=>
{
let
callback
=
value
=>
{
console
.
info
(
"
on message, message:
"
+
value
.
message
+
"
,
remoteInfo:
"
+
value
.
remoteInfo
);
console
.
info
(
"
on message, message:
"
+
value
.
message
+
"
,
"
+
"
remoteInfo:
"
+
value
.
remoteInfo
);
}
}
tcp
.
on
(
'
message
'
,
callback
);
tcp
.
on
(
'
message
'
,
callback
);
tcp
.
off
(
'
message
'
,
callback
);
tcp
.
off
(
'
message
'
,
callback
);
let
callback1
=
()
=>
{
let
callback1
=
()
=>
{
console
.
info
(
"
on connect success
"
);
console
.
info
(
"
Telephony_NetStack_TCPTest1200
on connect success
"
);
}
}
tcp
.
on
(
'
connect
'
,
callback1
);
tcp
.
on
(
'
connect
'
,
callback1
);
tcp
.
off
(
'
connect
'
,
callback1
);
tcp
.
off
(
'
connect
'
,
callback1
);
let
callback2
=
()
=>
{
let
callback2
=
()
=>
{
console
.
info
(
"
on close success
"
);
console
.
info
(
"
Telephony_NetStack_TCPTest1200
on close success
"
);
}
}
tcp
.
on
(
'
close
'
,
callback2
);
tcp
.
on
(
'
close
'
,
callback2
);
tcp
.
off
(
'
close
'
,
callback2
);
tcp
.
off
(
'
close
'
,
callback2
);
let
callback3
=
err
=>
{
let
callback3
=
err
=>
{
console
.
info
(
"
on error, err:
"
+
JSON
.
stringify
(
err
));
console
.
info
(
"
Telephony_NetStack_TCPTest1200
on error, err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
===
undefined
).
assertTrue
();
expect
(
err
===
undefined
).
assertTrue
();
done
();
}
}
tcp
.
on
(
'
error
'
,
callback3
);
tcp
.
on
(
'
error
'
,
callback3
);
tcp
.
off
(
'
error
'
,
callback3
);
tcp
.
off
(
'
error
'
,
callback3
);
done
();
});
});
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录