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

!4102 【resourceschedule】【monthly_20220614】提醒代理模块用例修改

Merge pull request !4102 from 南先森/cherry-pick-1657008847
......@@ -3085,48 +3085,6 @@ describe('ReminderAgentTest', function () {
});
done();
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_034
* @tc.name testActionButtonTypeClose034
* @tc.desc test acton butto type is close.
*/
it('testActionButtonTypeClose034', 0, async function (done) {
let timer = {
reminderType: reminderAgent.ReminderType.ACTION_BUTTON_TYPE_CLOSE,
triggerTimeInSeconds: TRIGGER_TIME_IN_SECONDS
}
let expectId = -1;
function reminderCallback(err, reminderId) {
expect(reminderId).assertEqual(expectId);
}
reminderAgent.publishReminder(timer, (err, reminderId) => {
expectId = reminderId + 1;
reminderAgent.publishReminder(timer, reminderCallback);
})
done();
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_035
* @tc.name testActionButtonTypeSnooze035
* @tc.desc test acton butto type is snooze.
*/
it('testActionButtonTypeSnooze035', 0, async function (done) {
let timer = {
reminderType: reminderAgent.ReminderType.ACTION_BUTTON_TYPE_SNOOZE,
triggerTimeInSeconds: TRIGGER_TIME_IN_SECONDS
}
let expectId = -1;
function reminderCallback(err, reminderId) {
expect(reminderId).assertEqual(expectId);
}
reminderAgent.publishReminder(timer, (err, reminderId) => {
expectId = reminderId + 1;
reminderAgent.publishReminder(timer, reminderCallback);
})
done();
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_036
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册