Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
fac38789
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看板
提交
fac38789
编写于
1月 28, 2023
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts-queryAbilityByWant接口下库
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
da23ee2c
变更
53
隐藏空白更改
内联
并排
Showing
53 changed file
with
0 addition
and
1571 deletion
+0
-1571
ability/ability_runtime/fa/BUILD.gn
ability/ability_runtime/fa/BUILD.gn
+0
-1
ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn
ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn
+0
-35
ability/ability_runtime/fa/faequeryabilitybywant/Test.json
ability/ability_runtime/fa/faequeryabilitybywant/Test.json
+0
-19
ability/ability_runtime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b
...ime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b
+0
-0
ability/ability_runtime/fa/faequeryabilitybywant/src/main/config.json
...ity_runtime/fa/faequeryabilitybywant/src/main/config.json
+0
-174
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js
...e/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/en-US.json
...ueryabilitybywant/src/main/js/MainAbility/i18n/en-US.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json
...ueryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.css
...ilitybywant/src/main/js/MainAbility/pages/index/index.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.hml
...ilitybywant/src/main/js/MainAbility/pages/index/index.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.js
...bilitybywant/src/main/js/MainAbility/pages/index/index.js
+0
-52
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.css
...itybywant/src/main/js/MainAbility/pages/second/second.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.hml
...itybywant/src/main/js/MainAbility/pages/second/second.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.js
...litybywant/src/main/js/MainAbility/pages/second/second.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js
.../fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js
+0
-37
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json
...eryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json
...eryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.css
...litybywant/src/main/js/MainAbility2/pages/index/index.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.hml
...litybywant/src/main/js/MainAbility2/pages/index/index.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.js
...ilitybywant/src/main/js/MainAbility2/pages/index/index.js
+0
-42
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.css
...tybywant/src/main/js/MainAbility2/pages/second/second.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.hml
...tybywant/src/main/js/MainAbility2/pages/second/second.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.js
...itybywant/src/main/js/MainAbility2/pages/second/second.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js
.../fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js
+0
-31
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json
...eryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json
...eryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.css
...litybywant/src/main/js/MainAbility3/pages/index/index.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.hml
...litybywant/src/main/js/MainAbility3/pages/index/index.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.js
...ilitybywant/src/main/js/MainAbility3/pages/index/index.js
+0
-42
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.css
...tybywant/src/main/js/MainAbility3/pages/second/second.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.hml
...tybywant/src/main/js/MainAbility3/pages/second/second.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.js
...itybywant/src/main/js/MainAbility3/pages/second/second.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js
.../fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js
+0
-29
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json
...eryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json
...eryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json
+0
-11
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.css
...litybywant/src/main/js/MainAbility4/pages/index/index.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.hml
...litybywant/src/main/js/MainAbility4/pages/index/index.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.js
...ilitybywant/src/main/js/MainAbility4/pages/index/index.js
+0
-42
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.css
...tybywant/src/main/js/MainAbility4/pages/second/second.css
+0
-38
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.hml
...tybywant/src/main/js/MainAbility4/pages/second/second.hml
+0
-20
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.js
...itybywant/src/main/js/MainAbility4/pages/second/second.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/ServiceAbility/service.js
...equeryabilitybywant/src/main/js/ServiceAbility/service.js
+0
-40
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js
...e/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js
+0
-23
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/en-US.json
...ueryabilitybywant/src/main/js/TestAbility/i18n/en-US.json
+0
-8
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json
...ueryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json
+0
-8
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.css
...ilitybywant/src/main/js/TestAbility/pages/index/index.css
+0
-30
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.hml
...ilitybywant/src/main/js/TestAbility/pages/index/index.hml
+0
-5
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.js
...bilitybywant/src/main/js/TestAbility/pages/index/index.js
+0
-26
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js
...itybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js
+0
-59
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/JsAbilityDisable.test.js
...ryabilitybywant/src/main/js/test/JsAbilityDisable.test.js
+0
-111
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/List.test.js
...me/fa/faequeryabilitybywant/src/main/js/test/List.test.js
+0
-19
ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/element/string.json
...abilitybywant/src/main/resources/base/element/string.json
+0
-56
ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/media/icon.png
...queryabilitybywant/src/main/resources/base/media/icon.png
+0
-0
未找到文件。
ability/ability_runtime/fa/BUILD.gn
浏览文件 @
fac38789
...
...
@@ -20,7 +20,6 @@ group("fa") {
"faapplicationinfo:ActsApplicationinfoTest",
"faconfigurationconstant:ActsConfigurationconstantTest",
"facoverapi:ActsCoverapiTest",
"faequeryabilitybywant:ActsEqueryabilitybywantTest",
]
}
}
ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn
已删除
100644 → 0
浏览文件 @
da23ee2c
# 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("ActsEqueryabilitybywantTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsEqueryabilitybywantTest"
subsystem_name = "ability"
part_name = "ability_runtime"
}
ohos_js_assets("hjs_demo_js_assets") {
js2abc = true
hap_profile = "./src/main/config.json"
source_dir = "./src/main/js"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
ability/ability_runtime/fa/faequeryabilitybywant/Test.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"description"
:
"Configuration for hjunit demo Tests"
,
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"300000"
,
"bundle-name"
:
"com.example.abilitydisable"
,
"package-name"
:
"com.example.abilitydisable"
,
"shell-timeout"
:
"600000"
},
"kits"
:
[
{
"test-file-name"
:
[
"ActsEqueryabilitybywantTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}
]
}
ability/ability_runtime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
da23ee2c
文件已删除
ability/ability_runtime/fa/faequeryabilitybywant/src/main/config.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"app"
:
{
"bundleName"
:
"com.example.abilitydisable"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"releaseType"
:
"Beta1"
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.example.abilitydisable"
,
"name"
:
".entry"
,
"mainAbility"
:
".MainAbility"
,
"srcPath"
:
""
,
"deviceType"
:
[
"default"
,
"tablet"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry"
,
"moduleType"
:
"entry"
,
"installationFree"
:
true
},
"abilities"
:
[
{
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"action.system.home"
]
}
],
"orientation"
:
"unspecified"
,
"formsEnabled"
:
false
,
"name"
:
".MainAbility"
,
"srcLanguage"
:
"js"
,
"srcPath"
:
"MainAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:MainAbility_desc"
,
"label"
:
"$string:MainAbility_label"
,
"type"
:
"page"
,
"visible"
:
true
,
"launchType"
:
"standard"
},
{
"orientation"
:
"unspecified"
,
"formsEnabled"
:
false
,
"name"
:
".TestAbility"
,
"srcLanguage"
:
"js"
,
"srcPath"
:
"TestAbility"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:TestAbility_desc"
,
"label"
:
"$string:TestAbility_label"
,
"type"
:
"page"
,
"visible"
:
true
,
"launchType"
:
"standard"
},
{
"orientation"
:
"unspecified"
,
"srcPath"
:
"MainAbility2"
,
"name"
:
".MainAbility2"
,
"srcLanguage"
:
"js"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:description_mainability2"
,
"formsEnabled"
:
false
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
"launchType"
:
"standard"
},
{
"orientation"
:
"unspecified"
,
"srcPath"
:
"MainAbility3"
,
"name"
:
".MainAbility3"
,
"srcLanguage"
:
"js"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:description_mainability3"
,
"formsEnabled"
:
false
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
"launchType"
:
"standard"
},
{
"orientation"
:
"unspecified"
,
"srcPath"
:
"MainAbility4"
,
"name"
:
".MainAbility4"
,
"srcLanguage"
:
"js"
,
"icon"
:
"$media:icon"
,
"description"
:
"$string:description_mainability4"
,
"formsEnabled"
:
false
,
"label"
:
"$string:entry_MainAbility"
,
"type"
:
"page"
,
"launchType"
:
"standard"
},
{
"srcPath"
:
"ServiceAbility"
,
"name"
:
".ServiceAbility"
,
"icon"
:
"$media:icon"
,
"srcLanguage"
:
"js"
,
"description"
:
"$string:description_serviceability"
,
"type"
:
"service"
}
],
"js"
:
[
{
"pages"
:
[
"pages/index/index"
,
"pages/second/second"
],
"name"
:
".MainAbility"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
},
{
"pages"
:
[
"pages/index/index"
,
"pages/second/second"
],
"name"
:
".MainAbility2"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
},
{
"pages"
:
[
"pages/index/index"
,
"pages/second/second"
],
"name"
:
".MainAbility3"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
},
{
"pages"
:
[
"pages/index/index"
,
"pages/second/second"
],
"name"
:
".MainAbility4"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
},
{
"pages"
:
[
"pages/index/index"
],
"name"
:
".TestAbility"
,
"window"
:
{
"designWidth"
:
720
,
"autoDesignWidth"
:
false
}
}
],
"testRunner"
:
{
"name"
:
"OpenHarmonyTestRunner"
,
"srcPath"
:
"TestRunner"
}
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
(
"
Application onCreate
"
);
},
onDestroy
()
{
console
.
info
(
"
Application onDestroy
"
);
},
onForgeGround
(){
console
.
info
(
"
Application onForgeGround
"
);
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
,
"page"
:
"Second Page"
,
"next"
:
"Next Page"
,
"back"
:
"Back"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
,
"page"
:
"第二页"
,
"next"
:
"下一页"
,
"back"
:
"返回"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<input class="btn" type="button" value="{{ $t('strings.next') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../../../test/List.test
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
'
yingyong1
'
;
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/second/second
"
})
},
onShow
()
{
console
.
info
(
'
onShow start
'
)
console
.
info
(
'
onShow start1
'
)
console
.
info
(
'
onShow start2
'
)
console
.
info
(
'
onShow start3
'
)
console
.
info
(
'
onShow start4
'
)
console
.
info
(
'
onShow start5
'
)
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
console
.
info
(
'
start run testcase!!!
'
)
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container">
<text class="title">
{{ $t('strings.page') }}
</text>
<input class="btn" type="button" value="{{ $t('strings.back') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
export
default
{
data
:
{
title
:
'
World
'
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/index/index
"
})
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
(
"
Application onCreate
"
);
setTimeout
(()
=>
{
this
.
content
.
terminateSelf
().
then
((
data
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
data
)
)
}).
catch
((
error
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
error
)
)
})
},
4000
)
},
onDestroy
()
{
console
.
info
(
"
Application onDestroy
"
);
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
,
"page"
:
"Second Page"
,
"next"
:
"Next Page"
,
"back"
:
"Back"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
,
"page"
:
"第二页"
,
"next"
:
"下一页"
,
"back"
:
"返回"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<input class="btn" type="button" value="{{ $t('strings.next') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../../../test/List.test
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
'
yingyong2
'
;
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/second/second
"
})
},
onShow
()
{
console
.
info
(
'
onShow start
'
)
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
console
.
info
(
'
start run testcase!!!
'
)
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container">
<text class="title">
{{ $t('strings.page') }}
</text>
<input class="btn" type="button" value="{{ $t('strings.back') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
export
default
{
data
:
{
title
:
'
World
'
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/index/index
"
})
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
abilityFeatureAbility
from
'
@ohos.ability.featureAbility
'
;
export
default
{
onCreate
()
{
console
.
info
(
"
Application onCreate MainAbility3
"
);
setTimeout
(()
=>
{
abilityFeatureAbility
.
terminateSelf
().
then
((
data
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
data
)
)
}).
catch
((
error
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
error
)
)
})
},
4000
)
},
onDestroy
()
{
console
.
info
(
"
Application onDestroy
"
);
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
,
"page"
:
"Second Page"
,
"next"
:
"Next Page"
,
"back"
:
"Back"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
,
"page"
:
"第二页"
,
"next"
:
"下一页"
,
"back"
:
"返回"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<input class="btn" type="button" value="{{ $t('strings.next') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../../../test/List.test
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
'
yingyong3
'
;
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/second/second
"
})
},
onShow
()
{
console
.
info
(
'
onShow start
'
)
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
console
.
info
(
'
start run testcase!!!
'
)
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container">
<text class="title">
{{ $t('strings.page') }}
</text>
<input class="btn" type="button" value="{{ $t('strings.back') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
export
default
{
data
:
{
title
:
'
World
'
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/index/index
"
})
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
(
"
Application onCreate
"
);
setTimeout
(()
=>
{
this
.
content
.
terminateSelf
().
then
((
data
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
data
)
)
}).
catch
((
error
)
=>
{
console
.
log
(
"
Application terminateSelf data:
"
+
JSON
.
stringify
(
error
)
)
})
},
4000
)
},
onDestroy
()
{
console
.
info
(
"
Application onDestroy
"
);
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
,
"page"
:
"Second Page"
,
"next"
:
"Next Page"
,
"back"
:
"Back"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
,
"page"
:
"第二页"
,
"next"
:
"下一页"
,
"back"
:
"返回"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container" onswipe="touchMove">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<input class="btn" type="button" value="{{ $t('strings.next') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../../../test/List.test
'
export
default
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
'
yingyong4
'
;
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/second/second
"
})
},
onShow
()
{
console
.
info
(
'
onShow start
'
)
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
console
.
info
(
'
start run testcase!!!
'
)
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.css
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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.
*/
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
.btn
{
width
:
50%
;
height
:
100px
;
font-size
:
40px
;
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<!--
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.
-->
<div class="container">
<text class="title">
{{ $t('strings.page') }}
</text>
<input class="btn" type="button" value="{{ $t('strings.back') }}" onclick="onclick"></input>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
router
from
'
@system.router
'
export
default
{
data
:
{
title
:
'
World
'
},
onclick
:
function
()
{
router
.
replace
({
uri
:
"
pages/index/index
"
})
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/ServiceAbility/service.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
{
onStart
(
want
)
{
console
.
info
(
'
ServiceAbility onStart
'
);
},
onStop
()
{
console
.
info
(
'
ServiceAbility onStop
'
);
},
onConnect
(
want
)
{
console
.
info
(
'
ServiceAbility onConnect
'
);
return
{};
},
onReconnect
(
want
)
{
console
.
info
(
'
ServiceAbility onReconnect
'
);
},
onDisconnect
()
{
console
.
info
(
'
ServiceAbility onDisconnect
'
);
},
onCommand
(
want
,
restart
,
startId
)
{
console
.
info
(
'
ServiceAbility onCommand
'
);
},
onForeground
(){
console
.
info
(
'
ServiceAbility onForeground
'
);
},
};
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* Copyright (c) 2022 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
(
"
Application onCreate
"
);
},
onDestroy
()
{
console
.
info
(
"
Application onDestroy
"
);
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/en-US.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"Hello"
,
"world"
:
"World"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"strings"
:
{
"hello"
:
"您好"
,
"world"
:
"世界"
},
"Files"
:
{
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.css
已删除
100644 → 0
浏览文件 @
da23ee2c
.container
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
.title
{
font-size
:
60px
;
text-align
:
center
;
width
:
100%
;
height
:
40%
;
margin
:
10px
;
}
@media
screen
and
(
device-type
:
phone
)
and
(
orientation
:
landscape
)
{
.title
{
font-size
:
60px
;
}
}
@media
screen
and
(
device-type
:
tablet
)
and
(
orientation
:
landscape
)
{
.title
{
font-size
:
100px
;
}
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.hml
已删除
100644 → 0
浏览文件 @
da23ee2c
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* Copyright (c) 2022 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
{
data
:
{
title
:
""
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
}
}
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* Copyright (c) 2022 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
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
function
translateParamsToString
(
parameters
)
{
const
keySet
=
new
Set
([
'
-s class
'
,
'
-s notClass
'
,
'
-s suite
'
,
'
-s itName
'
,
'
-s level
'
,
'
-s testType
'
,
'
-s size
'
,
'
-s timeout
'
,
'
-s package
'
,
'
-s dryRun
'
])
let
targetParams
=
''
;
for
(
const
key
in
parameters
)
{
if
(
keySet
.
has
(
key
))
{
targetParams
+=
'
'
+
key
+
'
'
+
parameters
[
key
]
}
}
return
targetParams
.
trim
()
}
export
default
{
onPrepare
()
{
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
},
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
)
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
testAbilityName
=
abilityDelegatorArguments
.
parameters
[
'
-p
'
]
+
'
.MainAbility
'
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
console
.
info
(
'
debug value :
'
+
debug
)
if
(
debug
==
'
true
'
)
{
cmd
+=
'
-D
'
}
console
.
info
(
'
cmd :
'
+
cmd
)
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
stdResult
);
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
exitCode
);
})
}
};
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/JsAbilityDisable.test.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* Copyright (c) 2022 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
bundleManager
from
'
@ohos.bundle
'
;
import
account
from
"
@ohos.account.osAccount
"
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
let
userId
;
export
default
function
AbilityDisable
()
{
describe
(
'
AbilityDisable
'
,
function
()
{
/*
* @tc.number SUB_AA_OpenHarmony_EqueryAbilityByWant_0100
* @tc.name Call queryAbilityByWant to get moduleName
* @tc.desc Function test
* @tc.level 0
*/
it
(
"
SUB_AA_OpenHarmony_EqueryAbilityByWant_0100
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
------------------logMessage SUB_AA_OpenHarmony_EqueryAbilityByWant_0100-------------------
"
);
let
accountManager
=
account
.
getAccountManager
();
let
bundleFlags
=
bundleManager
.
BundleFlag
.
GET_ABILITY_INFO_WITH_PERMISSION
;
await
accountManager
.
getOsAccountLocalIdFromProcess
().
then
((
data
)
=>
{
console
.
log
(
"
success get userId:
"
+
JSON
.
stringify
(
data
));
userId
=
data
;
}).
catch
((
err
)
=>
{
console
.
log
(
"
+++++++++++++
"
+
JSON
.
stringify
(
err
));
})
let
want
=
{
bundleName
:
"
com.example.abilitydisable
"
,
abilityName
:
"
com.example.abilitydisable.MainAbility
"
};
bundleManager
.
queryAbilityByWant
(
want
,
bundleFlags
,
userId
,(
err
,
data
)
=>
{
console
.
log
(
'
SUB_AA_OpenHarmony_Clear_0100 queryAbilityByWant errCode :
'
+
JSON
.
stringify
(
err
)
+
"
data:
"
+
JSON
.
stringify
(
data
));
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
console
.
log
(
"
data[i]['moduleName']
"
+
data
[
i
][
'
moduleName
'
]);
expect
(
data
[
i
][
'
moduleName
'
]
==
"
entry
"
).
assertTrue
();
}
})
done
();
});
/*
* @tc.number SUB_AA_OpenHarmony_EqueryAbilityByWant_0200
* @tc.name Call queryAbilityByWant to get the URI
* @tc.desc Function test
* @tc.level 0
*/
it
(
"
SUB_AA_OpenHarmony_EqueryAbilityByWant_0200
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
------------------logMessage SUB_AA_OpenHarmony_EqueryAbilityByWant_0200-------------------
"
);
let
bundleFlags
=
bundleManager
.
BundleFlag
.
GET_ABILITY_INFO_WITH_PERMISSION
;
let
accountManager
=
account
.
getAccountManager
();
await
accountManager
.
getOsAccountLocalIdFromProcess
().
then
((
data
)
=>
{
console
.
log
(
"
success get userId:
"
+
JSON
.
stringify
(
data
));
userId
=
data
;
}).
catch
((
err
)
=>
{
console
.
log
(
"
+++++++++++++
"
+
JSON
.
stringify
(
err
));
})
let
want
=
{
bundleName
:
"
com.example.abilitydisable
"
,
abilityName
:
"
com.example.abilitydisable.MainAbility
"
};
bundleManager
.
queryAbilityByWant
(
want
,
bundleFlags
,
userId
,(
err
,
data
)
=>
{
console
.
log
(
'
SUB_AA_OpenHarmony_EqueryAbilityByWant_0200 queryAbilityByWant errCode :
'
+
JSON
.
stringify
(
err
)
+
"
data:
"
+
JSON
.
stringify
(
data
));
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
console
.
log
(
"
data[i]['uri']
"
+
data
[
i
][
'
uri
'
]);
expect
(
data
[
i
][
'
uri
'
]
==
""
).
assertTrue
();
}
})
done
();
});
/*
* @tc.number SUB_AA_OpenHarmony_EqueryAbilityByWant_0300
* @tc.name Call getapplicationInfo to get the name
* @tc.desc Function test
* @tc.level 0
*/
it
(
"
SUB_AA_OpenHarmony_EqueryAbilityByWant_0300
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
------------------logMessage SUB_AA_OpenHarmony_EqueryAbilityByWant_0300-------------------
"
);
let
bundleName
=
"
com.example.abilitydisable
"
;
let
accountManager
=
account
.
getAccountManager
();
let
bundleFlags
=
bundleManager
.
BundleFlag
.
GET_ABILITY_INFO_WITH_PERMISSION
;
await
accountManager
.
getOsAccountLocalIdFromProcess
().
then
((
data
)
=>
{
console
.
log
(
"
success get userId:
"
+
JSON
.
stringify
(
data
));
userId
=
data
;
}).
catch
((
err
)
=>
{
console
.
log
(
"
+++++++++++++
"
+
JSON
.
stringify
(
err
));
})
bundleManager
.
getApplicationInfo
(
bundleName
,
bundleFlags
,
userId
,(
err
,
data
)
=>
{
console
.
log
(
'
SUB_AA_OpenHarmony_EqueryAbilityByWant_0300 getapplicationInfo errCode :
'
+
JSON
.
stringify
(
err
)
+
"
data:
"
+
JSON
.
stringify
(
data
));
expect
(
data
[
'
name
'
]).
assertEqual
(
"
com.example.abilitydisable
"
);
})
done
();
});
})
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/List.test.js
已删除
100644 → 0
浏览文件 @
da23ee2c
/*
* 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
AbilityDisable
from
'
./JsAbilityDisable.test.js
'
export
default
function
testsuite
()
{
AbilityDisable
()
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
da23ee2c
{
"string"
:
[
{
"name"
:
"entry_MainAbility"
,
"value"
:
"entry_MainAbility"
},
{
"name"
:
"description_mainability"
,
"value"
:
"JS_Empty Ability"
},
{
"name"
:
"description_mainability2"
,
"value"
:
"JS_Empty Ability"
},
{
"name"
:
"entry_MainAbility2"
,
"value"
:
"entry_MainAbility2"
},
{
"name"
:
"description_mainability3"
,
"value"
:
"JS_Empty Ability"
},
{
"name"
:
"entry_MainAbility3"
,
"value"
:
"entry_MainAbility3"
},
{
"name"
:
"description_mainability4"
,
"value"
:
"JS_Empty Ability"
},
{
"name"
:
"entry_MainAbility4"
,
"value"
:
"entry_MainAbility4"
},
{
"name"
:
"description_serviceability"
,
"value"
:
"hap sample empty service"
},
{
"name"
:
"MainAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility_label"
,
"value"
:
"label"
},
{
"name"
:
"TestAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"TestAbility_label"
,
"value"
:
"label"
}
]
}
\ No newline at end of file
ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
da23ee2c
6.6 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录