Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
17676931
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看板
提交
17676931
编写于
12月 07, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts修改事件通知的名称
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
1c269620
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
20 deletion
+20
-20
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
...ytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
+10
-10
ability/ability_runtime/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js
...ect/startability/src/main/js/default/pages/index/index.js
+10
-10
未找到文件。
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js
浏览文件 @
17676931
...
...
@@ -24,19 +24,19 @@ const START_ABILITY_TIMEOUT = 4000;
let
subscriberInfoActsStartAbility0100
=
{
events
:
[
"
ACTS_StartAbility_0100_CommonEvent
"
],
};
let
subscriberInfoActsStartAbility020
0
=
{
let
subscriberInfoActsStartAbility020
1
=
{
events
:
[
"
ACTS_StartAbility_0201_CommonEvent
"
],
};
let
subscriberInfoActsStartAbility030
0
=
{
let
subscriberInfoActsStartAbility030
1
=
{
events
:
[
"
ACTS_StartAbility_0301_CommonEvent
"
],
};
let
subscriberInfoActsStartAbility040
0
=
{
let
subscriberInfoActsStartAbility040
1
=
{
events
:
[
"
ACTS_StartAbility_0401_CommonEvent
"
],
};
let
subscriberInfoActsStartAbility050
0
=
{
let
subscriberInfoActsStartAbility050
1
=
{
events
:
[
"
ACTS_StartAbility_0501_CommonEvent
"
],
};
let
subscriberInfoActsStartAbility060
0
=
{
let
subscriberInfoActsStartAbility060
1
=
{
events
:
[
"
ACTS_StartAbility_0601_CommonEvent
"
],
};
let
subscriberInfoStartAbilityTen
=
{
...
...
@@ -391,7 +391,7 @@ describe('ActsFeatureAbilityTest', function () {
commonEvent
.
unsubscribe
(
Subscriber
,
UnSubscribeCallback
)
}
await
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility020
0
).
then
(
async
(
data
)
=>
{
await
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility020
1
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>Create Subscriber====>
"
);
Subscriber
=
data
;
await
commonEvent
.
subscribe
(
Subscriber
,
SubscribeCallBack
);
...
...
@@ -484,7 +484,7 @@ describe('ActsFeatureAbilityTest', function () {
done
();
}
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility030
0
).
then
(
async
(
data
)
=>
{
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility030
1
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>Create Subscriber====>
"
);
Subscriber
=
data
;
await
commonEvent
.
subscribe
(
Subscriber
,
SubscribeCallBack
);
...
...
@@ -566,7 +566,7 @@ describe('ActsFeatureAbilityTest', function () {
done
();
}
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility040
0
).
then
(
async
(
data
)
=>
{
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility040
1
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>Create Subscriber====>
"
);
Subscriber
=
data
;
await
commonEvent
.
subscribe
(
Subscriber
,
SubscribeCallBack
);
...
...
@@ -651,7 +651,7 @@ describe('ActsFeatureAbilityTest', function () {
done
();
}
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility050
0
).
then
(
async
(
data
)
=>
{
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility050
1
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>Create Subscriber====>
"
);
Subscriber
=
data
;
await
commonEvent
.
subscribe
(
Subscriber
,
SubscribeCallBack
);
...
...
@@ -746,7 +746,7 @@ describe('ActsFeatureAbilityTest', function () {
commonEvent
.
unsubscribe
(
Subscriber
,
UnSubscribeCallback
)
}
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility060
0
).
then
(
async
(
data
)
=>
{
commonEvent
.
createSubscriber
(
subscriberInfoActsStartAbility060
1
).
then
(
async
(
data
)
=>
{
console
.
debug
(
"
====>Create Subscriber====>
"
);
Subscriber
=
data
;
await
commonEvent
.
subscribe
(
Subscriber
,
SubscribeCallBack
);
...
...
ability/ability_runtime/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js
浏览文件 @
17676931
...
...
@@ -22,19 +22,19 @@ function PublishCallBackOne() {
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>
"
);
}
function
PublishCallBackTwo
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_020
0
_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_020
1
_CommonEvent====>
"
);
}
function
PublishCallBackThree
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_030
0
_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_030
1
_CommonEvent====>
"
);
}
function
PublishCallBackFour
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_040
0
_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_040
1
_CommonEvent====>
"
);
}
function
PublishCallBackFive
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_050
0
_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_050
1
_CommonEvent====>
"
);
}
function
PublishCallBackSix
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_060
0
_CommonEvent====>
"
);
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_060
1
_CommonEvent====>
"
);
}
function
PublishCallBackTen
()
{
console
.
debug
(
"
====>Publish CallBack ACTS_StartAbility_1000_CommonEvent====>
"
);
...
...
@@ -53,11 +53,11 @@ export default {
onShow
()
{
console
.
debug
(
'
==========onShow Called==========
'
)
commonEvent
.
publish
(
"
ACTS_StartAbility_0100_CommonEvent
"
,
PublishCallBackOne
);
commonEvent
.
publish
(
"
ACTS_StartAbility_020
0
_CommonEvent
"
,
PublishCallBackTwo
);
commonEvent
.
publish
(
"
ACTS_StartAbility_030
0
_CommonEvent
"
,
PublishCallBackThree
);
commonEvent
.
publish
(
"
ACTS_StartAbility_040
0
_CommonEvent
"
,
PublishCallBackFour
);
commonEvent
.
publish
(
"
ACTS_StartAbility_050
0
_CommonEvent
"
,
PublishCallBackFive
);
commonEvent
.
publish
(
"
ACTS_StartAbility_060
0
_CommonEvent
"
,
PublishCallBackSix
);
commonEvent
.
publish
(
"
ACTS_StartAbility_020
1
_CommonEvent
"
,
PublishCallBackTwo
);
commonEvent
.
publish
(
"
ACTS_StartAbility_030
1
_CommonEvent
"
,
PublishCallBackThree
);
commonEvent
.
publish
(
"
ACTS_StartAbility_040
1
_CommonEvent
"
,
PublishCallBackFour
);
commonEvent
.
publish
(
"
ACTS_StartAbility_050
1
_CommonEvent
"
,
PublishCallBackFive
);
commonEvent
.
publish
(
"
ACTS_StartAbility_060
1
_CommonEvent
"
,
PublishCallBackSix
);
commonEvent
.
publish
(
"
ACTS_StartAbility_1000_CommonEvent
"
,
PublishCallBackTen
);
commonEvent
.
publish
(
"
ACTS_StartAbility_1300_CommonEvent
"
,
PublishCallBackThirteen
);
featureAbility
.
terminateSelf
((
err
,
data
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录