提交 17676931 编写于 作者: C chengxingzhen

xts修改事件通知的名称

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 1c269620
...@@ -24,19 +24,19 @@ const START_ABILITY_TIMEOUT = 4000; ...@@ -24,19 +24,19 @@ const START_ABILITY_TIMEOUT = 4000;
let subscriberInfoActsStartAbility0100 = { let subscriberInfoActsStartAbility0100 = {
events: ["ACTS_StartAbility_0100_CommonEvent"], events: ["ACTS_StartAbility_0100_CommonEvent"],
}; };
let subscriberInfoActsStartAbility0200 = { let subscriberInfoActsStartAbility0201 = {
events: ["ACTS_StartAbility_0201_CommonEvent"], events: ["ACTS_StartAbility_0201_CommonEvent"],
}; };
let subscriberInfoActsStartAbility0300 = { let subscriberInfoActsStartAbility0301 = {
events: ["ACTS_StartAbility_0301_CommonEvent"], events: ["ACTS_StartAbility_0301_CommonEvent"],
}; };
let subscriberInfoActsStartAbility0400 = { let subscriberInfoActsStartAbility0401 = {
events: ["ACTS_StartAbility_0401_CommonEvent"], events: ["ACTS_StartAbility_0401_CommonEvent"],
}; };
let subscriberInfoActsStartAbility0500 = { let subscriberInfoActsStartAbility0501 = {
events: ["ACTS_StartAbility_0501_CommonEvent"], events: ["ACTS_StartAbility_0501_CommonEvent"],
}; };
let subscriberInfoActsStartAbility0600 = { let subscriberInfoActsStartAbility0601 = {
events: ["ACTS_StartAbility_0601_CommonEvent"], events: ["ACTS_StartAbility_0601_CommonEvent"],
}; };
let subscriberInfoStartAbilityTen = { let subscriberInfoStartAbilityTen = {
...@@ -391,7 +391,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -391,7 +391,7 @@ describe('ActsFeatureAbilityTest', function () {
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback) commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
} }
await commonEvent.createSubscriber(subscriberInfoActsStartAbility0200).then(async (data) => { await commonEvent.createSubscriber(subscriberInfoActsStartAbility0201).then(async (data) => {
console.debug("====>Create Subscriber====>"); console.debug("====>Create Subscriber====>");
Subscriber = data; Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack); await commonEvent.subscribe(Subscriber, SubscribeCallBack);
...@@ -484,7 +484,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -484,7 +484,7 @@ describe('ActsFeatureAbilityTest', function () {
done(); done();
} }
commonEvent.createSubscriber(subscriberInfoActsStartAbility0300).then(async (data) => { commonEvent.createSubscriber(subscriberInfoActsStartAbility0301).then(async (data) => {
console.debug("====>Create Subscriber====>"); console.debug("====>Create Subscriber====>");
Subscriber = data; Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack); await commonEvent.subscribe(Subscriber, SubscribeCallBack);
...@@ -566,7 +566,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -566,7 +566,7 @@ describe('ActsFeatureAbilityTest', function () {
done(); done();
} }
commonEvent.createSubscriber(subscriberInfoActsStartAbility0400).then(async (data) => { commonEvent.createSubscriber(subscriberInfoActsStartAbility0401).then(async (data) => {
console.debug("====>Create Subscriber====>"); console.debug("====>Create Subscriber====>");
Subscriber = data; Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack); await commonEvent.subscribe(Subscriber, SubscribeCallBack);
...@@ -651,7 +651,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -651,7 +651,7 @@ describe('ActsFeatureAbilityTest', function () {
done(); done();
} }
commonEvent.createSubscriber(subscriberInfoActsStartAbility0500).then(async (data) => { commonEvent.createSubscriber(subscriberInfoActsStartAbility0501).then(async (data) => {
console.debug("====>Create Subscriber====>"); console.debug("====>Create Subscriber====>");
Subscriber = data; Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack); await commonEvent.subscribe(Subscriber, SubscribeCallBack);
...@@ -746,7 +746,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -746,7 +746,7 @@ describe('ActsFeatureAbilityTest', function () {
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback) commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
} }
commonEvent.createSubscriber(subscriberInfoActsStartAbility0600).then(async (data) => { commonEvent.createSubscriber(subscriberInfoActsStartAbility0601).then(async (data) => {
console.debug("====>Create Subscriber====>"); console.debug("====>Create Subscriber====>");
Subscriber = data; Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack); await commonEvent.subscribe(Subscriber, SubscribeCallBack);
......
...@@ -22,19 +22,19 @@ function PublishCallBackOne() { ...@@ -22,19 +22,19 @@ function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>");
} }
function PublishCallBackTwo() { function PublishCallBackTwo() {
console.debug("====>Publish CallBack ACTS_StartAbility_0200_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0201_CommonEvent====>");
} }
function PublishCallBackThree() { function PublishCallBackThree() {
console.debug("====>Publish CallBack ACTS_StartAbility_0300_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0301_CommonEvent====>");
} }
function PublishCallBackFour() { function PublishCallBackFour() {
console.debug("====>Publish CallBack ACTS_StartAbility_0400_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0401_CommonEvent====>");
} }
function PublishCallBackFive() { function PublishCallBackFive() {
console.debug("====>Publish CallBack ACTS_StartAbility_0500_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0501_CommonEvent====>");
} }
function PublishCallBackSix() { function PublishCallBackSix() {
console.debug("====>Publish CallBack ACTS_StartAbility_0600_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_0601_CommonEvent====>");
} }
function PublishCallBackTen() { function PublishCallBackTen() {
console.debug("====>Publish CallBack ACTS_StartAbility_1000_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility_1000_CommonEvent====>");
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
onShow() { onShow() {
console.debug('==========onShow Called==========') console.debug('==========onShow Called==========')
commonEvent.publish("ACTS_StartAbility_0100_CommonEvent", PublishCallBackOne); commonEvent.publish("ACTS_StartAbility_0100_CommonEvent", PublishCallBackOne);
commonEvent.publish("ACTS_StartAbility_0200_CommonEvent", PublishCallBackTwo); commonEvent.publish("ACTS_StartAbility_0201_CommonEvent", PublishCallBackTwo);
commonEvent.publish("ACTS_StartAbility_0300_CommonEvent", PublishCallBackThree); commonEvent.publish("ACTS_StartAbility_0301_CommonEvent", PublishCallBackThree);
commonEvent.publish("ACTS_StartAbility_0400_CommonEvent", PublishCallBackFour); commonEvent.publish("ACTS_StartAbility_0401_CommonEvent", PublishCallBackFour);
commonEvent.publish("ACTS_StartAbility_0500_CommonEvent", PublishCallBackFive); commonEvent.publish("ACTS_StartAbility_0501_CommonEvent", PublishCallBackFive);
commonEvent.publish("ACTS_StartAbility_0600_CommonEvent", PublishCallBackSix); commonEvent.publish("ACTS_StartAbility_0601_CommonEvent", PublishCallBackSix);
commonEvent.publish("ACTS_StartAbility_1000_CommonEvent", PublishCallBackTen); commonEvent.publish("ACTS_StartAbility_1000_CommonEvent", PublishCallBackTen);
commonEvent.publish("ACTS_StartAbility_1300_CommonEvent", PublishCallBackThirteen); commonEvent.publish("ACTS_StartAbility_1300_CommonEvent", PublishCallBackThirteen);
featureAbility.terminateSelf((err, data)=>{ featureAbility.terminateSelf((err, data)=>{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册