From 0f4f1e41da5f35e8cfcc467443dad620145dd882 Mon Sep 17 00:00:00 2001 From: smartltt Date: Fri, 2 Jun 2023 11:12:20 +0800 Subject: [PATCH] =?UTF-8?q?master=20acts=E4=BB=A3=E7=90=86=E6=8F=90?= =?UTF-8?q?=E9=86=92=E9=9C=80=E6=B1=82=E6=96=B0=E5=A2=9Eapi=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=EF=BC=8Cxts=E8=A1=A5=E5=85=85=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: smartltt Change-Id: Ia5dd5fde2c0df8cd8d1a94ab9acf4c202336d119 --- .../js/test/ReminderAgentManagerJs.test.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/resourceschedule/resourceschedule_standard/reminderagentManager/src/main/js/test/ReminderAgentManagerJs.test.js b/resourceschedule/resourceschedule_standard/reminderagentManager/src/main/js/test/ReminderAgentManagerJs.test.js index e88e4a796..9bebbb43a 100644 --- a/resourceschedule/resourceschedule_standard/reminderagentManager/src/main/js/test/ReminderAgentManagerJs.test.js +++ b/resourceschedule/resourceschedule_standard/reminderagentManager/src/main/js/test/ReminderAgentManagerJs.test.js @@ -56,6 +56,34 @@ export default function ReminderAgentManagerTest() { console.info('start################################start'); + /** + * @tc.number + * @tc.name reminderRequestAttribute_0001 + * @tc.desc test ReminderRequest Attribute tapDismissed and autoDeletedTime + */ + it("reminderRequestAttribute_0001", 0, async function (done) { + console.info('----------------------reminderRequestAttribute_0001---------------------------'); + let timer = { + reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, + triggerTimeInSeconds: 10, + tapDismissed: true, + autoDeletedTime: 20000000000 + } + try { + reminderAgent.publishReminder(timer, (err, reminderId) => { + if (err) { + console.info('reminderRequestAttribute_0001 callback err.code is :' + err.code); + } else { + console.info('reminderRequestAttribute_0001 callback reminderId = ' + reminderId); + expect(reminderId).assertLarger(0); + done(); + } + }) + } catch (error) { + console.log("reminderRequestAttribute_0001 publishReminder error.code:" + error.code); + } + }) + /* * @tc.name: testReminderHelper001 * @tc.desc: test spent time by publishReminder with timer (callback) -- GitLab