提交 5d30f198 编写于 作者: N nan-xiansen

【resourceschedule】【master】提醒代理模块用例修改

Signed-off-by: Nnan-xiansen <nanjinbin@huawei.com>
Change-Id: I58666d9260401cc18e68b4c80ae5e6894db45e02
上级 43bf0757
......@@ -3087,48 +3087,6 @@ describe('ReminderAgentTest', function () {
})
/**
* @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
* @tc.name testActionButtonType036
* @tc.desc test acton butto type type = 0.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册