提交 0f4f1e41 编写于 作者: S smartltt

master acts代理提醒需求新增api属性,xts补充用例

Signed-off-by: Nsmartltt <litingting86@huawei.com>
Change-Id: Ia5dd5fde2c0df8cd8d1a94ab9acf4c202336d119
上级 70802823
...@@ -56,6 +56,34 @@ export default function ReminderAgentManagerTest() { ...@@ -56,6 +56,34 @@ export default function ReminderAgentManagerTest() {
console.info('start################################start'); 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.name: testReminderHelper001
* @tc.desc: test spent time by publishReminder with timer (callback) * @tc.desc: test spent time by publishReminder with timer (callback)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册