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 11124c55d7a09372fcd047d2180eeed7473a051b..3886d13cf6c0c94c9c9d4cce5ac0077b5df88839 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