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