提交 6a57f1dc 编写于 作者: O openharmony_ci 提交者: Gitee

!1276 Update ans test js code

Merge pull request !1276 from blackleon/update_1202_master_ans
...@@ -122,15 +122,15 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -122,15 +122,15 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===========ANS_Cancel_0100 subscribe promise=======>"); console.info("===========ANS_Cancel_0100 subscribe promise=======>");
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Cancel_0100 publish1 promise=======>"); console.info("===========ANS_Cancel_0100 publish1 promise=======>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("===========ANS_Cancel_0100 publish2 promise=======>"); console.info("===========ANS_Cancel_0100 publish2 promise=======>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Cancel_0100 setTimeout==================>"); console.info("======ANS_Cancel_0100 setTimeout==================>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0100 setTimeout unsubscribe==================>"); console.info("======ANS_Cancel_0100 setTimeout unsubscribe==================>");
done(); done();
}),timeout); }),timeout);
...@@ -174,7 +174,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -174,7 +174,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAllPromise, onConsume:onConsumeCancelAllPromise,
onCancel:onCancelCancelAllPromise, onCancel:onCancelCancelAllPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Cancel_0200 subscribe promise==================>"); console.info("==================ANS_Cancel_0200 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -236,12 +236,12 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -236,12 +236,12 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Cancel_0200 publish1 promise==================>"); console.info("==========ANS_Cancel_0200 publish1 promise==================>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("==========ANS_Cancel_0200 publish2 promise==================>"); console.info("==========ANS_Cancel_0200 publish2 promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0200 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0200 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -281,12 +281,12 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -281,12 +281,12 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAllNoNotify, onConsume:onConsumeCancelAllNoNotify,
onCancel:onCancelCancelAllNoNotify, onCancel:onCancelCancelAllNoNotify,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Cancel_0300 subscribe promise===============>"); console.info("===============ANS_Cancel_0300 subscribe promise===============>");
notify.cancelAll(cancelAllCallBackNoNotify); await notify.cancelAll(cancelAllCallBackNoNotify);
console.info("===============ANS_Cancel_0300 cancelAll promise===============>"); console.info("===============ANS_Cancel_0300 cancelAll promise===============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0300 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0300 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -320,12 +320,12 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -320,12 +320,12 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAllNoNotifyPromise, onConsume:onConsumeCancelAllNoNotifyPromise,
onCancel:onCancelCancelAllNoNotifyPromise, onCancel:onCancelCancelAllNoNotifyPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_0400 subscribe promise=============>"); console.info("================ANS_Cancel_0400 subscribe promise=============>");
notify.cancelAll(); await notify.cancelAll();
console.info("================ANS_Cancel_0400 cancelAll promise=============>"); console.info("================ANS_Cancel_0400 cancelAll promise=============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0400 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0400 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -378,7 +378,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -378,7 +378,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAll2Times, onConsume:onConsumeCancelAll2Times,
onCancel:onCancelCancelAll2Times, onCancel:onCancelCancelAll2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Cancel_0500 subscribe promise======>"); console.info("============ANS_Cancel_0500 subscribe promise======>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -410,10 +410,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -410,10 +410,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Cancel_0500 publish promise end==============>"); console.info("==============ANS_Cancel_0500 publish promise end==============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0500 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0500 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -453,7 +453,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -453,7 +453,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAll2TimesPromise, onConsume:onConsumeCancelAll2TimesPromise,
onCancel:onCancelCancelAll2TimesPromise, onCancel:onCancelCancelAll2TimesPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Cancel_0600 subscribe promise==================>"); console.info("==================ANS_Cancel_0600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -485,10 +485,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -485,10 +485,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Cancel_0600 publish promise==================>"); console.info("==================ANS_Cancel_0600 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0600 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0600 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -527,7 +527,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -527,7 +527,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAllIsUnremovable, onConsume:onConsumeCancelAllIsUnremovable,
onCancel:onCancelCancelAllIsUnremovable, onCancel:onCancelCancelAllIsUnremovable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("========ANS_Cancel_0700 subscribe promise==================>"); console.info("========ANS_Cancel_0700 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -559,10 +559,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -559,10 +559,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Cancel_0700 publish promise==================>"); console.info("===========ANS_Cancel_0700 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0700 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0700 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -595,7 +595,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -595,7 +595,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelAllIsUnremovablPromise, onConsume:onConsumeCancelAllIsUnremovablPromise,
onCancel:onCancelCancelAllIsUnremovablePromise, onCancel:onCancelCancelAllIsUnremovablePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Cancel_0800 subscribe promsie==================>"); console.info("==================ANS_Cancel_0800 subscribe promsie==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -627,10 +627,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -627,10 +627,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=========ANS_Cancel_0800 publish promise==================>"); console.info("=========ANS_Cancel_0800 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0800 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0800 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -667,7 +667,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -667,7 +667,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancel, onConsume:onConsumeCancel,
onCancel:onCancelCancel, onCancel:onCancelCancel,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Cancel_0900 subscribe promise==================>"); console.info("==================ANS_Cancel_0900 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -698,10 +698,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -698,10 +698,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Cancel_0900 publish promise==================>"); console.info("==================ANS_Cancel_0900 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_0900 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_0900 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -741,7 +741,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -741,7 +741,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelWrongId, onConsume:onConsumeCancelWrongId,
onCancel:onCancelCancelWrongId, onCancel:onCancelCancelWrongId,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_1000 subscribe promise==================>"); console.info("================ANS_Cancel_1000 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -773,10 +773,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -773,10 +773,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Cancel_1000 publish promise==================>"); console.info("===========ANS_Cancel_1000 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1000 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1000 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -816,7 +816,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -816,7 +816,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelIsUnremovable, onConsume:onConsumeCancelIsUnremovable,
onCancel:onCancelCancelIsUnremovable, onCancel:onCancelCancelIsUnremovable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Cancel_1100 subscribe promise=============>"); console.info("===============ANS_Cancel_1100 subscribe promise=============>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -847,10 +847,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -847,10 +847,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Cancel_1100 publish promise===========>"); console.info("============ANS_Cancel_1100 publish promise===========>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1100 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1100 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -908,7 +908,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -908,7 +908,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancel2Times, onConsume:onConsumeCancel2Times,
onCancel:onCancelCancel2Times, onCancel:onCancelCancel2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=============ANS_Cancel_1200 subscribe promise==================>"); console.info("=============ANS_Cancel_1200 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -939,10 +939,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -939,10 +939,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("========ANS_Cancel_1200 publish promise=================>"); console.info("========ANS_Cancel_1200 publish promise=================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1200 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1200 setTimeout unsubscribe end==================>");
done(); done();
}),1500); }),1500);
...@@ -985,7 +985,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -985,7 +985,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabel, onConsume:onConsumeCancelLabel,
onCancel:onCancelCancelLabel, onCancel:onCancelCancelLabel,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_1300 subscribe promise==============>"); console.info("================ANS_Cancel_1300 subscribe promise==============>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1017,10 +1017,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1017,10 +1017,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Cancel_1300 publish promise==================>"); console.info("===========ANS_Cancel_1300 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1300 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1300 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1057,7 +1057,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1057,7 +1057,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabelPromise, onConsume:onConsumeCancelLabelPromise,
onCancel:onCancelCancelLabelPromise, onCancel:onCancelCancelLabelPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==========ANS_Cancel_1400 subscribe promise==================>"); console.info("==========ANS_Cancel_1400 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1089,10 +1089,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1089,10 +1089,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===============ANS_Cancel_1400 publish promise==============>"); console.info("===============ANS_Cancel_1400 publish promise==============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1400 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1400 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1134,7 +1134,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1134,7 +1134,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabelIsUnremoveable, onConsume:onConsumeCancelLabelIsUnremoveable,
onCancel:onCancelCancelLabelIsUnremoveable, onCancel:onCancelCancelLabelIsUnremoveable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=======ANS_Cancel_1500 subscribe promise==================>"); console.info("=======ANS_Cancel_1500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1166,10 +1166,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1166,10 +1166,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Cancel_1500 publish promise=============>"); console.info("===========ANS_Cancel_1500 publish promise=============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1500 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1500 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1206,7 +1206,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1206,7 +1206,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabelIsUnremoveablePromise, onConsume:onConsumeCancelLabelIsUnremoveablePromise,
onCancel:onCancelCancelLabelIsUnremoveablePromise, onCancel:onCancelCancelLabelIsUnremoveablePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Cancel_1600 subscribe promise==================>"); console.info("==============ANS_Cancel_1600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1238,10 +1238,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1238,10 +1238,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Cancel_1600 publish promise==================>"); console.info("==============ANS_Cancel_1600 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1600 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1600 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1280,7 +1280,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1280,7 +1280,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelWrongLabel, onConsume:onConsumeCancelWrongLabel,
onCancel:onCancelCancelWrongLabel, onCancel:onCancelCancelWrongLabel,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Cancel_1700 subscribe promise==================>"); console.info("==============ANS_Cancel_1700 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1312,10 +1312,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1312,10 +1312,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Cancel_1700 publish promise==================>"); console.info("==============ANS_Cancel_1700 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1700 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1700 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1353,7 +1353,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1353,7 +1353,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelWrongLabelPromise, onConsume:onConsumeCancelWrongLabelPromise,
onCancel:onCancelCancelWrongLabelPromise, onCancel:onCancelCancelWrongLabelPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Cancel_1800 subscribe promise==================>"); console.info("==============ANS_Cancel_1800 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1385,10 +1385,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1385,10 +1385,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Cancel_1800 publish promise==================>"); console.info("==============ANS_Cancel_1800 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1800 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1800 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1428,7 +1428,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1428,7 +1428,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabelNullCharacter, onConsume:onConsumeCancelLabelNullCharacter,
onCancel:onCancelCancelLabelNullCharacter, onCancel:onCancelCancelLabelNullCharacter,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=============ANS_Cancel_1900 subscribe promise==================>"); console.info("=============ANS_Cancel_1900 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1460,10 +1460,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1460,10 +1460,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Cancel_1900 publish promise==============>"); console.info("==========ANS_Cancel_1900 publish promise==============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_1900 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_1900 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1502,7 +1502,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1502,7 +1502,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelNullCharacter, onConsume:onConsumeCancelNullCharacter,
onCancel:onCancelCancelNullCharacter, onCancel:onCancelCancelNullCharacter,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=========ANS_Cancel_2000 subscribe promise==================>"); console.info("=========ANS_Cancel_2000 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1534,10 +1534,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1534,10 +1534,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Cancel_2000 publish promise===============>"); console.info("============ANS_Cancel_2000 publish promise===============>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2000 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2000 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1596,7 +1596,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1596,7 +1596,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabel2Times, onConsume:onConsumeCancelLabel2Times,
onCancel:onCancelCancelLabel2Times, onCancel:onCancelCancelLabel2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=============ANS_Cancel_2100 subscribe promise==================>"); console.info("=============ANS_Cancel_2100 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1628,10 +1628,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1628,10 +1628,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Cancel_2100 publish promise================>"); console.info("=============ANS_Cancel_2100 publish promise================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2100 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2100 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1683,7 +1683,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1683,7 +1683,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelLabelPromise2Times, onConsume:onConsumeCancelLabelPromise2Times,
onCancel:onCancelCancelLabelPromise2Times, onCancel:onCancelCancelLabelPromise2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_2200 subscribe_2200_promise=============>"); console.info("================ANS_Cancel_2200 subscribe_2200_promise=============>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1715,10 +1715,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1715,10 +1715,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("================ANS_Cancel_2200 publish promise==================>"); console.info("================ANS_Cancel_2200 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2200 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2200 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1758,7 +1758,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1758,7 +1758,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelRightLabelWrongId, onConsume:onConsumeCancelRightLabelWrongId,
onCancel:onCancelCancelRightLabelWrongId, onCancel:onCancelCancelRightLabelWrongId,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_2300 promise==================>"); console.info("================ANS_Cancel_2300 promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1790,10 +1790,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1790,10 +1790,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Cancel_2300 publish promise==================>"); console.info("============ANS_Cancel_2300 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2300 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2300 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1832,7 +1832,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1832,7 +1832,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelRightLabelWrongIdPromise, onConsume:onConsumeCancelRightLabelWrongIdPromise,
onCancel:onCancelCancelRightLabelWrongIdPromise, onCancel:onCancelCancelRightLabelWrongIdPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Cancel_2400 subscribe promise========>"); console.info("============ANS_Cancel_2400 subscribe promise========>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1864,10 +1864,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1864,10 +1864,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Cancel_2400 publish promise==================>"); console.info("============ANS_Cancel_2400 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2400 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2400 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1907,7 +1907,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1907,7 +1907,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelWrongLabelWrongId, onConsume:onConsumeCancelWrongLabelWrongId,
onCancel:onCancelCancelWrongLabelWrongId, onCancel:onCancelCancelWrongLabelWrongId,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Cancel_2500 subscribe promise==================>"); console.info("================ANS_Cancel_2500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1939,10 +1939,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1939,10 +1939,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Cancel_2500 publish promise==================>"); console.info("==========ANS_Cancel_2500 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2500 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2500 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
...@@ -1981,7 +1981,7 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -1981,7 +1981,7 @@ describe('ActsAnsNotificationCancel', function () {
onConsume:onConsumeCancelWrongLabelWrongIdPromise, onConsume:onConsumeCancelWrongLabelWrongIdPromise,
onCancel:onCancelCancelWrongLabelWrongIdPromise, onCancel:onCancelCancelWrongLabelWrongIdPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Cancel_2600 subscribe promise==================>"); console.info("===============ANS_Cancel_2600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2013,10 +2013,10 @@ describe('ActsAnsNotificationCancel', function () { ...@@ -2013,10 +2013,10 @@ describe('ActsAnsNotificationCancel', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===============ANS_Cancel_2600 publish promise==================>"); console.info("===============ANS_Cancel_2600 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Cancel_2600 setTimeout unsubscribe end==================>"); console.info("======ANS_Cancel_2600 setTimeout unsubscribe end==================>");
done(); done();
}),timeout); }),timeout);
......
...@@ -68,7 +68,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -68,7 +68,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemove, onConsume:onConsumeRemove,
onCancel:onCancelRemove, onCancel:onCancelRemove,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Remove_0100 subscribe promise==================>"); console.info("==================ANS_Remove_0100 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -100,13 +100,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -100,13 +100,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Remove_0100 publish promise===========>"); console.info("=============ANS_Remove_0100 publish promise===========>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0100 setTimeout==================>"); console.info("======ANS_Remove_0100 setTimeout==================>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0100 setTimeout unsubscribe==================>"); console.info("======ANS_Remove_0100 setTimeout unsubscribe==================>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
...@@ -144,7 +144,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -144,7 +144,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemovePromise, onConsume:onConsumeRemovePromise,
onCancel:onCancelRemovePromise, onCancel:onCancelRemovePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_0200 subscribe promise==================>"); console.info("===============ANS_Remove_0200 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -176,13 +176,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -176,13 +176,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("======ANS_Remove_0200 publish==================>"); console.info("======ANS_Remove_0200 publish==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0200 setTimeout============>"); console.info("======ANS_Remove_0200 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0200 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0200 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -218,7 +218,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -218,7 +218,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveErrHashCode, onConsume:onConsumeRemoveErrHashCode,
onCancel:onCancelRemoveErrHashCode, onCancel:onCancelRemoveErrHashCode,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Remove_0300 subscribe promise==================>"); console.info("==================ANS_Remove_0300 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -250,13 +250,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -250,13 +250,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_0300 publish promise==================>"); console.info("==================ANS_Remove_0300 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0300 setTimeout============>"); console.info("======ANS_Remove_0300 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0300 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0300 setTimeout unsubscribe============>");
notify.cancelAll() await notify.cancelAll()
done(); done();
}),timeout); }),timeout);
}) })
...@@ -291,7 +291,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -291,7 +291,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveErrHashCodePromise, onConsume:onConsumeRemoveErrHashCodePromise,
onCancel:onCancelRemoveErrHashCodePromise, onCancel:onCancelRemoveErrHashCodePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_0400 subscribe promise==================>"); console.info("===============ANS_Remove_0400 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -323,13 +323,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -323,13 +323,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_0400 publish promise==================>"); console.info("==================ANS_Remove_0400 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0400 setTimeout============>"); console.info("======ANS_Remove_0400 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0400 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0400 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -369,7 +369,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -369,7 +369,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveUseEmptyCharacter, onConsume:onConsumeRemoveUseEmptyCharacter,
onCancel:onCancelRemoveUseEmptyCharacter, onCancel:onCancelRemoveUseEmptyCharacter,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Remove_0500 subscribe promise==================>"); console.info("==================ANS_Remove_0500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -401,13 +401,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -401,13 +401,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_0500 publish promise==================>"); console.info("==================ANS_Remove_0500 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0500 setTimeout============>"); console.info("======ANS_Remove_0500 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0500 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0500 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -444,7 +444,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -444,7 +444,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:OnConsumeRemoveUseEmptyCharacterPromise, onConsume:OnConsumeRemoveUseEmptyCharacterPromise,
onCancel:OnCancelRemoveUseEmptyCharacterPromise, onCancel:OnCancelRemoveUseEmptyCharacterPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Remove_0600 subscribe promise==================>"); console.info("==================ANS_Remove_0600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -476,13 +476,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -476,13 +476,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_0600 publish promise==================>"); console.info("==================ANS_Remove_0600 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0600 setTimeout============>"); console.info("======ANS_Remove_0600 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0600 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0600 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -522,7 +522,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -522,7 +522,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveNotExistHashCode, onConsume:onConsumeRemoveNotExistHashCode,
onCancel:onCancelRemoveNotExistHashCode, onCancel:onCancelRemoveNotExistHashCode,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_0700 subscribe promise=======>"); console.info("================ANS_Remove_0700 subscribe promise=======>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -554,13 +554,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -554,13 +554,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_0700 publish promise==================>"); console.info("============ANS_Remove_0700 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0700 setTimeout============>"); console.info("======ANS_Remove_0700 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0700 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0700 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -597,7 +597,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -597,7 +597,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveNotExistHashCodePromise, onConsume:onConsumeRemoveNotExistHashCodePromise,
onCancel:onCancelRemoveNotExistHashCodePromise, onCancel:onCancelRemoveNotExistHashCodePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_0800 subscribe promise=======>"); console.info("================ANS_Remove_0800 subscribe promise=======>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -629,13 +629,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -629,13 +629,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Remove_0800 publish promise==================>"); console.info("==========ANS_Remove_0800 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0800 setTimeout============>"); console.info("======ANS_Remove_0800 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0800 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0800 setTimeout unsubscribe============>");
notify.cancelAll() await notify.cancelAll()
done(); done();
}),timeout); }),timeout);
}) })
...@@ -675,7 +675,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -675,7 +675,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveNonComplianceHashCode, onConsume:onConsumeRemoveNonComplianceHashCode,
onCancel:onCancelRemoveNonComplianceHashCode, onCancel:onCancelRemoveNonComplianceHashCode,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Remove_0900 subscribe promise==================>"); console.info("============ANS_Remove_0900 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -707,13 +707,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -707,13 +707,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_0900 publish promise==================>"); console.info("==================ANS_Remove_0900 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_0900 setTimeout============>"); console.info("======ANS_Remove_0900 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_0900 setTimeout unsubscribe============>"); console.info("======ANS_Remove_0900 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -749,7 +749,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -749,7 +749,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveNonComplianceHashCodePromise, onConsume:onConsumeRemoveNonComplianceHashCodePromise,
onCancel:onCancelRemoveNonComplianceHashCodePromise, onCancel:onCancelRemoveNonComplianceHashCodePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_1000 subscribe promise==================>"); console.info("================ANS_Remove_1000 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -781,13 +781,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -781,13 +781,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("================ANS_Remove_1000 publish promise==================>"); console.info("================ANS_Remove_1000 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1000 setTimeout============>"); console.info("======ANS_Remove_1000 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1000 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1000 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -841,7 +841,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -841,7 +841,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeCallbackRemove2Times, onConsume:onConsumeCallbackRemove2Times,
onCancel:onCancelCallbackRemove2Times, onCancel:onCancelCallbackRemove2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_1100 subscribe promise==================>"); console.info("===============ANS_Remove_1100 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -873,13 +873,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -873,13 +873,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Remove_1100 publish promise==================>"); console.info("==========ANS_Remove_1100 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1100 setTimeout============>"); console.info("======ANS_Remove_1100 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1100 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1100 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -928,7 +928,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -928,7 +928,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeCallbackRemove2TimesPromise, onConsume:onConsumeCallbackRemove2TimesPromise,
onCancel:onCancelCallbackRemove2TimesPromise, onCancel:onCancelCallbackRemove2TimesPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_1200 subscribe promise=============>"); console.info("===============ANS_Remove_1200 subscribe promise=============>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -960,13 +960,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -960,13 +960,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_1200 publish promise==================>"); console.info("============ANS_Remove_1200 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1200 setTimeout============>"); console.info("======ANS_Remove_1200 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1200 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1200 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1005,7 +1005,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1005,7 +1005,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveIsUnremovable, onConsume:onConsumeRemoveIsUnremovable,
onCancel:onCancelRemoveIsUnremovable, onCancel:onCancelRemoveIsUnremovable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_1300 subscribe promise==================>"); console.info("================ANS_Remove_1300 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1037,13 +1037,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1037,13 +1037,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("================ANS_Remove_1300 publish promise==================>"); console.info("================ANS_Remove_1300 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1300 setTimeout============>"); console.info("======ANS_Remove_1300 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1300 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1300 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1079,7 +1079,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1079,7 +1079,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:OnConsumeRemoveIsUnremovablePromise, onConsume:OnConsumeRemoveIsUnremovablePromise,
onCancel:OnCancelRemoveIsUnremovablePromise, onCancel:OnCancelRemoveIsUnremovablePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_1400 subscribe promise==================>"); console.info("===============ANS_Remove_1400 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1111,13 +1111,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1111,13 +1111,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Remove_1400 publish promise==================>"); console.info("==============ANS_Remove_1400 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1400 setTimeout============>"); console.info("======ANS_Remove_1400 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1400 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1400 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1169,7 +1169,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1169,7 +1169,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOption, onConsume:onConsumeRemoveAllByBundleOption,
onCancel:onCancelRemoveAllByBundleOption, onCancel:onCancelRemoveAllByBundleOption,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_1500 subscribe promise==================>"); console.info("===============ANS_Remove_1500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1231,15 +1231,15 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1231,15 +1231,15 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Remove_1500 publish1 promise==================>"); console.info("=============ANS_Remove_1500 publish1 promise==================>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("=============ANS_Remove_1500 publish2 promise==================>"); console.info("=============ANS_Remove_1500 publish2 promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1500 setTimeout============>"); console.info("======ANS_Remove_1500 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1500 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1500 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1284,7 +1284,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1284,7 +1284,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionNullUid, onConsume:onConsumeRemoveAllByBundleOptionNullUid,
onCancel:onCancelRemoveAllByBundleOptionNullUid, onCancel:onCancelRemoveAllByBundleOptionNullUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==================ANS_Remove_1600 subscribe promise==================>"); console.info("==================ANS_Remove_1600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1346,15 +1346,15 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1346,15 +1346,15 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==================ANS_Remove_1600 publish1 promise==================>"); console.info("==================ANS_Remove_1600 publish1 promise==================>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("==================ANS_Remove_1600 publish2 promise==================>"); console.info("==================ANS_Remove_1600 publish2 promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1600 setTimeout============>"); console.info("======ANS_Remove_1600 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1600 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1600 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1394,7 +1394,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1394,7 +1394,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionWrongUid, onConsume:onConsumeRemoveAllByBundleOptionWrongUid,
onCancel:onCancelRemoveAllByBundleOptionWrongUid, onCancel:onCancelRemoveAllByBundleOptionWrongUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=============ANS_Remove_1700 subscribe promise==================>"); console.info("=============ANS_Remove_1700 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1426,13 +1426,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1426,13 +1426,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===============ANS_Remove_1700 publish promise===============>"); console.info("===============ANS_Remove_1700 publish promise===============>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1700 setTimeout============>"); console.info("======ANS_Remove_1700 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1700 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1700 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
...@@ -1473,7 +1473,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1473,7 +1473,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionWrongBundleCorrectUid, onConsume:onConsumeRemoveAllByBundleOptionWrongBundleCorrectUid,
onCancel:onCancelremoveAllByBundleOptionwrongBundleCorrectUid, onCancel:onCancelremoveAllByBundleOptionwrongBundleCorrectUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_1800 subscribe promise==================>"); console.info("================ANS_Remove_1800 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1505,13 +1505,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1505,13 +1505,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_1800 publish promise==================>"); console.info("============ANS_Remove_1800 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1800 setTimeout============>"); console.info("======ANS_Remove_1800 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1800 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1800 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1552,7 +1552,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1552,7 +1552,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionNullCharacterBundleCorrectUid, onConsume:onConsumeRemoveAllByBundleOptionNullCharacterBundleCorrectUid,
onCancel:onCancelRemoveAllByBundleOptionNullCharacterBundleCorrectUid, onCancel:onCancelRemoveAllByBundleOptionNullCharacterBundleCorrectUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_1900 subscribe promise==================>"); console.info("===============ANS_Remove_1900 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1584,13 +1584,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1584,13 +1584,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===============ANS_Remove_1900 publish promise==================>"); console.info("===============ANS_Remove_1900 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_1900 setTimeout============>"); console.info("======ANS_Remove_1900 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_1900 setTimeout unsubscribe============>"); console.info("======ANS_Remove_1900 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1630,7 +1630,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1630,7 +1630,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionWrongBundleWrongUid, onConsume:onConsumeRemoveAllByBundleOptionWrongBundleWrongUid,
onCancel:onCancelRemoveAllByBundleOptionWrongBundleWrongUid, onCancel:onCancelRemoveAllByBundleOptionWrongBundleWrongUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Remove_2000 subscribe promise==================>"); console.info("==============ANS_Remove_2000 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1662,13 +1662,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1662,13 +1662,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Remove_2000 publish promise==============>"); console.info("==============ANS_Remove_2000 publish promise==============>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2000 setTimeout============>"); console.info("======ANS_Remove_2000 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2000 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2000 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1709,7 +1709,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1709,7 +1709,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionNullCharacterBundleWrongUid, onConsume:onConsumeRemoveAllByBundleOptionNullCharacterBundleWrongUid,
onCancel:onCancelRemoveAllByBundleOptionNullCharacterBundleWrongUid, onCancel:onCancelRemoveAllByBundleOptionNullCharacterBundleWrongUid,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Remove_2100 subscribe promise==================>"); console.info("============ANS_Remove_2100 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1741,13 +1741,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1741,13 +1741,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=========ANS_Remove_2100 publish promise==================>"); console.info("=========ANS_Remove_2100 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2100 setTimeout============>"); console.info("======ANS_Remove_2100 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2100 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2100 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1787,7 +1787,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1787,7 +1787,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllByBundleOptionIsUnremovable, onConsume:onConsumeRemoveAllByBundleOptionIsUnremovable,
onCancel:onCancelRemoveAllByBundleOptionIsUnremovable, onCancel:onCancelRemoveAllByBundleOptionIsUnremovable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Remove_2200 subscribe promise==================>"); console.info("==============ANS_Remove_2200 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1819,13 +1819,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1819,13 +1819,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Remove_2200 publish promise==================>"); console.info("=============ANS_Remove_2200 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2200 setTimeout============>"); console.info("======ANS_Remove_2200 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2200 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2200 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1878,7 +1878,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1878,7 +1878,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAll, onConsume:onConsumeRemoveAll,
onCancel:onCancelRemoveAll, onCancel:onCancelRemoveAll,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("=============ANS_Remove_2300 subscribe promise==================>"); console.info("=============ANS_Remove_2300 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -1940,15 +1940,15 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1940,15 +1940,15 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Remove_2300 publish1 promise================>"); console.info("===========ANS_Remove_2300 publish1 promise================>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("============ANS_Remove_2300 publish2 promise===============>"); console.info("============ANS_Remove_2300 publish2 promise===============>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2300 setTimeout============>"); console.info("======ANS_Remove_2300 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2300 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2300 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -1995,7 +1995,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -1995,7 +1995,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllPromise, onConsume:onConsumeRemoveAllPromise,
onCancel:onCancelRemoveAllPromise, onCancel:onCancelRemoveAllPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Remove_2400 subscribe promise==================>"); console.info("==============ANS_Remove_2400 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2057,15 +2057,15 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2057,15 +2057,15 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===ANS_Remove_2400 publish1 promise============>"); console.info("===ANS_Remove_2400 publish1 promise============>");
notify.publish(notificationRequest1); await notify.publish(notificationRequest1);
console.info("===ANS_Remove_2400 publish2 promise============>"); console.info("===ANS_Remove_2400 publish2 promise============>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2400 setTimeout============>"); console.info("======ANS_Remove_2400 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2400 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2400 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2102,7 +2102,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2102,7 +2102,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAllIsUnremovable, onConsume:onConsumeRemoveAllIsUnremovable,
onCancel:onCancelCallbackRemoveAllIsUnremovable, onCancel:onCancelCallbackRemoveAllIsUnremovable,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("======ANS_Remove_2500 subscribe promise==================>"); console.info("======ANS_Remove_2500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2134,13 +2134,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2134,13 +2134,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_2500 publish promise==================>"); console.info("============ANS_Remove_2500 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2500 setTimeout============>"); console.info("======ANS_Remove_2500 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2500 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2500 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2170,7 +2170,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2170,7 +2170,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:OnConsumeRemoveAllIsUnremovablePromise, onConsume:OnConsumeRemoveAllIsUnremovablePromise,
onCancel:OnCancelCallbackRemoveAllIsUnremovablePromise, onCancel:OnCancelCallbackRemoveAllIsUnremovablePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Remove_2600 subscribe promise==================>"); console.info("============ANS_Remove_2600 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2202,13 +2202,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2202,13 +2202,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==========ANS_Remove_2600 publish promise==============>"); console.info("==========ANS_Remove_2600 publish promise==============>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2600 setTimeout============>"); console.info("======ANS_Remove_2600 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2600 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2600 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2260,7 +2260,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2260,7 +2260,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveAll2Times, onConsume:onConsumeRemoveAll2Times,
onCancel:onCancelRemoveAll2Times, onCancel:onCancelRemoveAll2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Remove_2700 subscribe promise==================>"); console.info("============ANS_Remove_2700 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2292,13 +2292,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2292,13 +2292,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=========ANS_Remove_2700 publish promise==================>"); console.info("=========ANS_Remove_2700 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2700 setTimeout============>"); console.info("======ANS_Remove_2700 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2700 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2700 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2338,7 +2338,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2338,7 +2338,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeCallbackRemoveAll2TimesPromise, onConsume:onConsumeCallbackRemoveAll2TimesPromise,
onCancel:onCancelCallbackRemoveAll2TimesPromise, onCancel:onCancelCallbackRemoveAll2TimesPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_2800 subscribe promise==================>"); console.info("================ANS_Remove_2800 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2370,13 +2370,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2370,13 +2370,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("================ANS_Remove_2800 publish promise==================>"); console.info("================ANS_Remove_2800 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2800 setTimeout============>"); console.info("======ANS_Remove_2800 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2800 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2800 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2429,7 +2429,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2429,7 +2429,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKey, onConsume:onConsumeRemoveByNotificationKey,
onCancel:onCancelRemoveByNotificationKey, onCancel:onCancelRemoveByNotificationKey,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_2900 subscribe promise==================>"); console.info("================ANS_Remove_2900 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2461,13 +2461,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2461,13 +2461,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("==============ANS_Remove_2900 publish promise==================>"); console.info("==============ANS_Remove_2900 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_2900 setTimeout============>"); console.info("======ANS_Remove_2900 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_2900 setTimeout unsubscribe============>"); console.info("======ANS_Remove_2900 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2508,7 +2508,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2508,7 +2508,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKeyPromise, onConsume:onConsumeRemoveByNotificationKeyPromise,
onCancel:onCancelRemoveByNotificationKeyPromise, onCancel:onCancelRemoveByNotificationKeyPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_3000 subscribe promise==================>"); console.info("===============ANS_Remove_3000 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2540,13 +2540,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2540,13 +2540,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Remove_3000 publish promise==================>"); console.info("=============ANS_Remove_3000 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3000 setTimeout============>"); console.info("======ANS_Remove_3000 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3000 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3000 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2593,7 +2593,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2593,7 +2593,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKeyWrongKey, onConsume:onConsumeRemoveByNotificationKeyWrongKey,
onCancel:onCancelRemoveByNotificationKeyWrongKey, onCancel:onCancelRemoveByNotificationKeyWrongKey,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("==============ANS_Remove_3100 subscribe promise==================>"); console.info("==============ANS_Remove_3100 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2625,13 +2625,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2625,13 +2625,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("=============ANS_Remove_3100 publish promise==================>"); console.info("=============ANS_Remove_3100 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3100 setTimeout============>"); console.info("======ANS_Remove_3100 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3100 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3100 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2676,7 +2676,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2676,7 +2676,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKeyWrongKeyPromise, onConsume:onConsumeRemoveByNotificationKeyWrongKeyPromise,
onCancel:onCancelRemoveByNotificationKeyWrongKeyPromise, onCancel:onCancelRemoveByNotificationKeyWrongKeyPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===============ANS_Remove_3200 subscribe promise==================>"); console.info("===============ANS_Remove_3200 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2708,13 +2708,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2708,13 +2708,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("===========ANS_Remove_3200 publish promise==================>"); console.info("===========ANS_Remove_3200 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3200 setTimeout============>"); console.info("======ANS_Remove_3200 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3200 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3200 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2761,7 +2761,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2761,7 +2761,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:OnConsumeRemoveByNotificationKeyWrongBundle, onConsume:OnConsumeRemoveByNotificationKeyWrongBundle,
onCancel:OnCancelRemoveByNotificationKeyWrongBundle, onCancel:OnCancelRemoveByNotificationKeyWrongBundle,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("================ANS_Remove_3300 subscribe promise==================>"); console.info("================ANS_Remove_3300 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2793,13 +2793,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2793,13 +2793,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("================ANS_Remove_3300 publish promise=================>"); console.info("================ANS_Remove_3300 publish promise=================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3300 setTimeout============>"); console.info("======ANS_Remove_3300 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3300 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3300 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2844,7 +2844,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2844,7 +2844,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKeyWrongBundlePromise, onConsume:onConsumeRemoveByNotificationKeyWrongBundlePromise,
onCancel:onCancelRemoveByNotificationKeyWrongBundlePromise, onCancel:onCancelRemoveByNotificationKeyWrongBundlePromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("============ANS_Remove_3400 subscribe promise==================>"); console.info("============ANS_Remove_3400 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2876,13 +2876,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2876,13 +2876,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_3400 publish promise==================>"); console.info("============ANS_Remove_3400 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3400 setTimeout============>"); console.info("======ANS_Remove_3400 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3400 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3400 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -2944,7 +2944,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2944,7 +2944,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKey2Times, onConsume:onConsumeRemoveByNotificationKey2Times,
onCancel:onCancelRemoveByNotificationKey2Times, onCancel:onCancelRemoveByNotificationKey2Times,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("===========ANS_Remove_3500 subscribe promise==================>"); console.info("===========ANS_Remove_3500 subscribe promise==================>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -2976,13 +2976,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -2976,13 +2976,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_3500 publish promise==================>"); console.info("============ANS_Remove_3500 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3500 setTimeout============>"); console.info("======ANS_Remove_3500 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3500 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3500 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
...@@ -3036,7 +3036,7 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -3036,7 +3036,7 @@ describe('ActsAnsNotificationRemove', function () {
onConsume:onConsumeRemoveByNotificationKey2TimesPromise, onConsume:onConsumeRemoveByNotificationKey2TimesPromise,
onCancel:onCancelRemoveByNotificationKey2TimesPromise, onCancel:onCancelRemoveByNotificationKey2TimesPromise,
} }
notify.subscribe(subscriber); await notify.subscribe(subscriber);
console.info("========ANS_Remove_3600 subscribe promise=============>"); console.info("========ANS_Remove_3600 subscribe promise=============>");
var notificationRequest = { var notificationRequest = {
content:{ content:{
...@@ -3068,13 +3068,13 @@ describe('ActsAnsNotificationRemove', function () { ...@@ -3068,13 +3068,13 @@ describe('ActsAnsNotificationRemove', function () {
badgeIconStyle: 1, badgeIconStyle: 1,
showDeliveryTime: true, showDeliveryTime: true,
} }
notify.publish(notificationRequest); await notify.publish(notificationRequest);
console.info("============ANS_Remove_3600 publish promise==================>"); console.info("============ANS_Remove_3600 publish promise==================>");
setTimeout((async function(){ setTimeout((async function(){
console.info("======ANS_Remove_3600 setTimeout============>"); console.info("======ANS_Remove_3600 setTimeout============>");
notify.unsubscribe(subscriber); await notify.unsubscribe(subscriber);
console.info("======ANS_Remove_3600 setTimeout unsubscribe============>"); console.info("======ANS_Remove_3600 setTimeout unsubscribe============>");
notify.cancelAll(); await notify.cancelAll();
done(); done();
}),timeout); }),timeout);
}) })
......
...@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () { ...@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () {
wants: [ wants: [
{ {
deviceId: "", deviceId: "",
bundleName: "com.example.WantAgentTest1", bundleName: "com.example.WantAgentTest",
abilityName: "com.example.WantAgentTest1.MainAbility", abilityName: "com.example.WantAgentTest.MainAbility",
action: "action1", action: "action1",
entities: ["entity1"], entities: ["entity1"],
type: "MIMETYPE", type: "MIMETYPE",
...@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () { ...@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () {
expect(data.finalCode).assertEqual(0); expect(data.finalCode).assertEqual(0);
expect(data.finalData).assertEqual(""); expect(data.finalData).assertEqual("");
expect(data.want.deviceId).assertEqual(""); expect(data.want.deviceId).assertEqual("");
expect(data.want.bundleName).assertEqual("com.example.WantAgentTest1"); expect(data.want.bundleName).assertEqual("com.example.WantAgentTest");
expect(data.want.abilityName).assertEqual("com.example.WantAgentTest1.MainAbility"); expect(data.want.abilityName).assertEqual("com.example.WantAgentTest.MainAbility");
expect(data.want.uri).assertEqual("key={true,true,false}"); expect(data.want.uri).assertEqual("key={true,true,false}");
expect(JSON.stringify(data.want.entities)).assertEqual(JSON.stringify(["entity1"])); expect(JSON.stringify(data.want.entities)).assertEqual(JSON.stringify(["entity1"]));
expect(data.want.action).assertEqual("action1"); expect(data.want.action).assertEqual("action1");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册