Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
69f52ad3
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看板
未验证
提交
69f52ad3
编写于
2月 07, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 07, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7339 元能力api9终审问题修改
Merge pull request !7339 from yangzk/master
上级
580fabd1
255fb327
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
4 addition
and
10 deletion
+4
-10
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
...rhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
+4
-6
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
...rmsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
+0
-4
未找到文件。
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
浏览文件 @
69f52ad3
...
...
@@ -27,6 +27,7 @@ import commonEvent from '@ohos.commonEvent';
import
ability
from
'@ohos.ability.ability'
;
import
abilityDelegatorRegistry
from
'@ohos.app.ability.abilityDelegatorRegistry'
;
import
common
from
'@ohos.app.ability.common'
;
import
contextConstant
from
"@ohos.app.ability.contextConstant"
var
EXTENSION_INFO_ERR
=
16000001
var
INNER_ERROR
=
16000050
...
...
@@ -319,16 +320,13 @@ export default function ApiCoverTest() {
let
appContext
:
common
.
ApplicationContext
=
abilityContext
.
getApplicationContext
();
let
baseContext
:
common
.
BaseContext
=
stageContext
;
let
context
:
common
.
Context
=
stageContext
;
let
el1
=
co
mmon
.
AreaMode
.
EL1
;
let
el2
=
co
mmon
.
AreaMode
.
EL2
;
let
el1
=
co
ntextConstant
.
AreaMode
.
EL1
;
let
el2
=
co
ntextConstant
.
AreaMode
.
EL2
;
let
eventHub
:
common
.
EventHub
=
context
.
eventHub
;
let
abilityResult
:
common
.
AbilityResult
;
let
connectOptions
:
common
.
ConnectOptions
;
appContext
.
killProcessesBySelf
();
appContext
.
killProcessesBySelf
((
err
,
data
)
=>
{
console
.
log
(
`killProcessesBySelf, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`
);
})
console
.
log
(
"killAllProcesses:"
+
JSON
.
stringify
(
appContext
.
killAllProcesses
));
let
abilityDelegator
:
abilityDelegatorRegistry
.
AbilityDelegator
;
abilityDelegator
=
abilityDelegatorRegistry
.
getAbilityDelegator
();
let
abilityDelegatorArgs
:
abilityDelegatorRegistry
.
AbilityDelegatorArgs
;
...
...
ability/ability_runtime/formmanager/stage/actsformprovidergetformsinfo/entry/src/main/ets/test/GetFormsInfoTest.test.ets
浏览文件 @
69f52ad3
...
...
@@ -29,7 +29,6 @@ let module1FormInfo: formInfo.FormInfo = {
isDefault: true,
updateEnabled: true,
formVisibleNotify: true,
relatedBundleName : "com.example.getformsinfotest",
scheduledUpdateTime: "10:30",
formConfigAbility: "ability://xxxxx",
updateDuration: 1,
...
...
@@ -50,7 +49,6 @@ let module2FormInfo: formInfo.FormInfo = {
isDefault: true,
updateEnabled: true,
formVisibleNotify: true,
relatedBundleName : "com.example.getformsinfotest",
scheduledUpdateTime: "10:30",
formConfigAbility: "ability://xxxxx",
updateDuration: 1,
...
...
@@ -396,8 +394,6 @@ export default function abilityTest() {
expect(expectInfo.isDefault).assertEqual(result.isDefault);
console.info("formProvider::GetFormsInfoTest: formVisibleNotify expect " + expectInfo.formVisibleNotify);
expect(expectInfo.formVisibleNotify).assertEqual(result.formVisibleNotify);
console.info("formProvider::GetFormsInfoTest: relatedBundleName expect " + expectInfo.relatedBundleName);
expect(expectInfo.relatedBundleName).assertEqual(result.relatedBundleName);
console.info("formProvider::GetFormsInfoTest: scheduledUpdateTime expect " + expectInfo.scheduledUpdateTime);
expect(expectInfo.scheduledUpdateTime).assertEqual(result.scheduledUpdateTime);
console.info("formProvider::GetFormsInfoTest: formConfigAbility expect " + expectInfo.formConfigAbility);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录