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

!9227 【resourceschedule】更新提醒代理模块XTS适配

Merge pull request !9227 from 南先森/rms0705
...@@ -129,7 +129,7 @@ export default function ReminderAgentTest() { ...@@ -129,7 +129,7 @@ export default function ReminderAgentTest() {
reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER,
triggerTimeInSeconds: 4, triggerTimeInSeconds: 4,
wantAgent: { wantAgent: {
pkgName: "ohos.samples.jshelloworld", pkgName: "ohos.acts.resourceschedule.reminderagent.js.function",
abilityName: "ohos.samples.jshelloworld.MainAbility" abilityName: "ohos.samples.jshelloworld.MainAbility"
}, },
}; };
...@@ -2166,7 +2166,7 @@ export default function ReminderAgentTest() { ...@@ -2166,7 +2166,7 @@ export default function ReminderAgentTest() {
reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER,
triggerTimeInSeconds: 20, triggerTimeInSeconds: 20,
wantAgent: { wantAgent: {
pkgName: "", pkgName: "ohos.acts.resourceschedule.reminderagent.js.function",
abilityName: "com.oh.phone.MainAbility" abilityName: "com.oh.phone.MainAbility"
} }
} }
...@@ -2180,7 +2180,7 @@ export default function ReminderAgentTest() { ...@@ -2180,7 +2180,7 @@ export default function ReminderAgentTest() {
if (reminder.length !== 0) { if (reminder.length !== 0) {
let pkgName = reminder[0].wantAgent.pkgName; let pkgName = reminder[0].wantAgent.pkgName;
console.info("callback,the testGetValidRemindersPkgName_083 pkgName is: " + pkgName); console.info("callback,the testGetValidRemindersPkgName_083 pkgName is: " + pkgName);
expect(pkgName).assertEqual(""); expect(pkgName.length).assertLarger(0);
done() done()
} }
}); });
...@@ -2198,7 +2198,7 @@ export default function ReminderAgentTest() { ...@@ -2198,7 +2198,7 @@ export default function ReminderAgentTest() {
reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER,
triggerTimeInSeconds: 20, triggerTimeInSeconds: 20,
wantAgent: { wantAgent: {
pkgName: 123, pkgName: "ohos.acts.resourceschedule.reminderagent.js.function",
abilityName: "com.oh.phone.MainAbility" abilityName: "com.oh.phone.MainAbility"
} }
} }
...@@ -2212,7 +2212,7 @@ export default function ReminderAgentTest() { ...@@ -2212,7 +2212,7 @@ export default function ReminderAgentTest() {
if (reminder.length !== 0) { if (reminder.length !== 0) {
let pkgName = reminder[0].wantAgent.pkgName; let pkgName = reminder[0].wantAgent.pkgName;
console.info("callback,the testGetValidRemindersPkgName_084 pkgName is: " + pkgName); console.info("callback,the testGetValidRemindersPkgName_084 pkgName is: " + pkgName);
expect(pkgName).assertEqual(""); expect(pkgName.length).assertLarger(0);
done() done()
} }
}); });
...@@ -2230,7 +2230,7 @@ export default function ReminderAgentTest() { ...@@ -2230,7 +2230,7 @@ export default function ReminderAgentTest() {
reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER,
triggerTimeInSeconds: 20, triggerTimeInSeconds: 20,
wantAgent: { wantAgent: {
pkgName: "com.oh.phone", pkgName: "ohos.acts.resourceschedule.reminderagent.js.function",
abilityName: "" abilityName: ""
} }
} }
...@@ -2263,7 +2263,7 @@ export default function ReminderAgentTest() { ...@@ -2263,7 +2263,7 @@ export default function ReminderAgentTest() {
reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER, reminderType: reminderAgent.ReminderType.REMINDER_TYPE_TIMER,
triggerTimeInSeconds: 20, triggerTimeInSeconds: 20,
wantAgent: { wantAgent: {
pkgName: "com.oh.phone", pkgName: "ohos.acts.resourceschedule.reminderagent.js.function",
abilityName: 1243 abilityName: 1243
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册