Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
99a994d6
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看板
未验证
提交
99a994d6
编写于
9月 14, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 14, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5451 【communication】修改master 蓝牙测试用例失败问题
Merge pull request !5451 from 权力/myfeature
上级
ff7e0ecc
bd345f35
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
6 deletion
+19
-6
communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js
...ation/bluetooth_on/src/main/js/test/BluetoothPair.test.js
+16
-0
communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js
.../bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js
+2
-3
communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js
...n/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js
+1
-3
未找到文件。
communication/bluetooth_on/src/main/js/test/BluetoothPair.test.js
浏览文件 @
99a994d6
...
@@ -64,6 +64,22 @@ describe('bluetoothhostTest2', function() {
...
@@ -64,6 +64,22 @@ describe('bluetoothhostTest2', function() {
console
.
info
(
'
afterAll called
'
)
console
.
info
(
'
afterAll called
'
)
})
})
/**
* @tc.number SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0100
* @tc.name Test pairDevice of use invailded address
* @tc.desc Test pairDevice api
* @tc.size MEDIUM
* @ since 8
* @tc.type Function
* @tc.level Level 2
*/
it
(
'
SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0100
'
,
0
,
async
function
(
done
)
{
let
result
=
bluetooth
.
pairDevice
(
"
11:22:55:66:33:44
"
);
console
.
info
(
"
[bluetooth_js] onStartpair001 ->
"
+
JSON
.
stringify
(
result
));
expect
(
result
).
assertFalse
();
done
()
})
/**
/**
* @tc.number SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200
* @tc.number SUB_COMMUNICATION_BLUETOOTH_BR_Pair_0200
* @tc.name testStartpair
* @tc.name testStartpair
...
...
communication/bluetooth_profile/src/main/js/test/BluetoothA2dp.test.js
浏览文件 @
99a994d6
...
@@ -122,10 +122,9 @@ describe('bluetoothhostTest_host_1', function () {
...
@@ -122,10 +122,9 @@ describe('bluetoothhostTest_host_1', function () {
let
a2dpSrc
=
bluetooth
.
getProfile
(
ProfileId
.
PROFILE_A2DP_SOURCE
);
let
a2dpSrc
=
bluetooth
.
getProfile
(
ProfileId
.
PROFILE_A2DP_SOURCE
);
console
.
info
(
'
[bluetooth_js]a2dp get profile result:
'
+
JSON
.
stringify
(
a2dpSrc
));
console
.
info
(
'
[bluetooth_js]a2dp get profile result:
'
+
JSON
.
stringify
(
a2dpSrc
));
a2dpSrc
.
on
(
'
connectionStateChange
'
,
StateChangeParam
);
a2dpSrc
.
on
(
'
connectionStateChange
'
,
StateChangeParam
);
let
conn
=
a2dpSrc
.
connect
(
'
11:22:33:44:55:77
'
);
a2dpSrc
.
connect
(
'
11:22:33:44:55:77
'
);
await
sleep
(
6000
);
await
sleep
(
6000
);
console
.
info
(
'
[bluetooth_js]a2dp connect result:
'
+
JSON
.
stringify
(
conn
));
expect
(
conn
).
assertTrue
();
a2dpSrc
.
off
(
'
connectionStateChange
'
,
StateChangeParam
);
a2dpSrc
.
off
(
'
connectionStateChange
'
,
StateChangeParam
);
done
();
done
();
})
})
...
...
communication/bluetooth_profile/src/main/js/test/BluetoothHfp.test.js
浏览文件 @
99a994d6
...
@@ -146,10 +146,8 @@ describe('bluetoothhostTest_host_3', function () {
...
@@ -146,10 +146,8 @@ describe('bluetoothhostTest_host_3', function () {
}
}
let
hfpSrc
=
bluetooth
.
getProfile
(
ProfileId
.
PROFILE_HANDS_FREE_AUDIO_GATEWAY
);
let
hfpSrc
=
bluetooth
.
getProfile
(
ProfileId
.
PROFILE_HANDS_FREE_AUDIO_GATEWAY
);
hfpSrc
.
on
(
'
connectionStateChange
'
,
StateChangeParam
);
hfpSrc
.
on
(
'
connectionStateChange
'
,
StateChangeParam
);
let
conn
=
hfpSrc
.
connect
(
'
11:22:33:44:55:66
'
);
hfpSrc
.
connect
(
'
11:22:33:44:55:66
'
);
await
sleep
(
6000
);
await
sleep
(
6000
);
console
.
info
(
'
[bluetooth_js]hfp connect result:
'
+
JSON
.
stringify
(
conn
));
expect
(
conn
).
assertTrue
();
hfpSrc
.
off
(
'
connectionStateChange
'
,
StateChangeParam
);
hfpSrc
.
off
(
'
connectionStateChange
'
,
StateChangeParam
);
done
();
done
();
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录