Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
51d30ddf
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看板
提交
51d30ddf
编写于
2月 24, 2022
作者:
Q
q00313334
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
quanli1@huawei.com
Signed-off-by:
N
q00313334
<
quanli1@huawei.com
>
上级
379c2010
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
3 deletion
+12
-3
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
...uetooth_ble/src/main/js/default/test/BluetoothBle.test.js
+1
-1
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
.../wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
+10
-1
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
...ication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
+1
-1
未找到文件。
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
浏览文件 @
51d30ddf
...
@@ -235,7 +235,7 @@ describe('bluetoothhostTest', function() {
...
@@ -235,7 +235,7 @@ describe('bluetoothhostTest', function() {
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
let
ret
=
gattClient
.
connect
();
let
ret
=
gattClient
.
connect
();
console
.
info
(
'
[bluetooth_js] gatt connect ret :
'
+
ret
);
console
.
info
(
'
[bluetooth_js] gatt connect ret :
'
+
ret
);
expect
(
ret
).
assertEqual
(
fals
e
);
expect
(
ret
).
assertEqual
(
tru
e
);
console
.
info
(
'
[bluetooth_js] gatt connect end
'
);
console
.
info
(
'
[bluetooth_js] gatt connect end
'
);
})
})
...
...
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
浏览文件 @
51d30ddf
...
@@ -339,7 +339,14 @@ describe('ACTS_WifiTest', function() {
...
@@ -339,7 +339,14 @@ describe('ACTS_WifiTest', function() {
* @tc.desc Test set a contains Chinese.special.digits valid hotspot config
* @tc.desc Test set a contains Chinese.special.digits valid hotspot config
* @tc.level Level 2
* @tc.level Level 2
*/
*/
it
(
'
SUB_Communication_WiFi_Hotspot_Config_0008
'
,
0
,
function
()
{
it
(
'
SUB_Communication_WiFi_Hotspot_Config_0008
'
,
0
,
async
function
(
done
)
{
if
(
wifi
.
isHotspotActive
())
{
var
off
=
wifi
.
disableHotspot
();
await
sleep
(
3000
);
console
.
info
(
"
[wifi_test] enableHotspot result ->
"
+
off
);
expect
(
off
).
assertTrue
();
}
console
.
info
(
"
[wifi_test] set contains Chinese valid hotspot config start.
"
);
console
.
info
(
"
[wifi_test] set contains Chinese valid hotspot config start.
"
);
var
HotspotConfigC
=
{
var
HotspotConfigC
=
{
"
ssid
"
:
"
测试123!@#¥%……&*(
"
,
"
ssid
"
:
"
测试123!@#¥%……&*(
"
,
...
@@ -361,6 +368,7 @@ describe('ACTS_WifiTest', function() {
...
@@ -361,6 +368,7 @@ describe('ACTS_WifiTest', function() {
console
.
info
(
"
[wifi_test] getHotspotConfig result ->
"
+
JSON
.
stringify
(
config
));
console
.
info
(
"
[wifi_test] getHotspotConfig result ->
"
+
JSON
.
stringify
(
config
));
console
.
info
(
"
ssid:
"
+
config
.
ssid
);
console
.
info
(
"
ssid:
"
+
config
.
ssid
);
expect
(
true
).
assertEqual
(
config
.
ssid
==
HotspotConfigC
.
ssid
);
expect
(
true
).
assertEqual
(
config
.
ssid
==
HotspotConfigC
.
ssid
);
done
();
})
})
/**
/**
...
@@ -745,3 +753,4 @@ describe('ACTS_WifiTest', function() {
...
@@ -745,3 +753,4 @@ describe('ACTS_WifiTest', function() {
})
})
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
浏览文件 @
51d30ddf
...
@@ -332,7 +332,7 @@ describe('ACTS_WifiTest', function () {
...
@@ -332,7 +332,7 @@ describe('ACTS_WifiTest', function () {
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
var
resultLength
=
Object
.
keys
(
data
).
length
;
var
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getP2pPeerDevices [promise] result ->
"
+
JSON
.
stringify
(
data
));
console
.
info
(
"
[wifi_test] getP2pPeerDevices [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
expect
(
true
).
assertEqual
(
resultLength
>=
0
);
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
console
.
info
(
"
[wifi_test]getP2pPeerDevices promise then error.
"
+
JSON
.
stringify
(
error
));
console
.
info
(
"
[wifi_test]getP2pPeerDevices promise then error.
"
+
JSON
.
stringify
(
error
));
expect
().
assertFail
();
expect
().
assertFail
();
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
cac0689d
·
3月 17, 2022
mentioned in commit
cac0689d
mentioned in commit cac0689d9bf913a1c3df3ce74cceb3f857ff683d
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录