Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5863093a
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5863093a
编写于
2月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
2月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2019 【location】增加rk3568 LBS测试用例
Merge pull request !2019 from 权力/myfeature1
上级
ae4e3c46
bb4089ee
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
1088 addition
and
79 deletion
+1088
-79
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
...on/wifi_standard/src/main/js/default/test/WifiSta.test.js
+154
-79
location/BUILD.gn
location/BUILD.gn
+22
-0
location/geolocation_standard/BUILD.gn
location/geolocation_standard/BUILD.gn
+38
-0
location/geolocation_standard/Test.json
location/geolocation_standard/Test.json
+18
-0
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
+60
-0
location/geolocation_standard/src/main/js/default/app.js
location/geolocation_standard/src/main/js/default/app.js
+23
-0
location/geolocation_standard/src/main/js/default/i18n/en-US.json
.../geolocation_standard/src/main/js/default/i18n/en-US.json
+6
-0
location/geolocation_standard/src/main/js/default/i18n/zh-CN.json
.../geolocation_standard/src/main/js/default/i18n/zh-CN.json
+6
-0
location/geolocation_standard/src/main/js/default/pages/index/index.css
...cation_standard/src/main/js/default/pages/index/index.css
+9
-0
location/geolocation_standard/src/main/js/default/pages/index/index.hml
...cation_standard/src/main/js/default/pages/index/index.hml
+5
-0
location/geolocation_standard/src/main/js/default/pages/index/index.js
...ocation_standard/src/main/js/default/pages/index/index.js
+43
-0
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
...ion_standard/src/main/js/default/test/Geolocation.test.js
+675
-0
location/geolocation_standard/src/main/js/default/test/List.test.js
...eolocation_standard/src/main/js/default/test/List.test.js
+16
-0
location/geolocation_standard/src/main/resources/base/element/string.json
...tion_standard/src/main/resources/base/element/string.json
+12
-0
location/geolocation_standard/src/main/resources/base/media/icon.png
...olocation_standard/src/main/resources/base/media/icon.png
+0
-0
test_packages.gni
test_packages.gni
+1
-0
未找到文件。
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
浏览文件 @
5863093a
...
...
@@ -35,6 +35,21 @@ var WifiSecurityType = {
WIFI_SEC_TYPE_SAE
:
4
,
}
var
SuppState
=
{
DISCONNECTED
:
0
,
INTERFACE_DISABLED
:
1
,
INACTIVE
:
2
,
SCANNING
:
3
,
AUTHENTICATING
:
4
,
ASSOCIATING
:
5
,
ASSOCIATED
:
6
,
FOUR_WAY_HANDSHAKE
:
7
,
GROUP_HANDSHAKE
:
8
,
COMPLETED
:
9
,
UNINITIALIZED
:
10
,
INVALID
:
11
,
}
var
wifiDeviceConfig
=
{
"
ssid
"
:
"
TEST
"
,
"
bssid
"
:
"
A1:B1:C1:D1:E1:F1
"
,
...
...
@@ -43,6 +58,17 @@ var wifiDeviceConfig = {
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_PSK
,
}
var
ConnState
=
{
SCANNING
:
0
,
CONNECTING
:
1
,
AUTHENTICATING
:
2
,
OBTAINING_IPADDR
:
3
,
CONNECTED
:
4
,
DISCONNECTING
:
5
,
DISCONNECTED
:
6
,
UNKNOWN
:
7
,
}
var
ipConfig
=
{
"
ipAddress
"
:
1284752956
,
"
gateway
"
:
17017024
,
...
...
@@ -352,7 +378,7 @@ describe('ACTS_WifiTest', function() {
expect
(
true
).
assertEqual
(
netWorkId
!=
-
1
);
console
.
info
(
"
[wifi_test]connectdevice result:
"
+
wifi
.
connectToNetwork
(
netWorkId
));
expect
(
wifi
.
connectToNetwork
(
netWorkId
)).
assertTrue
();
console
.
info
(
"
[wifi_test]
get empty linked information and getIpInfo
.
"
);
console
.
info
(
"
[wifi_test]
disableNetwork test start
.
"
);
var
disconNet
=
wifi
.
disableNetwork
(
netWorkId
);
console
.
log
(
"
[wifi_test] wifi disableNetwork result:
"
+
disconNet
);
expect
(
disconNet
).
assertTrue
();
...
...
@@ -382,9 +408,33 @@ describe('ACTS_WifiTest', function() {
})
/**
* @tc.number Info_0002
* @tc.name SUB_Communication_WiFi_Sta_Info_0002
* @tc.desc Test get CountryCode
* @tc.number SUB_Communication_WiFi_Sta_info_0001
* @tc.name testgetMacAddress
* @tc.desc Test getMacAddress api.
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_info_0001
'
,
0
,
function
()
{
if
(
!
wifi
.
isWifiActive
())
{
var
enable
=
wifi
.
enableWifi
();
sleep
(
3000
);
expect
(
enable
).
assertTrue
();
}
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
console
.
info
(
'
[wifi_test] getDeviceMacAddress test start ...
'
);
var
result
=
wifi
.
getDeviceMacAddress
();
console
.
info
(
"
[wifi_test] getDeviceMacAddress ->
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
.
length
>=
1
)
})
/**
* @tc.number SUB_Communication_WiFi_Sta_info_0002
* @tc.name testgetCountryCode
* @tc.desc Test getCountryCode api.
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_Info_0002
'
,
0
,
function
()
{
if
(
!
wifi
.
isWifiActive
())
{
...
...
@@ -398,39 +448,86 @@ describe('ACTS_WifiTest', function() {
console
.
info
(
"
[wifi_test] getCountryCode ->
"
+
JSON
.
stringify
(
countryCode
));
expect
(
JSON
.
stringify
(
countryCode
)).
assertEqual
(
'
"CN"
'
);
})
/**
* @tc.number SUB_Communication_WiFi_Sta_info_0004
* @tc.name testFeatureSupported
* @tc.desc Test FeatureSupported api.
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_info_0004
'
,
0
,
function
()
{
console
.
info
(
'
[wifi_test]FeatureSupported test start ...
'
);
var
result
=
wifi
.
getSupportedFeatures
();
console
.
info
(
"
[wifi_test] getFeatureSupported ->
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
[wifi_test] isFeatureSupported:
"
+
result
+
"
->
"
+
wifi
.
isFeatureSupported
(
result
));
expect
(
wifi
.
isFeatureSupported
(
result
)).
assertTrue
();
})
/**
* @tc.number Config_0002
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0001
* @tc.desc Test cnnnection a PSK SecurityType wifi deviceconfig
* @tc.number Conn_Info_0001
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0001
* @tc.desc Test reconnect wifi
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0001
'
,
0
,
function
()
{
console
.
info
(
"
[wifi_test] wifi connectToDevice test.
"
);
var
wifiDeviceConfigConn
=
{
"
ssid
"
:
"
TESTCONN
"
,
"
bssid
"
:
""
,
"
preSharedKey
"
:
"
12345678
"
,
"
isHiddenSsid
"
:
false
,
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_PSK
,
};
var
active
=
wifi
.
isWifiActive
();
sleep
(
3000
);
console
.
log
(
"
[wifi_test] wifi active result2:
"
+
active
);
if
(
!
active
){
var
enable
=
wifi
.
enableWifi
();
expect
(
enable
).
assertTrue
();
sleep
(
3000
);
}
var
result1
=
wifi
.
connectToDevice
(
wifiDeviceConfigConn
);
sleep
(
5000
);
console
.
log
(
"
[wifi_test] wifi connectToDevice result:
"
+
result1
);
expect
(
result1
).
assertTrue
();
console
.
info
(
"
[wifi_test] check isconnected wifi
"
);
var
isConnected
=
wifi
.
isConnected
();
console
.
log
(
"
[wifi_test] wifi isConnected result:
"
+
isConnected
);
expect
(
isConnected
).
assertFalse
();
console
.
info
(
"
[wifi_test] reconnect wifi
"
);
var
result
=
wifi
.
reconnect
();
sleep
(
5000
);
console
.
log
(
"
[wifi_test] wifi reconnect result:
"
+
result
);
expect
(
result
).
assertTrue
();
})
/**
* @tc.number conn_Config_0002
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0002
* @tc.desc Test getLinkedInfo information
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0001
'
,
0
,
async
function
()
{
console
.
info
(
"
[wifi_test][SUB_Communication_WiFi_Sta_Config_0002]
"
);
console
.
info
(
"
[wifi_test] create a PSK SecurityType wifi device config start.
"
);
var
wifiDeviceConfigConn
=
{
"
ssid
"
:
"
TEST_CONN
"
,
"
bssid
"
:
""
,
"
preSharedKey
"
:
"
12345678
"
,
"
isHiddenSsid
"
:
false
,
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_PSK
,
};
console
.
info
(
"
[wifi_test] check add device configs successfully
"
);
var
configs
=
wifi
.
getDeviceConfigs
();
console
.
info
(
"
[wifi_test] wifi getDeviceConfigs result1 :
"
+
JSON
.
stringify
(
configs
));
console
.
info
(
"
[wifi_test] connect wifi start.
"
);
var
conn1
=
wifi
.
connectToDevice
(
wifiDeviceConfigConn
);
sleep
(
5000
);
console
.
log
(
"
[wifi_test] wifi Connected result:
"
+
conn1
);
console
.
info
(
"
[wifi_test] check isconnected wifi
"
);
var
isConnected
=
wifi
.
isConnected
();
console
.
log
(
"
[wifi_test] wifi isConnected result:
"
+
isConnected
);
expect
(
isConnected
).
assertFalse
();
wifi
.
getLinkedInfo
((
err
,
data
)
=>
{
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0001
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
[wifi_test][SUB_Communication_WiFi_Sta_Conn_Info_0001]
"
);
console
.
info
(
'
console.info("[wifi_js] Wifi get link infos test[1]."
'
);
wifi
.
getLinkedInfo
()
.
then
((
result
)
=>
{
console
.
info
(
"
[wifi_js] get wifi link [promise] ->
"
+
JSON
.
stringify
(
result
));
expect
(
JSON
.
stringify
(
result
)).
assertContain
(
'
band
'
);
console
.
info
(
"
[wifi_js] get wifi link [promise].
"
);
done
();
}).
catch
((
error
)
=>
{
console
.
info
(
"
[wifi_js] promise then error.
"
+
JSON
.
stringify
(
error
));
expect
().
assertFail
();
});
wifi
.
getLinkedInfo
((
err
,
result
)
=>
{
if
(
err
)
{
return
console
.
error
(
'
failed to get
link infos callback because
'
+
JSON
.
stringify
(
err
));
return
console
.
error
(
'
failed to getlink infos callback because
'
+
JSON
.
stringify
(
err
));
}
else
{
console
.
info
(
"
[wifi_test] get wifi link [callback] ->
"
+
JSON
.
stringify
(
data
));
for
(
var
j
=
0
;
j
<
JSON
.
stringify
(
data
).
length
;
++
j
)
{
console
.
info
(
"
[wifi_test] get wifi link [callback] ->
"
+
JSON
.
stringify
(
result
));
for
(
var
j
=
0
;
j
<
JSON
.
stringify
(
result
).
length
;
++
j
)
{
console
.
info
(
"
ssid:
"
+
result
[
j
].
ssid
);
console
.
info
(
"
bssid:
"
+
result
[
j
].
bssid
);
console
.
info
(
"
band:
"
+
result
[
j
].
band
);
...
...
@@ -447,24 +544,38 @@ describe('ACTS_WifiTest', function() {
console
.
info
(
"
suppState:
"
+
result
[
j
].
suppState
);
console
.
info
(
"
connState:
"
+
result
[
j
].
connState
);
}
}
done
();
});
console
.
info
(
"
[wifi_test] get empty linked information and getIpInfo.
"
);
var
discon2
=
wifi
.
disconnect
();
console
.
log
(
"
[wifi_test] wifi disconnect result:
"
+
discon2
);
expect
(
discon2
).
assertTrue
();
})
/**
* @tc.number Conn_Info_000
2
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_000
2
* @tc.number Conn_Info_000
3
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_000
3
* @tc.desc Test get IpInfo information
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0002
'
,
0
,
function
()
{
console
.
info
(
"
[wifi_test] wifi connectToDevice test.
"
);
var
wifiDeviceConfigIp
=
{
"
ssid
"
:
"
TEST1
"
,
"
bssid
"
:
""
,
"
preSharedKey
"
:
"
87654321
"
,
"
isHiddenSsid
"
:
"
false
"
,
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_PSK
,
};
var
result1
=
wifi
.
connectToDevice
(
wifiDeviceConfigIp
);
sleep
(
5000
);
console
.
log
(
"
[wifi_test] wifi connectToDevice result:
"
+
result1
);
expect
(
result1
).
assertTrue
();
console
.
info
(
"
[wifi_test] check isconnected wifi
"
);
var
isConnected
=
wifi
.
isConnected
();
console
.
log
(
"
[wifi_test] wifi isConnected result:
"
+
isConnected
);
expect
(
isConnected
).
assertFalse
();
console
.
info
(
"
[wifi_test] reassociate wifi
"
);
var
result
=
wifi
.
reassociate
();
sleep
(
5000
);
console
.
log
(
"
[wifi_test] wifi reassociate result:
"
+
result
);
expect
(
result
).
assertTrue
();
console
.
info
(
"
[wifi_test] get IpInfo.
"
);
var
ipInfo
=
wifi
.
getIpInfo
();
console
.
info
(
"
[wifi_test] getIpInfo ->
"
+
JSON
.
stringify
(
ipInfo
));
...
...
@@ -478,43 +589,6 @@ describe('ACTS_WifiTest', function() {
console
.
info
(
"
serverIp:
"
+
ipInfo
.
serverIp
);
})
/**
* @tc.number SUB_Communication_WiFi_Sta_info_0004
* @tc.name testFeatureSupported
* @tc.desc Test FeatureSupported api.
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_info_0004
'
,
0
,
function
()
{
console
.
info
(
'
[wifi_test]FeatureSupported test start ...
'
);
var
result
=
wifi
.
getSupportedFeatures
();
console
.
info
(
"
[wifi_test] getFeatureSupported ->
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
[wifi_test] isFeatureSupported:
"
+
result
+
"
->
"
+
wifi
.
isFeatureSupported
(
result
));
expect
(
wifi
.
isFeatureSupported
(
result
)).
assertTrue
();
})
/**
* @tc.number SUB_Communication_WiFi_Sta_info_0001
* @tc.name testgetMacAddress
* @tc.desc Test getMacAddress api.
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_info_0001
'
,
0
,
function
()
{
if
(
!
wifi
.
isWifiActive
())
{
var
enable
=
wifi
.
enableWifi
();
sleep
(
3000
);
expect
(
enable
).
assertTrue
();
}
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
console
.
info
(
'
[wifi_test] getDeviceMacAddress test start ...
'
);
var
result
=
wifi
.
getDeviceMacAddress
();
console
.
info
(
"
[wifi_test] getDeviceMacAddress ->
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
.
length
>=
1
)
})
/**
* @tc.number SUB_Communication_WiFi_Sta_ON_0001
* @tc.name testwifiStateChangeOn
...
...
@@ -694,3 +768,4 @@ describe('ACTS_WifiTest', function() {
console
.
log
(
"
*************[wifi_test] start wifi js unit test end*************
"
);
})
location/BUILD.gn
0 → 100644
浏览文件 @
5863093a
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos_var.gni")
group("location") {
testonly = true
if (is_standard_system) {
deps = [ "geolocation_standard:ActslocationJsTest" ]
} else {
deps = [ "geolocation_standard:ActslocationJsTest" ]
}
}
location/geolocation_standard/BUILD.gn
0 → 100644
浏览文件 @
5863093a
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActslocationJsTest") {
hap_profile = "./src/main/config.json"
deps = [
":geolocation_js_assets",
":geolocation_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActslocationJSApiTest"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("geolocation_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("geolocation_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
location/geolocation_standard/Test.json
0 → 100644
浏览文件 @
5863093a
{
"description"
:
"Configuration for geolocation js api Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"600000"
,
"package"
:
"ohos.acts.location.geolocation.function"
,
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActslocationJSApiTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
location/geolocation_standard/signature/openharmony_sx.p7b
0 → 100644
浏览文件 @
5863093a
文件已添加
location/geolocation_standard/src/main/config.json
0 → 100644
浏览文件 @
5863093a
{
"app"
:
{
"bundleName"
:
"ohos.acts.location.geolocation.function"
,
"vendor"
:
"acts"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.location.geolocation.function"
,
"name"
:
".MyApplication"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
},
"abilities"
:
[
{
"visible"
:
true
,
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"name"
:
"ohos.acts.location.geolocation.function.MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:mainability_description"
,
"label"
:
"$string:app_name"
,
"type"
:
"page"
,
"launchType"
:
"standard"
}
],
"js"
:
[
{
"pages"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
]
}
}
location/geolocation_standard/src/main/js/default/app.js
0 → 100644
浏览文件 @
5863093a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
},
onDestroy
()
{
console
.
info
(
'
AceApplication onDestroy
'
);
}
};
location/geolocation_standard/src/main/js/default/i18n/en-US.json
0 → 100644
浏览文件 @
5863093a
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
}
}
\ No newline at end of file
location/geolocation_standard/src/main/js/default/i18n/zh-CN.json
0 → 100644
浏览文件 @
5863093a
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
}
}
\ No newline at end of file
location/geolocation_standard/src/main/js/default/pages/index/index.css
0 → 100644
浏览文件 @
5863093a
.container
{
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.title
{
font-size
:
100px
;
}
location/geolocation_standard/src/main/js/default/pages/index/index.hml
0 → 100644
浏览文件 @
5863093a
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
location/geolocation_standard/src/main/js/default/pages/index/index.js
0 → 100644
浏览文件 @
5863093a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
const
core
=
Core
.
getInstance
()
const
expectExtend
=
new
ExpectExtend
({
'
id
'
:
'
extend
'
})
core
.
addService
(
'
expect
'
,
expectExtend
)
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
setConfig
(
this
)
require
(
'
../../test/List.test
'
)
core
.
execute
()
},
onReady
()
{
},
}
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
0 → 100644
浏览文件 @
5863093a
此差异已折叠。
点击以展开。
location/geolocation_standard/src/main/js/default/test/List.test.js
0 → 100644
浏览文件 @
5863093a
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./Geolocation.test.js
'
)
location/geolocation_standard/src/main/resources/base/element/string.json
0 → 100644
浏览文件 @
5863093a
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"OsAccountTest"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
location/geolocation_standard/src/main/resources/base/media/icon.png
0 → 100644
浏览文件 @
5863093a
6.6 KB
test_packages.gni
浏览文件 @
5863093a
...
...
@@ -39,6 +39,7 @@ _all_test_packages = [
"${ACTS_ROOT}/resourceschedule:resourceschedule",
"${ACTS_ROOT}/telephony:telephony",
"${ACTS_ROOT}/hiviewdfx:hiviewdfxtestacts",
"${ACTS_ROOT}/location:location",
]
_all_test_packages_ivi = [
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录