提交 4672db87 编写于 作者: Q qigongming

master分支下架系统api用例

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: I13bd9cc540874e949affb24888bbdfaf21b7922c
上级 99d78993
......@@ -16,6 +16,7 @@
// @ts-nocheck
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'
import reminderAgent from '@ohos.reminderAgent'
import notification from '@ohos.notification'
describe('ReminderAgentTest', function () {
......@@ -2109,7 +2110,7 @@ describe('ReminderAgentTest', function () {
*/
it("testReminderAgentRequest_079", 0, async function (done) {
console.log('----------------------testReminderAgentRequest_079---------------------------');
let type = notification.SlotType.SERVICE.INFORMATION;
let type = notification.SlotType.SERVICE_INFORMATION;
expect(type).assertEqual(2);
done();
})
......@@ -2133,7 +2134,7 @@ describe('ReminderAgentTest', function () {
*/
it("testReminderAgentRequest_081", 0, async function (done) {
console.log('----------------------testReminderAgentRequest_081---------------------------');
let type = notificationId.SlotType.OTHER_TYPES;
let type = notification.SlotType.OTHER_TYPES;
expect(type).assertEqual(65535);
done();
})
......
......@@ -949,42 +949,6 @@ describe("WorkSchedulerJsTest", function () {
done();
})
/*
* @tc.name: WorkSchedulerJsTest049
* @tc.desc: test WorkSchedulerExtensoinAbility onWorkStart
* @tc.type: FUNC
* @tc.require:
*/
/*it("WorkSchedulerJsTest049", 0, async function (done) {
console.info('----------------------WorkSchedulerJsTest049---------------------------');
let workInfo = {
workId: 2,
bundleName: "ohos.acts.resourceschedule.workscheduler.js.function",
abilityName: "com.mytest.abilityName",
}
let res = workScheduler.onWorkStart(workInfo);
expect(res).assertEqual(false);
done();
})*/
/*
* @tc.name: WorkSchedulerJsTest050
* @tc.desc: test WorkSchedulerExtensoinAbility onWorkStop
* @tc.type: FUNC
* @tc.require:
*/
/*it("WorkSchedulerJsTest050", 0, async function (done) {
console.info('----------------------WorkSchedulerJsTest050---------------------------');
let workInfo = {
workId: 2,
bundleName: "ohos.acts.resourceschedule.workscheduler.js.function",
abilityName: "com.mytest.abilityName",
}
let stopRes = workSchedulerCallback.onWorkStop(workInfo, true);
expect(stopRes).assertEqual(false);
done();
})*/
/*
* @tc.name: WorkSchedulerJsTest051
* @tc.desc: test workScheduler bundleName
......
......@@ -16,7 +16,7 @@ import workscheduler from '@ohos.workScheduler'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe("WorkSchedulerJsTest", function () {
describe("WorkSchedulerPerformanceTest", function () {
console.log("**********WorkScheduler Performance Test Begin**********")
performanceStartWork()
performanceStopWork()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册