提交 b9d4e674 编写于 作者: Q qigongming

release分支摘除系统用例

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: I8ca9c58ea577d25a7caaf69925281d0d94348b8e
上级 ecf375f2
......@@ -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.
先完成此消息的编辑!
想要评论请 注册