diff --git a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js index 03056ae5b4119e82d70139beccf161359aeb71d2..c130b4e027f674fe69ce230f9bdcb712bdbe834a 100644 --- a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js +++ b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/BackgroundTaskMagrJs.test.js @@ -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 { diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/DeviceUsageStatisticsJsunit.test.js b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/DeviceUsageStatisticsJsunit.test.js index 4edd57ff7677c7c152dab9ec31940ab93d44c5bf..24e2c4fe998ca00776b34ff15efb1f4401f17e81 100644 --- a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/DeviceUsageStatisticsJsunit.test.js +++ b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/DeviceUsageStatisticsJsunit.test.js @@ -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: ' +