Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9d26e064
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看板
提交
9d26e064
编写于
2月 26, 2022
作者:
Q
q00313334
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add location testcase
Signed-off-by:
N
q00313334
<
quanli1@huawei.com
>
上级
5ea9ccfc
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
740 addition
and
445 deletion
+740
-445
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
...uetooth_ble/src/main/js/default/test/BluetoothBle.test.js
+3
-1
communication/bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
...bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
+3
-1
communication/bluetooth_standard/src/main/js/default/test/Bluetooth.test.js
...tooth_standard/src/main/js/default/test/Bluetooth.test.js
+3
-1
location/geolocation_standard/signature/openharmony_sx.p7b
location/geolocation_standard/signature/openharmony_sx.p7b
+0
-0
location/geolocation_standard/src/main/config.json
location/geolocation_standard/src/main/config.json
+81
-4
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
...ion_standard/src/main/js/default/test/Geolocation.test.js
+650
-438
未找到文件。
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
浏览文件 @
9d26e064
...
...
@@ -69,6 +69,7 @@ describe('bluetoothhostTest', function() {
let
sta
=
bluetooth
.
getState
();
switch
(
sta
){
case
0
:
console
.
info
(
'
[bluetooth_js] bt turn off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
@@ -77,9 +78,10 @@ describe('bluetoothhostTest', function() {
await
sleep
(
3000
);
break
;
case
2
:
console
.
info
(
'
[bluetooth_js]
state is O
n:
'
+
JSON
.
stringify
(
sta
));
console
.
info
(
'
[bluetooth_js]
bt turn o
n:
'
+
JSON
.
stringify
(
sta
));
break
;
case
3
:
console
.
info
(
'
[bluetooth_js] bt turning off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
communication/bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
浏览文件 @
9d26e064
...
...
@@ -135,6 +135,7 @@ describe('bluetoothhostTest', function() {
let
sta
=
bluetooth
.
getState
();
switch
(
sta
){
case
0
:
console
.
info
(
'
[bluetooth_js] bt turn off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
@@ -143,9 +144,10 @@ describe('bluetoothhostTest', function() {
await
sleep
(
3000
);
break
;
case
2
:
console
.
info
(
'
[bluetooth_js]
state is O
n:
'
+
JSON
.
stringify
(
sta
));
console
.
info
(
'
[bluetooth_js]
bt turn o
n:
'
+
JSON
.
stringify
(
sta
));
break
;
case
3
:
console
.
info
(
'
[bluetooth_js] bt turning off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
communication/bluetooth_standard/src/main/js/default/test/Bluetooth.test.js
浏览文件 @
9d26e064
...
...
@@ -62,6 +62,7 @@ describe('bluetoothhostTest', function() {
let
sta
=
bluetooth
.
getState
();
switch
(
sta
){
case
0
:
console
.
info
(
'
[bluetooth_js] bt turn off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
@@ -70,9 +71,10 @@ describe('bluetoothhostTest', function() {
await
sleep
(
3000
);
break
;
case
2
:
console
.
info
(
'
[bluetooth_js]
state is O
n:
'
+
JSON
.
stringify
(
sta
));
console
.
info
(
'
[bluetooth_js]
bt turn o
n:
'
+
JSON
.
stringify
(
sta
));
break
;
case
3
:
console
.
info
(
'
[bluetooth_js] bt turning off:
'
+
JSON
.
stringify
(
sta
));
bluetooth
.
enableBluetooth
();
await
sleep
(
3000
);
break
;
...
...
location/geolocation_standard/signature/openharmony_sx.p7b
浏览文件 @
9d26e064
无法预览此类型文件
location/geolocation_standard/src/main/config.json
浏览文件 @
9d26e064
...
...
@@ -4,17 +4,19 @@
"vendor"
:
"acts"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0
.0
"
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
"target"
:
5
,
"releaseType"
:
"Beta1"
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.location.geolocation
.function
"
,
"package"
:
"ohos.acts.location.geolocation"
,
"name"
:
".MyApplication"
,
"mainAbility"
:
"ohos.acts.location.geolocation.function.MainAbility"
,
"deviceType"
:
[
"phone"
],
...
...
@@ -25,7 +27,6 @@
},
"abilities"
:
[
{
"visible"
:
true
,
"skills"
:
[
{
"entities"
:
[
...
...
@@ -36,6 +37,7 @@
]
}
],
"visible"
:
true
,
"name"
:
"ohos.acts.location.geolocation.function.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
...
...
@@ -44,6 +46,81 @@
"launchType"
:
"standard"
}
],
"defPermissions"
:
[
{
"availableScope"
:
[],
"grantMode"
:
"system_grant"
,
"name"
:
"ohos.permission.ACCESS_LOCATION"
},
{
"availableScope"
:
[],
"grantMode"
:
"system_grant"
,
"name"
:
"ohos.permission.LOCATION"
}
],
"reqPermissions"
:
[
{
"name"
:
"ohos.permission.LOCATION"
,
"reason"
:
"need use ohos.permission.LOCATION"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
},
{
"name"
:
"ohos.permission.ACCESS_LOCATION"
,
"reason"
:
"need use ohos.permission.ACCESS_LOCATION"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
},
{
"name"
:
"ohos.permission.LOCATION_IN_BACKGROUND"
,
"reason"
:
"need use ohos.permission.LOCATION_IN_BACKGROUND"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
},
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
},
{
"name"
:
"ohos.permission.GET_WIFI_LOCAL_MAC"
,
"reason"
:
"need use ohos.permission.GET_WIFI_LOCAL_MAC"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
},
{
"name"
:
"ohos.permission.GET_WIFI_INFO_INTERNAL"
,
"reason"
:
"need use ohos.permission.GET_WIFI_INFO_INTERNAL"
,
"usedScene"
:
{
"ability"
:
[
"ohos.acts.location.geolocation.function.MainAbility"
],
"when"
:
"inuse"
}
}
],
"js"
:
[
{
"pages"
:
[
...
...
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
浏览文件 @
9d26e064
此差异已折叠。
点击以展开。
鸿蒙社区
@harmonycommunity
mentioned in commit
3c69456c
·
3月 26, 2022
mentioned in commit
3c69456c
mentioned in commit 3c69456c65511a9ef28dc3d9608acd0c3752b342
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录