From 8ceaf06d4d45301786b8c3ec0ee390843f92e465 Mon Sep 17 00:00:00 2001 From: zengsiyu Date: Tue, 15 Feb 2022 15:39:42 +0800 Subject: [PATCH] fixed c36edb4 from https://gitee.com/zengsiyu3/notification_ans_standard/pulls/235 feat: add testcases and CheckApiCompatibility Signed-off-by: zengsiyu Change-Id: I04e311c94f89c98a140a21d982b06dd13616ebf0 Signed-off-by: zengsiyu --- .../ans/dialog/dialog_ui/js/i18n/en-US.json | 2 +- .../ans/dialog/dialog_ui/js/i18n/zh-CN.json | 2 +- .../dialog/dialog_ui/js/pages/index/index.hml | 2 +- .../dialog/dialog_ui/js/pages/index/index.js | 2 +- services/ans/include/bundle_manager_helper.h | 1 + .../ans/src/advanced_notification_service.cpp | 21 ++++++++++++-- services/ans/src/bundle_manager_helper.cpp | 10 ++++++- .../advanced_notification_service_test.cpp | 20 +++++++++++-- .../mock/mock_bundle_manager_helper.cpp | 5 ++++ .../notification_preferences_test.cpp | 28 +++++++++++++++++++ 10 files changed, 83 insertions(+), 10 deletions(-) diff --git a/frameworks/ans/dialog/dialog_ui/js/i18n/en-US.json b/frameworks/ans/dialog/dialog_ui/js/i18n/en-US.json index 01f54cf99..43b810701 100644 --- a/frameworks/ans/dialog/dialog_ui/js/i18n/en-US.json +++ b/frameworks/ans/dialog/dialog_ui/js/i18n/en-US.json @@ -1,7 +1,7 @@ { "message":{ "requestNotification": "Allowed to send notification?", - "allowmButton": "Allow", + "allowButton": "Allow", "cancelButton": "Cancel" } } diff --git a/frameworks/ans/dialog/dialog_ui/js/i18n/zh-CN.json b/frameworks/ans/dialog/dialog_ui/js/i18n/zh-CN.json index b527187a6..0f049cb99 100644 --- a/frameworks/ans/dialog/dialog_ui/js/i18n/zh-CN.json +++ b/frameworks/ans/dialog/dialog_ui/js/i18n/zh-CN.json @@ -1,7 +1,7 @@ { "message": { "requestNotification": "是否允许发送通知?", - "allowmButton": "允许", + "allowButton": "允许", "cancelButton": "取消" } } diff --git a/frameworks/ans/dialog/dialog_ui/js/pages/index/index.hml b/frameworks/ans/dialog/dialog_ui/js/pages/index/index.hml index 4759aece1..98272a4d6 100644 --- a/frameworks/ans/dialog/dialog_ui/js/pages/index/index.hml +++ b/frameworks/ans/dialog/dialog_ui/js/pages/index/index.hml @@ -6,7 +6,7 @@