diff --git a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js index e9b0566075decde3968c5e06bc4862160613bf2a..00e264899cbc12c42b15c1ad454878557b3931e6 100644 --- a/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js +++ b/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js @@ -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 diff --git a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js index de590d28b92af86f167b9164bf1d3cf5fa47a70b..40ee259ac04dc02c1dd4514aa38da964afaa7be2 100644 --- a/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js +++ b/resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js @@ -99,504 +99,6 @@ describe('bundlestate', function() { console.info('queryAppUsagePriorityGroup_002 end'); }) - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0003 - * @tc.name: queryBundleStateInfos_003. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_003', 0, function(done) { - console.info('queryBundleStateInfos_003 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(timer.startTime,timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_003 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_003 callback success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Object'); - } - done(); - }); - console.info('queryBundleStateInfos_003 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0004 - * @tc.name: queryBundleStateInfos_004. - * @tc.desc: Execute queryBundleStateInfos with promise. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_004', 0, async function(done) { - console.info('queryBundleStateInfos_004 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(timer.startTime,timer.endTime).then((res) => { - console.info('queryBundleStateInfos_004 promise success result = ' + JSON.stringify(res)); - expect(res).assertInstanceOf('Object'); - done(); - }).catch((err) => { - console.info('queryBundleStateInfos_004 promise fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - done(); - }) - console.info('queryBundleStateInfos_004 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0005 - * @tc.name: queryBundleStateInfos_005. - * @tc.desc: Execute queryBundleStateInfos with promise. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_005', 0, async function(done) { - console.info('queryBundleStateInfos_005 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(timer.startTime, 'endTime', (err, data) => { - if(err) { - console.info('queryBundleStateInfos_005 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_005 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_005 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0006 - * @tc.name: queryBundleStateInfos_006. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_006', 0, async function(done) { - console.info('queryBundleStateInfos_006 start'); - bundlestate.queryBundleStateInfos('startTime', 1923746, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_006 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_006 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_006 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0007 - * @tc.name: queryBundleStateInfos_007. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_007', 0, async function(done) { - console.info('queryBundleStateInfos_007 start'); - bundlestate.queryBundleStateInfos('', 1923746, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_007 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_007 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_007 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0008 - * @tc.name: queryBundleStateInfos_008. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_008', 0, async function(done) { - console.info('queryBundleStateInfos_008 start'); - bundlestate.queryBundleStateInfos(true, true, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_008 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_008 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_008 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0009 - * @tc.name: queryBundleStateInfos_009. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_009', 0, async function(done) { - console.info('queryBundleStateInfos_009 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos('', '', (err, data) => { - if(err) { - console.info('queryBundleStateInfos_009 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_009 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_009 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0010 - * @tc.name: queryBundleStateInfos_010. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_010', 0, async function(done) { - console.info('queryBundleStateInfos_010 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(timer.startTime, timer.startTime, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_010 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_010 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_010 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0011 - * @tc.name: queryBundleStateInfos_011. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_011', 0, async function(done) { - console.info('queryBundleStateInfos_011 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(timer.endTime, timer.startTime, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_011 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_011 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_011 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0012 - * @tc.name: queryBundleStateInfos_012. - * @tc.desc: Execute queryBundleStateInfos with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfos_012', 0, async function(done) { - console.info('queryBundleStateInfos_012 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfos(null, -1, (err, data) => { - if(err) { - console.info('queryBundleStateInfos_012 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfos_012 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfos_012 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0013 - * @tc.name: queryBundleStateInfoByInterval_013. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_013', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_013 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, timer.startTime, timer.endTime, (err, data) => { - console.info("***" + byInterval + "***" + typeof byInterval) - if(err) { - console.info('queryBundleStateInfoByInterval_013 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_013 callback success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Array'); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_013 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0014 - * @tc.name: queryBundleStateInfoByInterval_014. - * @tc.desc: Execute queryBundleStateInfoByInterval with promise. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_014', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_014 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, timer.startTime, timer.endTime).then((data) => { - console.info('queryBundleStateInfoByInterval_014 promise success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Array'); - done(); - }).catch((err) => { - console.info('queryBundleStateInfoByInterval_014 promise fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - done(); - }) - console.info('queryBundleStateInfoByInterval_014 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0015 - * @tc.name: queryBundleStateInfoByInterval_015. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_015', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_015 start'); - bundlestate.queryBundleStateInfoByInterval(null, 0, 0, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_015 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_015 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_015 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0016 - * @tc.name: queryBundleStateInfoByInterval_016. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_016', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_016 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, 'startTime', timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_016 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_016 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_016 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0017 - * @tc.name: queryBundleStateInfoByInterval_017. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_017', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_017 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(-1, timer.startTime, timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_017 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_017 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_017 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0018 - * @tc.name: queryBundleStateInfoByInterval_018. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_018', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_018 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, timer.startTime, true, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_018 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_018 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_018 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0019 - * @tc.name: queryBundleStateInfoByInterval_019. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_019', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_019 start'); - bundlestate.queryBundleStateInfoByInterval(byInterval, 'timer.startTime', 123, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_019 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_019 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_019 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0020 - * @tc.name: queryBundleStateInfoByInterval_020. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_020', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_020 start'); - bundlestate.queryBundleStateInfoByInterval(null, null, null, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_020 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_020 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_020 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0021 - * @tc.name: queryBundleStateInfoByInterval_021. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_021', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_021 start'); - bundlestate.queryBundleStateInfoByInterval(null, null, null, (err, data) => { - if(err) { - console.info('queryBundleStateInfoByInterval_021 callback fail result = ' + JSON.stringify(err.code)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_021 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_021 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0022 - * @tc.name: queryBundleStateInfoByInterval_022. - * @tc.desc: Execute queryBundleStateInfoByInterval with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleStateInfoByInterval_022', 0, async function(done) { - console.info('queryBundleStateInfoByInterval_022 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, timer.endTime, timer.startTime, (err, res) => { - if(err) { - console.info('queryBundleStateInfoByInterval_022 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleStateInfoByInterval_022 callback success result = ' + JSON.stringify(res)); - expect(res).assertFail(); - } - done(); - }); - console.info('queryBundleStateInfoByInterval_022 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_0023 - * @tc.name: merge_023. - * @tc.desc: Execute merge with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('merge_023', 0, function(done) { - console.info('bundle merge_023 start'); - let timer = onInit(); - bundlestate.queryBundleStateInfoByInterval(byInterval, timer.startTime, timer.endTime).then(res => { - console.info("&&&&&&&" + JSON.stringify(res)); - try { - let ret = bundlestate.BundleStateInfo.merge(toMerge); - expect(ret).assertUndefined() - } catch(e) { - console.info('bundle merge_023 failed'); - let err = 0; - expect(err).assertEqual(0); - } - done() - }) - console.info('merge_023 end'); - }) - /* * @tc.number: SUB_INTELLITV_JS_BUNDLE_0024 * @tc.name: merge_024. @@ -731,289 +233,6 @@ describe('bundlestate', function() { console.info('merge_028 end'); }) - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0029 - * @tc.name: queryBundleActiveStates_029. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_029', 0, async function(done) { - console.info('queryBundleActiveStates_029 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(timer.startTime, timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_029 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertFail(); - done(); - } else { - console.info('queryBundleActiveStates_029 callback success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Array'); - } - done(); - }); - console.info('queryBundleActiveStahdctes_029 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0030 - * @tc.name: queryBundleActiveStates_030. - * @tc.desc: Execute queryBundleActiveStates with promise. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_030', 0, async function(done) { - console.info('queryBundleActiveStates_030 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(timer.startTime, timer.endTime).then((data) => { - console.info('queryBundleActiveStates_030 promise success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Array'); - }).catch((err) => { - console.info('queryBundleActiveStates_030 promise fail result = ' + JSON.stringify(err.code)); - expect(data).assertFail(); - }) - done(); - console.info('queryBundleActiveStates_030 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0031 - * @tc.name: queryBundleActiveStates_031. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_031', 0, async function(done) { - console.info('queryBundleActiveStates_031 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(3.1415, timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_031 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_031 callback success result = ' + JSON.stringify(data)); - expect(data).assertInstanceOf('Array'); - } - done(); - }); - console.info('queryBundleActiveStahdctes_031 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0032 - * @tc.name: queryBundleActiveStates_032. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_032', 0, async function(done) { - console.info('queryBundleActiveStates_032 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(timer.startTime, "endTime", (err, data) => { - if(err) { - console.info('queryBundleActiveStates_032 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_032 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_032 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0033 - * @tc.name: queryBundleActiveStates_033. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_033', 0, async function(done) { - console.info('queryBundleActiveStates_033 start'); - bundlestate.queryBundleActiveStates('startTime', -1, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_033 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_033 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_033 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0034 - * @tc.name: queryBundleActiveStates_034. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_034', 0, async function(done) { - console.info('queryBundleActiveStates_034 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates('timer.startTime', timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_034 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_034 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_034 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0035 - * @tc.name: queryBundleActiveStates_035. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_035', 0, async function(done) { - console.info('queryBundleActiveStates_035 start'); - bundlestate.queryBundleActiveStates('timer.startTime', 'timer.endTime', (err, data) => { - if(err) { - console.info('queryBundleActiveStates_035 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_035 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_035 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0036 - * @tc.name: queryBundleActiveStates_036. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_036', 0, async function(done) { - console.info('queryBundleActiveStates_036 start'); - bundlestate.queryBundleActiveStates('timer.startTime', true, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_036 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_036 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_036 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0037 - * @tc.name: queryBundleActiveStates_037. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_037', 0, async function(done) { - console.info('queryBundleActiveStates_037 start'); - bundlestate.queryBundleActiveStates('', '', (err, data) => { - if(err) { - console.info('queryBundleActiveStates_037 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_037 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_037 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0038 - * @tc.name: queryBundleActiveStates_038. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_038', 0, async function(done) { - console.info('queryBundleActiveStates_038 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates('', timer.endTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_038 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_038 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_038 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0039 - * @tc.name: queryBundleActiveStates_039. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_039', 0, async function(done) { - console.info('queryBundleActiveStates_039 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(timer.endTime, timer.startTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_039 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_039 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_039 end'); - }) - - /* - * @tc.number: SUB_INTELLITV_JS_BUNDLE_0040 - * @tc.name: queryBundleActiveStates_040. - * @tc.desc: Execute queryBundleActiveStates with callback. - * @tc.size: MEDIUM - * @tc.type: Function - * @tc.level: level 0 - */ - it('queryBundleActiveStates_040', 0, async function(done) { - console.info('queryBundleActiveStates_040 start'); - let timer = onInit(); - bundlestate.queryBundleActiveStates(timer.startTime, timer.startTime, (err, data) => { - if(err) { - console.info('queryBundleActiveStates_040 callback fail result = ' + JSON.stringify(err)); - expect(err.code).assertLarger(0); - } else { - console.info('queryBundleActiveStates_040 callback success result = ' + JSON.stringify(data)); - expect(data).assertFail(); - } - done(); - }); - console.info('queryBundleActiveStates_040 end'); - }) - /* * @tc.number: SUB_INTELLITV_JS_BUNDLE_0041 * @tc.name: queryCurrentBundleActiveStates_041.