提交 96f45d85 编写于 作者: Q qigongming

全局用例修改

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: Ibbdcfe5120cb4a08d0e322242ecf51025e549531
上级 880e0f50
......@@ -170,9 +170,9 @@ describe("TransientTaskJsTest", function () {
console.info('----------------------TransientTaskJsTest005---------------------------');
function callback() {}
let info = backgroundTaskManager.requestSuspendDelay("test", callback);
if (info.actualDealyTime != -1) {
console.info('TransientTaskJsTest005 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,7 +183,7 @@ describe("TransientTaskJsTest", function () {
/*
* @tc.name: TransientTaskJsTest006
* @tc.desc: test DelaySuspendInfo actualDealyTime
* @tc.desc: test DelaySuspendInfo actualDelayTime
* @tc.type: FUNC
* @tc.require:
*/
......@@ -192,8 +192,8 @@ describe("TransientTaskJsTest", function () {
function 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 {
......
......@@ -2344,7 +2344,7 @@ describe("DeviceUsageStatisticsJsTest", function () {
/*
* @tc.name: DeviceUsageStatisticsJsTest096
* @tc.desc: test bundleState getRecentlyUsedModules BundleActiveFormInfo formId promise.
* @tc.desc: test bundleState getRecentlyUsedModules BundleActiveFormInfo count promise.
* @tc.type: FUNC
* @tc.require:
*/
......@@ -2354,10 +2354,10 @@ describe("DeviceUsageStatisticsJsTest", function () {
console.info('test bundle DeviceUsageStatisticsJsTest096 promise success');
let BundleActiveFormInfo = res[0].formRecords;
if(BundleActiveFormInfo.length === 0) {
BundleActiveFormInfo = [{ formId: 'formId'}];
BundleActiveFormInfo = [{ count: 'count'}];
}
console.info('test bundle promise BundleActiveFormInfo formId: ' +
BundleActiveFormInfo[0].formId);
console.info('test bundle promise BundleActiveFormInfo count: ' +
BundleActiveFormInfo[0].count);
expect(BundleActiveFormInfo).assertInstanceOf('Array');
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest096 promise failed, because: ' +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册