Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
762a3253
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看板
未验证
提交
762a3253
编写于
7月 28, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 28, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9533 xts_修复内存泄漏
Merge pull request !9533 from kirl75/cherry-pick-1690447043
上级
b5ba24f3
8ba955ea
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
2 deletion
+11
-2
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
...rhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
+11
-2
未找到文件。
ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets
浏览文件 @
762a3253
...
@@ -251,6 +251,7 @@ export default function ApiCoverTest() {
...
@@ -251,6 +251,7 @@ export default function ApiCoverTest() {
},
},
onFailed
:
function
()
{
onFailed
:
function
()
{
console
.
log
(
"onFailed"
);
console
.
log
(
"onFailed"
);
done
();
}
}
}
}
try
{
try
{
...
@@ -259,8 +260,8 @@ export default function ApiCoverTest() {
...
@@ -259,8 +260,8 @@ export default function ApiCoverTest() {
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
`connectServiceExtensionAbility catch code: ${err.code}, message: ${err.message}`
);
console
.
log
(
`connectServiceExtensionAbility catch code: ${err.code}, message: ${err.message}`
);
expect
()
.
assertFail
();
expect
()
.
assertFail
();
done
();
}
}
done
();
})
})
/*
/*
...
@@ -318,6 +319,7 @@ export default function ApiCoverTest() {
...
@@ -318,6 +319,7 @@ export default function ApiCoverTest() {
let
appContext
:
common
.
ApplicationContext
=
abilityContext
.
getApplicationContext
();
let
appContext
:
common
.
ApplicationContext
=
abilityContext
.
getApplicationContext
();
let
baseContext
:
common
.
BaseContext
=
stageContext
;
let
baseContext
:
common
.
BaseContext
=
stageContext
;
let
context
:
common
.
Context
=
stageContext
;
let
context
:
common
.
Context
=
stageContext
;
let
flag
=
false
;
let
el1
=
contextConstant
.
AreaMode
.
EL1
;
let
el1
=
contextConstant
.
AreaMode
.
EL1
;
let
el2
=
contextConstant
.
AreaMode
.
EL2
;
let
el2
=
contextConstant
.
AreaMode
.
EL2
;
let
eventHub
:
common
.
EventHub
=
context
.
eventHub
;
let
eventHub
:
common
.
EventHub
=
context
.
eventHub
;
...
@@ -334,12 +336,19 @@ export default function ApiCoverTest() {
...
@@ -334,12 +336,19 @@ export default function ApiCoverTest() {
}
}
abilityDelegator
.
addAbilityMonitor
(
abilityMonitor
,
(
err
,
data
)
=>
{
abilityDelegator
.
addAbilityMonitor
(
abilityMonitor
,
(
err
,
data
)
=>
{
console
.
log
(
`printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`
);
console
.
log
(
`printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`
);
flag
=
true
;
})
})
let
shellCmdResult
:
abilityDelegatorRegistry
.
ShellCmdResult
;
let
shellCmdResult
:
abilityDelegatorRegistry
.
ShellCmdResult
;
abilityDelegator
.
removeAbilityMonitor
(
abilityMonitor
,
(
err
,
data
)
=>
{
console
.
log
(
`SUB_AA_ABILITY_Extension_API_012 printMsg, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`
);
expect
(
flag
)
.
assertTrue
();
done
();
})
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
`catch code: ${err.code}, message: ${err.message}`
);
console
.
log
(
`catch code: ${err.code}, message: ${err.message}`
);
expect
()
.
assertFail
();
done
();
}
}
done
();
})
})
/*
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录