diff --git a/notification/ces_standard/actsCommonEventManagerSupportTest/src/main/js/test/ActsCommonEventManagerSupportTest.js b/notification/ces_standard/actsCommonEventManagerSupportTest/src/main/js/test/ActsCommonEventManagerSupportTest.js index 58f137984ae7bfca7b1912050718a630bf6ce0dd..f664e12863fdd650ed2d6582e95b8adb28fc691b 100644 --- a/notification/ces_standard/actsCommonEventManagerSupportTest/src/main/js/test/ActsCommonEventManagerSupportTest.js +++ b/notification/ces_standard/actsCommonEventManagerSupportTest/src/main/js/test/ActsCommonEventManagerSupportTest.js @@ -186,7 +186,7 @@ export default function ActsCommonEventManagerSupportTest() { */ it('SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_1100', 0, async function () { console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_1100 START`) - expect(commonEventManager.Support.COMMON_EVENT_WIFI_POWER_STATE).assertEqual('usual.event.wifi.POWER_STATE') + expect(commonEventManager.Support.COMMON_EVENT_WIFI_POWER_STATE).assertEqual('usual.event.wifi.POWER_STATE') expect(commonEventManager.Support.COMMON_EVENT_WIFI_SCAN_FINISHED).assertEqual('usual.event.wifi.SCAN_FINISHED') expect(commonEventManager.Support.COMMON_EVENT_WIFI_RSSI_VALUE).assertEqual('usual.event.wifi.RSSI_VALUE') expect(commonEventManager.Support.COMMON_EVENT_WIFI_CONN_STATE).assertEqual('usual.event.wifi.CONN_STATE') @@ -204,7 +204,7 @@ export default function ActsCommonEventManagerSupportTest() { }) /* - * @tc.number : SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_1300 + * @tc.number : SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_1200 * @tc.name : commonEventManager.Support * @tc.desc : Bluetooth */ @@ -377,11 +377,51 @@ export default function ActsCommonEventManagerSupportTest() { expect(commonEventManager.Support.COMMON_EVENT_SLOT_CHANGE).assertEqual('usual.event.SLOT_CHANGE') expect(commonEventManager.Support.COMMON_EVENT_SPN_INFO_CHANGED).assertEqual('usual.event.SPN_INFO_CHANGED') expect(commonEventManager.Support.COMMON_EVENT_QUICK_FIX_APPLY_RESULT).assertEqual('usual.event.QUICK_FIX_APPLY_RESULT') - expect(commonEventManager.Support.COMMON_EVENT_USER_INFO_UPDATED ).assertEqual('usual.event.USER_INFO_UPDATED') - expect(commonEventManager.Support.COMMON_EVENT_HTTP_PROXY_CHANGE ).assertEqual('usual.event.HTTP_PROXY_CHANGE') + expect(commonEventManager.Support.COMMON_EVENT_USER_INFO_UPDATED).assertEqual('usual.event.USER_INFO_UPDATED') + expect(commonEventManager.Support.COMMON_EVENT_HTTP_PROXY_CHANGE).assertEqual('usual.event.HTTP_PROXY_CHANGE') console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2000 END`) }) + /* + * @tc.number : SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2100 + * @tc.name : commonEventManager.Support + * @tc.desc : SIM common event + */ + it('SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2100', 0, async function () { + console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2100 START`) + expect(commonEventManager.Support.COMMON_EVENT_SIM_STATE_CHANGED).assertEqual('usual.event.SIM_STATE_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED).assertEqual('usual.event.SIM.DEFAULT_SMS_SUBSCRIPTION_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED).assertEqual('usual.event.SIM.DEFAULT_DATA_SUBSCRIPTION_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED).assertEqual('usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED).assertEqual('usual.event.SIM.DEFAULT_VOICE_SUBSCRIPTION_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SMS_RECEIVED_COMPLETED).assertEqual('usual.event.SMS_RECEIVED_COMPLETED') + expect(commonEventManager.Support.COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED).assertEqual('usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED') + expect(commonEventManager.Support.COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED).assertEqual('usual.event.SMS_CB_RECEIVE_COMPLETED') + expect(commonEventManager.Support.COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED).assertEqual('usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED') + expect(commonEventManager.Support.COMMON_EVENT_OPERATOR_CONFIG_CHANGED).assertEqual('usual.event.OPERATOR_CONFIG_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_CALL_STATE_CHANGED).assertEqual('usual.event.CALL_STATE_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_INCOMING_CALL_MISSED).assertEqual('usual.event.INCOMING_CALL_MISSED') + expect(commonEventManager.Support.COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED).assertEqual('usual.event.CELLULAR_DATA_STATE_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_NETWORK_STATE_CHANGED).assertEqual('usual.event.NETWORK_STATE_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_SIGNAL_INFO_CHANGED).assertEqual('usual.event.SIGNAL_INFO_CHANGED') + console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2100 END`) + }) + + /* + * @tc.number : SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2200 + * @tc.name : commonEventManager.Support + * @tc.desc : STK common event + */ + it('SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2200', 0, async function () { + console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2200 START`) + expect(commonEventManager.Support.COMMON_EVENT_STK_COMMAND).assertEqual('usual.event.STK_COMMAND') + expect(commonEventManager.Support.COMMON_EVENT_STK_SESSION_END).assertEqual('usual.event.STK_SESSION_END') + expect(commonEventManager.Support.COMMON_EVENT_STK_CARD_STATE_CHANGED).assertEqual('usual.event.STK_CARD_STATE_CHANGED') + expect(commonEventManager.Support.COMMON_EVENT_STK_ALPHA_IDENTIFIER).assertEqual('usual.event.STK_ALPHA_IDENTIFIER') + expect(commonEventManager.Support.COMMON_EVENT_RADIO_STATE_CHANGE).assertEqual('usual.event.RADIO_STATE_CHANGE') + console.info(`${TAG} SUB_NOTIFICATION_CES_MANAGER_SUPPORT_ENUM_TEST_2200 END`) + }) + console.info(`${TAG} SUB_NOTIFICATION_CES_SUPPORT_ENUM_TEST END`) })