未验证 提交 32f56178 编写于 作者: O openharmony_ci 提交者: Gitee

!3167 Remove system use cases

Merge pull request !3167 from qigongming/release_0512
......@@ -170,9 +170,9 @@ describe("TransientTaskJsTest", function () {
console.info('----------------------TransientTaskJsTest005---------------------------');
function callback() {}
let info = backgroundTaskManager.requestSuspendDelay("test", callback);
if (info.actualDealyTime != -1) {
console.info('TransientTaskJsTest001 backgroundTaskManager success, actualDealyTime:' +
info.actualDealyTime);
if (info.actualDelayTime != -1) {
console.info('TransientTaskJsTest005 backgroundTaskManager success, actualDelayTime:' +
info.actualDelayTime);
expect(true).assertTrue();
backgroundTaskManager.cancelSuspendDelay(info.requestId)
} else {
......@@ -183,25 +183,22 @@ describe("TransientTaskJsTest", function () {
/*
* @tc.name: TransientTaskJsTest006
* @tc.desc: test DelaySuspendInfo actualDealyTime
* @tc.desc: test DelaySuspendInfo actualDelayTime
* @tc.type: FUNC
* @tc.require:
*/
it("TransientTaskJsTest006", 0, async function (done) {
console.info('----------------------TransientTaskJsTest006---------------------------');
function callback() {}
let info = backgroundTaskManager.requestSuspendDelay("test", callback);
let info = backgroundTaskManager.requestSuspendDelay("123456", callback);
if (info.requestId != -1) {
console.info('TransientTaskJsTest006 DelaySuspendInfo actualDealyTime:' +
info.actualDealyTime);
console.info('TransientTaskJsTest006 DelaySuspendInfo actualDelayTime:' +
info.actualDelayTime);
backgroundTaskManager.cancelSuspendDelay(info.requestId);
expect(true).assertTrue();
} else {
expect(false).assertTrue();
done();
}
setTimeout(() => {
done();
},500);
done();
})
})
......@@ -466,32 +466,6 @@ describe("ContinuousTaskJsTest", function () {
done();
})
/*
* @tc.name: ContinuousTaskJsTest015
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it("ContinuousTaskJsTest015", 0, function (done) {
console.info('----------------------ContinuousTaskJsTest015---------------------------');
let value1 = backgroundTaskManager.BackgroundMode.WIFI_INTERACTION;
expect(value1).assertEqual(7)
done();
})
/*
* @tc.name: ContinuousTaskJsTest016
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it("ContinuousTaskJsTest016", 0, function (done) {
console.info('----------------------ContinuousTaskJsTest016---------------------------');
let value1 = backgroundTaskManager.BackgroundMode.VOIP;
expect(value1).assertEqual(8)
done();
})
/*
* @tc.name: ContinuousTaskJsTest017
* @tc.desc: test work scheduler constant
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册