未验证 提交 90934738 编写于 作者: O openharmony_ci 提交者: Gitee

!8881 【resourceschedule_standard】【beta1】 acts代理提醒需求新增api属性,xts补充用例

Merge pull request !8881 from smartltt/cherry-pick-1685691712
...@@ -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.
先完成此消息的编辑!
想要评论请 注册