提交 17676931 编写于 作者: C chengxingzhen

xts修改事件通知的名称

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 1c269620
......@@ -24,19 +24,19 @@ const START_ABILITY_TIMEOUT = 4000;
let subscriberInfoActsStartAbility0100 = {
events: ["ACTS_StartAbility_0100_CommonEvent"],
};
let subscriberInfoActsStartAbility0200 = {
let subscriberInfoActsStartAbility0201 = {
events: ["ACTS_StartAbility_0201_CommonEvent"],
};
let subscriberInfoActsStartAbility0300 = {
let subscriberInfoActsStartAbility0301 = {
events: ["ACTS_StartAbility_0301_CommonEvent"],
};
let subscriberInfoActsStartAbility0400 = {
let subscriberInfoActsStartAbility0401 = {
events: ["ACTS_StartAbility_0401_CommonEvent"],
};
let subscriberInfoActsStartAbility0500 = {
let subscriberInfoActsStartAbility0501 = {
events: ["ACTS_StartAbility_0501_CommonEvent"],
};
let subscriberInfoActsStartAbility0600 = {
let subscriberInfoActsStartAbility0601 = {
events: ["ACTS_StartAbility_0601_CommonEvent"],
};
let subscriberInfoStartAbilityTen = {
......@@ -391,7 +391,7 @@ describe('ActsFeatureAbilityTest', function () {
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
}
await commonEvent.createSubscriber(subscriberInfoActsStartAbility0200).then(async (data) => {
await commonEvent.createSubscriber(subscriberInfoActsStartAbility0201).then(async (data) => {
console.debug("====>Create Subscriber====>");
Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack);
......@@ -484,7 +484,7 @@ describe('ActsFeatureAbilityTest', function () {
done();
}
commonEvent.createSubscriber(subscriberInfoActsStartAbility0300).then(async (data) => {
commonEvent.createSubscriber(subscriberInfoActsStartAbility0301).then(async (data) => {
console.debug("====>Create Subscriber====>");
Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack);
......@@ -566,7 +566,7 @@ describe('ActsFeatureAbilityTest', function () {
done();
}
commonEvent.createSubscriber(subscriberInfoActsStartAbility0400).then(async (data) => {
commonEvent.createSubscriber(subscriberInfoActsStartAbility0401).then(async (data) => {
console.debug("====>Create Subscriber====>");
Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack);
......@@ -651,7 +651,7 @@ describe('ActsFeatureAbilityTest', function () {
done();
}
commonEvent.createSubscriber(subscriberInfoActsStartAbility0500).then(async (data) => {
commonEvent.createSubscriber(subscriberInfoActsStartAbility0501).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(subscriberInfoActsStartAbility0600).then(async (data) => {
commonEvent.createSubscriber(subscriberInfoActsStartAbility0601).then(async (data) => {
console.debug("====>Create Subscriber====>");
Subscriber = data;
await commonEvent.subscribe(Subscriber, SubscribeCallBack);
......
......@@ -22,19 +22,19 @@ function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_StartAbility_0100_CommonEvent====>");
}
function PublishCallBackTwo() {
console.debug("====>Publish CallBack ACTS_StartAbility_0200_CommonEvent====>");
console.debug("====>Publish CallBack ACTS_StartAbility_0201_CommonEvent====>");
}
function PublishCallBackThree() {
console.debug("====>Publish CallBack ACTS_StartAbility_0300_CommonEvent====>");
console.debug("====>Publish CallBack ACTS_StartAbility_0301_CommonEvent====>");
}
function PublishCallBackFour() {
console.debug("====>Publish CallBack ACTS_StartAbility_0400_CommonEvent====>");
console.debug("====>Publish CallBack ACTS_StartAbility_0401_CommonEvent====>");
}
function PublishCallBackFive() {
console.debug("====>Publish CallBack ACTS_StartAbility_0500_CommonEvent====>");
console.debug("====>Publish CallBack ACTS_StartAbility_0501_CommonEvent====>");
}
function PublishCallBackSix() {
console.debug("====>Publish CallBack ACTS_StartAbility_0600_CommonEvent====>");
console.debug("====>Publish CallBack ACTS_StartAbility_0601_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_0200_CommonEvent", PublishCallBackTwo);
commonEvent.publish("ACTS_StartAbility_0300_CommonEvent", PublishCallBackThree);
commonEvent.publish("ACTS_StartAbility_0400_CommonEvent", PublishCallBackFour);
commonEvent.publish("ACTS_StartAbility_0500_CommonEvent", PublishCallBackFive);
commonEvent.publish("ACTS_StartAbility_0600_CommonEvent", PublishCallBackSix);
commonEvent.publish("ACTS_StartAbility_0201_CommonEvent", PublishCallBackTwo);
commonEvent.publish("ACTS_StartAbility_0301_CommonEvent", PublishCallBackThree);
commonEvent.publish("ACTS_StartAbility_0401_CommonEvent", PublishCallBackFour);
commonEvent.publish("ACTS_StartAbility_0501_CommonEvent", PublishCallBackFive);
commonEvent.publish("ACTS_StartAbility_0601_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.
先完成此消息的编辑!
想要评论请 注册