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

!2788 Modify use case

Merge pull request !2788 from 火箭龟/release_322
...@@ -898,10 +898,10 @@ describe("WorkSchedulerJsTest", function () { ...@@ -898,10 +898,10 @@ describe("WorkSchedulerJsTest", function () {
it("WorkSchedulerJsTest046", 0, async function (done) { it("WorkSchedulerJsTest046", 0, async function (done) {
console.info('----------------------WorkSchedulerJsTest046---------------------------'); console.info('----------------------WorkSchedulerJsTest046---------------------------');
let workInfo = { let workInfo = {
workId: 7, workId: 5,
bundleName: "ohos.acts.resourceschedule.workscheduler.js.function", bundleName: "ohos.acts.resourceschedule.workscheduler.js.function",
abilityName: "com.mytest.abilityName", abilityName: "com.mytest.abilityName",
networkType: NETWORK_TYPE_ANY networkType: workScheduler.NetworkType.NETWORK_TYPE_ANY
} }
let res = workScheduler.startWork(workInfo); let res = workScheduler.startWork(workInfo);
expect(res).assertEqual(false); expect(res).assertEqual(false);
...@@ -955,7 +955,7 @@ describe("WorkSchedulerJsTest", function () { ...@@ -955,7 +955,7 @@ describe("WorkSchedulerJsTest", function () {
* @tc.type: FUNC * @tc.type: FUNC
* @tc.require: * @tc.require:
*/ */
it("WorkSchedulerJsTest049", 0, async function (done) { /*it("WorkSchedulerJsTest049", 0, async function (done) {
console.info('----------------------WorkSchedulerJsTest049---------------------------'); console.info('----------------------WorkSchedulerJsTest049---------------------------');
let workInfo = { let workInfo = {
workId: 2, workId: 2,
...@@ -965,7 +965,7 @@ describe("WorkSchedulerJsTest", function () { ...@@ -965,7 +965,7 @@ describe("WorkSchedulerJsTest", function () {
var res = workScheduler.onWorkStart(workInfo); var res = workScheduler.onWorkStart(workInfo);
expect(res).assertEqual(false); expect(res).assertEqual(false);
done(); done();
}) })*/
/* /*
* @tc.name: WorkSchedulerJsTest050 * @tc.name: WorkSchedulerJsTest050
...@@ -973,7 +973,7 @@ describe("WorkSchedulerJsTest", function () { ...@@ -973,7 +973,7 @@ describe("WorkSchedulerJsTest", function () {
* @tc.type: FUNC * @tc.type: FUNC
* @tc.require: * @tc.require:
*/ */
it("WorkSchedulerJsTest050", 0, async function (done) { /*it("WorkSchedulerJsTest050", 0, async function (done) {
console.info('----------------------WorkSchedulerJsTest050---------------------------'); console.info('----------------------WorkSchedulerJsTest050---------------------------');
let workInfo = { let workInfo = {
workId: 2, workId: 2,
...@@ -983,7 +983,7 @@ describe("WorkSchedulerJsTest", function () { ...@@ -983,7 +983,7 @@ describe("WorkSchedulerJsTest", function () {
var stopRes = workSchedulerCallback.onWorkStop(workInfo, true); var stopRes = workSchedulerCallback.onWorkStop(workInfo, true);
expect(stopRes).assertEqual(false); expect(stopRes).assertEqual(false);
done(); done();
}) })*/
/* /*
* @tc.name: WorkSchedulerJsTest051 * @tc.name: WorkSchedulerJsTest051
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册