From ce99860c7f1b5f5e0d1f41ae1a9a5bc854754476 Mon Sep 17 00:00:00 2001 From: smartltt Date: Fri, 17 Mar 2023 10:41:52 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2049fb8ae=20from=20https://gitee.com/smar?= =?UTF-8?q?tltt/xts=5Facts/pulls/8056=20master=E7=94=A8=E4=BE=8B=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: smartltt Change-Id: I9a256ff4b482348c21721be670a068345650824b --- .../test/DeviceUsageStatisticsJsunit.test.js | 146 +----------------- 1 file changed, 1 insertion(+), 145 deletions(-) diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js index 11124c55d..3886d13cf 100644 --- a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js +++ b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js @@ -393,148 +393,4 @@ describe("DeviceUsageStatisticsJsTest", function () { done(); }, 500); }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0019 - * @tc.name: DeviceUsageStatisticsJsTest019 - * @tc.desc: test BundleActiveState bundleName. - */ - it("DeviceUsageStatisticsJsTest019", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest019---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{bundleName: 'www.baidu.com'}]; - } - console.log('test BundleActiveState bundleName :' + res[0].bundleName); - done(); - } - }) - }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0020 - * @tc.name: DeviceUsageStatisticsJsTest020 - * @tc.desc: test BundleActiveState stateType. - */ - it("DeviceUsageStatisticsJsTest020", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest020---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{stateType: 0}]; - } - console.log('test BundleActiveState stateType :' + res[0].stateType); - done(); - } - }) - }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0021 - * @tc.name: DeviceUsageStatisticsJsTest021 - * @tc.desc: test BundleActiveState stateOccurredTime. - */ - it("DeviceUsageStatisticsJsTest021", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest021---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{stateOccurredTime: 0}]; - } - console.log('test BundleActiveState stateOccurredTime :' + res[0].stateOccurredTime); - done(); - } - }) - }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0022 - * @tc.name: DeviceUsageStatisticsJsTest022 - * @tc.desc: test BundleActiveState appUsagePriorityGroup. - */ - it("DeviceUsageStatisticsJsTest022", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest022---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{appUsagePriorityGroup: 0}]; - } - console.log('test BundleActiveState appUsagePriorityGroup :' + res[0].appUsagePriorityGroup); - done(); - } - }) - }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0023 - * @tc.name: DeviceUsageStatisticsJsTest023 - * @tc.desc: test BundleActiveState indexOfLink. - */ - it("DeviceUsageStatisticsJsTest023", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest023---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{indexOfLink: 'id'}]; - } - console.log('test BundleActiveState indexOfLink :' + res[0].indexOfLink); - done(); - } - }) - }) - - /* - * @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0024 - * @tc.name: DeviceUsageStatisticsJsTest024 - * @tc.desc: test BundleActiveState nameOfClass. - */ - it("DeviceUsageStatisticsJsTest024", 0, async function (done) { - console.info('----------------------DeviceUsageStatisticsJsTest024---------------------------'); - let beginTime = 10; - let endTime = 20000000000000; - bundleState.queryBundleActiveStates(beginTime, endTime, (err, res) => { - if(err) { - expect(false).assertEqual(true); - done(); - } else { - expect(true).assertEqual(true); - if(res === undefined) { - res = [{nameOfClass: 'BundleStates'}]; - } - console.log('test BundleActiveState nameOfClass :' + res[0].nameOfClass); - done(); - } - }) - }) -})} +})} \ No newline at end of file -- GitLab