Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fe909cb2
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看板
提交
fe909cb2
编写于
10月 30, 2022
作者:
Q
quanli
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
quanli1@huawei.com
Signed-off-by:
N
quanli
<
quanli1@huawei.com
>
上级
ecd6cfe0
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
53 addition
and
5 deletion
+53
-5
communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js
...ion/bluetooth_ble/src/main/js/test/BleGattManager.test.js
+1
-1
communication/nfc_Controller/src/main/js/test/nfc.MifareUltralightTag.js
...fc_Controller/src/main/js/test/nfc.MifareUltralightTag.js
+50
-1
communication/nfc_Controller/src/main/js/test/nfc.TagABFV.js
communication/nfc_Controller/src/main/js/test/nfc.TagABFV.js
+1
-0
communication/wifi_standard/src/main/js/test/WifiStationFunctions.test.js
...fi_standard/src/main/js/test/WifiStationFunctions.test.js
+1
-3
未找到文件。
communication/bluetooth_ble/src/main/js/test/BleGattManager.test.js
浏览文件 @
fe909cb2
...
...
@@ -388,7 +388,7 @@ describe('bluetoothBLETest', function() {
let
characteristic
=
{
serviceUuid
:
'
00001810-0000-1000-8000-00805F9B34FB
'
,
characteristicUuid
:
'
00001820-0000-1000-8000-00805F9B34FB
'
,
characteristicValue
:
arrayBufferCCC
,
descriptors
:
descriptors
};
gattClient
.
readCharacteristicValue
(
characteristic
).
then
((
object
)
=>
{
await
gattClient
.
readCharacteristicValue
(
characteristic
).
then
((
data
)
=>
{
if
(
object
!=
null
)
{
expect
(
true
).
assertEqual
(
true
);
}
else
{
...
...
communication/nfc_Controller/src/main/js/test/nfc.MifareUltralightTag.js
浏览文件 @
fe909cb2
...
...
@@ -118,6 +118,55 @@ export default function nfcMifareUltralightTag() {
/**
* @tc.number SUB_Communication_NFC_mifareUltralight_0300
* @tc.name testwriteSinglePage
* @tc.desc Test writeSinglePage api by promise.
* @tc.size MEDIUM
* @ since 7
* @tc.type Function
* @tc.level Level 2
*/
it
(
'
SUB_Communication_NFC_mifareUltralight_0300
'
,
0
,
async
function
(
done
)
{
let
pageIndex
=
1
;
let
rawData
=
[
0x01
,
0x02
];
await
MifareUltralightTag
.
writeSinglePage
(
pageIndex
,
rawData
).
then
((
data
)
=>
{
console
.
log
(
"
mifareUltralight writeSinglePages1 data:
"
+
data
+
"
json1:
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertTrue
(
data
>=
0
);
done
();
}).
catch
((
err
)
=>
{
console
.
log
(
"
mifareUltralight writeSinglePages1 err:
"
+
err
);
expect
(
true
).
assertEqual
(
true
);
done
();
});
sleep
(
3000
);
})
/**
* @tc.number SUB_Communication_NFC_mifareUltralight_0400
* @tc.name testwriteSinglePage
* @tc.desc Test writeSinglePage api by callback.
* @tc.size MEDIUM
* @ since 7
* @tc.type Function
* @tc.level Level 2
*/
it
(
'
SUB_Communication_NFC_mifareUltralight_0400
'
,
0
,
async
function
(
done
)
{
let
pageIndex
=
1
;
let
rawData
=
[
0x01
,
0x02
];
MifareUltralightTag
.
writeSinglePage
(
pageIndex
,
rawData
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
"
mifareUltralight writeSinglePages2 err:
"
+
err
);
expect
(
true
).
assertEqual
(
true
);
}
else
{
console
.
log
(
"
mifareUltralight writeSinglePages2 data:
"
+
data
+
"
json2:
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertTrue
(
data
>=
0
);
}
});
sleep
(
3000
);
done
();
})
/**
* @tc.number SUB_Communication_NFC_mifareUltralight_0500
* @tc.name testgetType
* @tc.desc Gets the type of Mifare Ultralight label
* @tc.size MEDIUM
...
...
communication/nfc_Controller/src/main/js/test/nfc.TagABFV.js
浏览文件 @
fe909cb2
...
...
@@ -53,6 +53,7 @@ let aTag = {
},
],
"
tagRfDiscId
"
:
1
,
"
supportedProfiles
"
:
1
,
};
let
bTag
=
{
...
...
communication/wifi_standard/src/main/js/test/WifiStationFunctions.test.js
浏览文件 @
fe909cb2
...
...
@@ -109,7 +109,7 @@ export default function actsWifiFunctionsTest() {
"
timestamp
"
+
result
[
j
].
timestamp
+
"
capabilities
"
+
result
[
j
].
capabilities
+
"
centerFrequency0:
"
+
result
[
j
].
centerFrequency0
+
"
centerFrequency1:
"
+
result
[
j
].
centerFrequency1
+
"
infoElems:
"
+
result
[
j
].
infoElems
);
+
"
eid:
"
+
result
[
j
].
infoElems
.
eid
+
"
content:
"
+
result
[
j
].
infoElems
.
content
);
}
}
resolve
();
...
...
@@ -325,5 +325,3 @@ export default function actsWifiFunctionsTest() {
})
}
鸿蒙社区
@harmonycommunity
mentioned in commit
f6cfdcd1
·
11月 04, 2022
mentioned in commit
f6cfdcd1
mentioned in commit f6cfdcd1f8972561549fd63e447ae2c97259667a
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录