提交 e68320eb 编写于 作者: F fangJinliang1 提交者: FangJinliang

fixed fd0f3ac3 from https://gitee.com/fangJinliang1/xts_acts/pulls/7287

fix xts
Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
Change-Id: I601993ce58c13d730d0f9571ed8b2c6fc333f8c3
上级 2e6017ad
...@@ -283,11 +283,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -283,11 +283,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_1 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_1 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -310,11 +310,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -310,11 +310,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_2 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_2 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -337,11 +337,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -337,11 +337,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_3 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_3 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -364,11 +364,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -364,11 +364,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_4 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_4 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -391,11 +391,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -391,11 +391,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_5 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_5 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -416,11 +416,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -416,11 +416,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 START')
await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => {
console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_6 Promise errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_6 Promise errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 END')
...@@ -435,11 +435,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -435,11 +435,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 START')
await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_7 Promise errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_7 Promise errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 END')
...@@ -454,11 +454,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -454,11 +454,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 START')
await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_8 Promise errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_8 Promise errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 END')
...@@ -473,11 +473,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -473,11 +473,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 START')
await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_9 Promise errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_9 Promise errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 END')
...@@ -492,11 +492,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -492,11 +492,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 START')
await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => {
console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_10 Promise errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} getSlot_10 Promise errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 END')
...@@ -513,11 +513,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -513,11 +513,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot_1 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_1 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_1 success`) console.info(`${TAG} removeSlot_1 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -540,11 +540,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -540,11 +540,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot_2 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_2 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_2 success`) console.info(`${TAG} removeSlot_2 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -567,11 +567,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -567,11 +567,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot_3 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_3 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_3 success`) console.info(`${TAG} removeSlot_3 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -594,11 +594,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -594,11 +594,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot_4 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_4 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_4 success`) console.info(`${TAG} removeSlot_4 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -621,11 +621,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -621,11 +621,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot_5 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_5 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_5 success`) console.info(`${TAG} removeSlot_5 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -646,11 +646,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -646,11 +646,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 START')
await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE).then(() => { await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE).then(() => {
console.info(`${TAG} removeSlot_6 success`) console.info(`${TAG} removeSlot_6 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_6 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_6 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 END')
...@@ -665,11 +665,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -665,11 +665,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 START')
await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then(() => { await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then(() => {
console.info(`${TAG} removeSlot_7 success`) console.info(`${TAG} removeSlot_7 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_7 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_7 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 END')
...@@ -684,11 +684,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -684,11 +684,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 START')
await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION).then(() => { await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION).then(() => {
console.info(`${TAG} removeSlot_8 success`) console.info(`${TAG} removeSlot_8 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_8 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_8 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 END')
...@@ -703,11 +703,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -703,11 +703,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 START')
await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION).then(() => { await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION).then(() => {
console.info(`${TAG} removeSlot_9 success`) console.info(`${TAG} removeSlot_9 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_9 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_9 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 END')
...@@ -722,11 +722,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -722,11 +722,11 @@ export default function ActsNotificationManagerSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 START')
await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES).then(() => { await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES).then(() => {
console.info(`${TAG} removeSlot_10 success`) console.info(`${TAG} removeSlot_10 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_10 errCode: ${err.code}, errMes: ${err.message}`) console.info(`${TAG} removeSlot_10 errCode: ${err.code}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 END')
...@@ -757,7 +757,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -757,7 +757,7 @@ export default function ActsNotificationManagerSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => { notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => {
if (err) { if (err) {
...@@ -808,7 +808,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -808,7 +808,7 @@ export default function ActsNotificationManagerSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => { notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => {
if (err) { if (err) {
...@@ -860,7 +860,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -860,7 +860,7 @@ export default function ActsNotificationManagerSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => {
if (err) { if (err) {
...@@ -910,7 +910,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -910,7 +910,7 @@ export default function ActsNotificationManagerSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => { notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => {
if (err) { if (err) {
...@@ -960,7 +960,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -960,7 +960,7 @@ export default function ActsNotificationManagerSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => { notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => {
if (err) { if (err) {
...@@ -1004,7 +1004,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1004,7 +1004,7 @@ export default function ActsNotificationManagerSlotTest() {
}) })
await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => {
console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1044,7 +1044,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1044,7 +1044,7 @@ export default function ActsNotificationManagerSlotTest() {
}) })
await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1084,7 +1084,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1084,7 +1084,7 @@ export default function ActsNotificationManagerSlotTest() {
}) })
await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1124,7 +1124,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1124,7 +1124,7 @@ export default function ActsNotificationManagerSlotTest() {
}) })
await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1164,7 +1164,7 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1164,7 +1164,7 @@ export default function ActsNotificationManagerSlotTest() {
}) })
await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => {
console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1206,11 +1206,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1206,11 +1206,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => {
if (err) { if (err) {
console.info(`${TAG} getSlot_21 err: ${err}, errMes: ${err.message}`) console.info(`${TAG} getSlot_21 err: ${err}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_21 success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot_21 success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -1243,11 +1243,11 @@ export default function ActsNotificationManagerSlotTest() { ...@@ -1243,11 +1243,11 @@ export default function ActsNotificationManagerSlotTest() {
await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => {
if (err) { if (err) {
console.info(`${TAG} removeSlot err: ${err}, errMes: ${err.message}`) console.info(`${TAG} removeSlot err: ${err}, errMes: ${err.message}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot success`) console.info(`${TAG} removeSlot success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
......
...@@ -246,11 +246,11 @@ export default function ActsNotificationSlotTest() { ...@@ -246,11 +246,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_1 AsyncCallback err: ${err.code}`) console.info(`${TAG} getSlot_1 AsyncCallback err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -267,11 +267,11 @@ export default function ActsNotificationSlotTest() { ...@@ -267,11 +267,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_2 AsyncCallback err: ${err.code}`) console.info(`${TAG} getSlot_2 AsyncCallback err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -288,11 +288,11 @@ export default function ActsNotificationSlotTest() { ...@@ -288,11 +288,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_3 AsyncCallback err: ${err.code}`) console.info(`${TAG} getSlot_3 AsyncCallback err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -309,11 +309,11 @@ export default function ActsNotificationSlotTest() { ...@@ -309,11 +309,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_4 AsyncCallback err: ${err.code}`) console.info(`${TAG} getSlot_4 AsyncCallback err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -330,11 +330,11 @@ export default function ActsNotificationSlotTest() { ...@@ -330,11 +330,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.OTHER_TYPES, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.OTHER_TYPES, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_5 AsyncCallback err: ${err.code}`) console.info(`${TAG} getSlot_5 AsyncCallback err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`) console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -350,11 +350,11 @@ export default function ActsNotificationSlotTest() { ...@@ -350,11 +350,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 START')
await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => {
console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_6 Promise err: ${err.code}`) console.info(`${TAG} getSlot_6 Promise err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 END')
...@@ -369,11 +369,11 @@ export default function ActsNotificationSlotTest() { ...@@ -369,11 +369,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 START')
await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_7 Promise err: ${err.code}`) console.info(`${TAG} getSlot_7 Promise err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 END')
...@@ -388,11 +388,11 @@ export default function ActsNotificationSlotTest() { ...@@ -388,11 +388,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 START')
await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_8 Promise err: ${err.code}`) console.info(`${TAG} getSlot_8 Promise err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 END')
...@@ -407,11 +407,11 @@ export default function ActsNotificationSlotTest() { ...@@ -407,11 +407,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 START')
await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_9 Promise err: ${err.code}`) console.info(`${TAG} getSlot_9 Promise err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 END')
...@@ -426,11 +426,11 @@ export default function ActsNotificationSlotTest() { ...@@ -426,11 +426,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 START')
await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => {
console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`) console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlot_10 Promise err: ${err.code}`) console.info(`${TAG} getSlot_10 Promise err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 END')
...@@ -446,11 +446,11 @@ export default function ActsNotificationSlotTest() { ...@@ -446,11 +446,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => { await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} removeSlot_1 err: ${err.code}`) console.info(`${TAG} removeSlot_1 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_1 success`) console.info(`${TAG} removeSlot_1 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -467,11 +467,11 @@ export default function ActsNotificationSlotTest() { ...@@ -467,11 +467,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => { await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} removeSlot_2 err: ${err.code}`) console.info(`${TAG} removeSlot_2 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_2 success`) console.info(`${TAG} removeSlot_2 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -488,11 +488,11 @@ export default function ActsNotificationSlotTest() { ...@@ -488,11 +488,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} removeSlot_3 err: ${err.code}`) console.info(`${TAG} removeSlot_3 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_3 success`) console.info(`${TAG} removeSlot_3 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -509,11 +509,11 @@ export default function ActsNotificationSlotTest() { ...@@ -509,11 +509,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => { await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} removeSlot_4 err: ${err.code}`) console.info(`${TAG} removeSlot_4 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_4 success`) console.info(`${TAG} removeSlot_4 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -530,11 +530,11 @@ export default function ActsNotificationSlotTest() { ...@@ -530,11 +530,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => { await notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} removeSlot_5 err: ${err.code}`) console.info(`${TAG} removeSlot_5 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} removeSlot_5 success`) console.info(`${TAG} removeSlot_5 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -550,11 +550,11 @@ export default function ActsNotificationSlotTest() { ...@@ -550,11 +550,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 START')
await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE).then(() => { await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE).then(() => {
console.info(`${TAG} removeSlot_6 success`) console.info(`${TAG} removeSlot_6 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_6 err: ${err.code}`) console.info(`${TAG} removeSlot_6 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 END')
...@@ -569,11 +569,11 @@ export default function ActsNotificationSlotTest() { ...@@ -569,11 +569,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 START')
await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION).then(() => { await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION).then(() => {
console.info(`${TAG} removeSlot_7 success`) console.info(`${TAG} removeSlot_7 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_7 err: ${err.code}`) console.info(`${TAG} removeSlot_7 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 END')
...@@ -588,11 +588,11 @@ export default function ActsNotificationSlotTest() { ...@@ -588,11 +588,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 START')
await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION).then(() => { await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION).then(() => {
console.info(`${TAG} removeSlot_8 success`) console.info(`${TAG} removeSlot_8 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_8 err: ${err.code}`) console.info(`${TAG} removeSlot_8 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 END')
...@@ -607,11 +607,11 @@ export default function ActsNotificationSlotTest() { ...@@ -607,11 +607,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 START')
await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION).then(() => { await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION).then(() => {
console.info(`${TAG} removeSlot_9 success`) console.info(`${TAG} removeSlot_9 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_9 err: ${err.code}`) console.info(`${TAG} removeSlot_9 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 END')
...@@ -626,11 +626,11 @@ export default function ActsNotificationSlotTest() { ...@@ -626,11 +626,11 @@ export default function ActsNotificationSlotTest() {
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 START') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 START')
await notification.removeSlot(notification.SlotType.OTHER_TYPES).then(() => { await notification.removeSlot(notification.SlotType.OTHER_TYPES).then(() => {
console.info(`${TAG} removeSlot_10 success`) console.info(`${TAG} removeSlot_10 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} removeSlot_10 err: ${err.code}`) console.info(`${TAG} removeSlot_10 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
}) })
console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 END') console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 END')
...@@ -660,7 +660,7 @@ export default function ActsNotificationSlotTest() { ...@@ -660,7 +660,7 @@ export default function ActsNotificationSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => { notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => {
if (err.code) { if (err.code) {
...@@ -704,7 +704,7 @@ export default function ActsNotificationSlotTest() { ...@@ -704,7 +704,7 @@ export default function ActsNotificationSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => { notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => {
if (err.code) { if (err.code) {
...@@ -748,7 +748,7 @@ export default function ActsNotificationSlotTest() { ...@@ -748,7 +748,7 @@ export default function ActsNotificationSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => {
if (err.code) { if (err.code) {
...@@ -792,7 +792,7 @@ export default function ActsNotificationSlotTest() { ...@@ -792,7 +792,7 @@ export default function ActsNotificationSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => { notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => {
if (err.code) { if (err.code) {
...@@ -837,7 +837,7 @@ export default function ActsNotificationSlotTest() { ...@@ -837,7 +837,7 @@ export default function ActsNotificationSlotTest() {
expect(false).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => { notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => {
if (err.code) { if (err.code) {
...@@ -877,7 +877,7 @@ export default function ActsNotificationSlotTest() { ...@@ -877,7 +877,7 @@ export default function ActsNotificationSlotTest() {
}) })
await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => {
console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -917,7 +917,7 @@ export default function ActsNotificationSlotTest() { ...@@ -917,7 +917,7 @@ export default function ActsNotificationSlotTest() {
}) })
await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -957,7 +957,7 @@ export default function ActsNotificationSlotTest() { ...@@ -957,7 +957,7 @@ export default function ActsNotificationSlotTest() {
}) })
await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -997,7 +997,7 @@ export default function ActsNotificationSlotTest() { ...@@ -997,7 +997,7 @@ export default function ActsNotificationSlotTest() {
}) })
await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => {
console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1037,7 +1037,7 @@ export default function ActsNotificationSlotTest() { ...@@ -1037,7 +1037,7 @@ export default function ActsNotificationSlotTest() {
}) })
await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => { await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => {
console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`)
expect(true).assertTrue() expect(true).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
...@@ -1078,11 +1078,11 @@ export default function ActsNotificationSlotTest() { ...@@ -1078,11 +1078,11 @@ export default function ActsNotificationSlotTest() {
await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_21 err: ${err.code}`) console.info(`${TAG} getSlot_21 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_21 success: ${NotificationSlot.type}`) console.info(`${TAG} getSlot_21 success: ${NotificationSlot}`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
...@@ -1109,11 +1109,11 @@ export default function ActsNotificationSlotTest() { ...@@ -1109,11 +1109,11 @@ export default function ActsNotificationSlotTest() {
await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => {
if (err.code) { if (err.code) {
console.info(`${TAG} getSlot_22 err: ${err.code}`) console.info(`${TAG} getSlot_22 err: ${err.code}`)
expect(true).assertTrue() expect(false).assertTrue()
done() done()
} else { } else {
console.info(`${TAG} getSlot_22 success`) console.info(`${TAG} getSlot_22 success`)
expect(false).assertTrue() expect(true).assertTrue()
done() done()
} }
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册