diff --git a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js index eff21d421cc56ef14e78acefcc6a8ff275f60551..2a25e4cb3e98d7a5827e6d35defc7579f5de766f 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js index b508a903133fe306e232db2d4e6e56f00933905f..0e33931bedcdb1c1f9ea423220b49c3efad2bd76 100644 --- a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js index 6366482d731c7b8300e20074f1653b6cc872d5f9..4676112ac3f4c7c129cb8953994bd563e32ab2e3 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js @@ -2287,58 +2287,6 @@ describe('ChildProcessTest', function () { expect(Boolean(flag)).assertEqual(true) }) - /** - * @tc.name: testGetAvailableCores001 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores001', 0, function () { - var pri = process.getAvailableCores() - if(pri != null) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - }) - - /** - * @tc.name: testGetAvailableCores002 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores002', 0, function () { - for(var i=0; i<10; i++) - { - var pri = process.getAvailableCores() - if(pri != 0) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - } - }) - - /** - * @tc.name: testGetAvailableCores003 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores003', 0, function () { - for(var i=0; i<100; i++) - { - var pri = process.getAvailableCores() - if(pri != 0) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - } - }) - - /** * @tc.name: testGetEnvironmentVar001 * @tc.desc: Returns the system value for environment variables. diff --git a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js index 235baf671486069cea33d4746d310e86962fe25c..b3e2a9019e2372d65eec2af6e96bc44c6bbf30ed 100644 --- a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js index 22c25be537b1189bfd809f09c4dfd3b22ef8723a..dc029ade093130d2906be55d19567f5d31672972 100644 --- a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js @@ -16,7 +16,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js index eff21d421cc56ef14e78acefcc6a8ff275f60551..2a25e4cb3e98d7a5827e6d35defc7579f5de766f 100644 --- a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/util_lib_standard/src/main/js/test/ExampleJsunit.test.js b/compileruntime/util_lib_standard/src/main/js/test/ExampleJsunit.test.js index 619ce80bd68d5375a6e6b53b1b16adc1f53d942a..42cc9c58bd24b7c0a72fcc19dee9dd05c1ace751 100644 --- a/compileruntime/util_lib_standard/src/main/js/test/ExampleJsunit.test.js +++ b/compileruntime/util_lib_standard/src/main/js/test/ExampleJsunit.test.js @@ -14,7 +14,7 @@ */ import app from '@system.app' -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/lite' +import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('appInfoTest', function () { it('app_info_test_001', 0, function () { diff --git a/compileruntime/util_lib_standard/src/main/js/test/List.test.js b/compileruntime/util_lib_standard/src/main/js/test/List.test.js index da2ab805303819057c41180195fc029db19f6ffd..db7ff7a3c19b922293ecf1be1213202cb0b30124 100644 --- a/compileruntime/util_lib_standard/src/main/js/test/List.test.js +++ b/compileruntime/util_lib_standard/src/main/js/test/List.test.js @@ -15,17 +15,17 @@ require('./ExampleJsunit.test.js'); require('./util.test.js'); -require('./Deque.test.js'); -require('./ArrayList.test.js'); -require('./Queue.test.js'); -require('./Stack.test.js'); -require('./ContainerList.test.js'); -require('./LinkedList.test.js'); -require('./Vector.test.js'); -require('./LightWeightMap.test.js'); -require('./LightWeightSet.test.js'); -require('./HashMap.test.js'); -require('./HashSet.test.js'); -require('./PlainArray.test.js'); -require('./TreeMap.test.js'); -require('./TreeSet.test.js'); +// require('./Deque.test.js'); +// require('./ArrayList.test.js'); +// require('./Queue.test.js'); +// require('./Stack.test.js'); +// require('./ContainerList.test.js'); +// require('./LinkedList.test.js'); +// require('./Vector.test.js'); +// require('./LightWeightMap.test.js'); +// require('./LightWeightSet.test.js'); +// require('./HashMap.test.js'); +// require('./HashSet.test.js'); +// require('./PlainArray.test.js'); +// require('./TreeMap.test.js'); +// require('./TreeSet.test.js'); diff --git a/compileruntime/util_lib_standard/src/main/js/test/util.test.js b/compileruntime/util_lib_standard/src/main/js/test/util.test.js index e8c7bcf26ab9a004d88ea6377c85ecff0c53c594..5619d251d63374f46cd85ef28a8997e7bec46c68 100644 --- a/compileruntime/util_lib_standard/src/main/js/test/util.test.js +++ b/compileruntime/util_lib_standard/src/main/js/test/util.test.js @@ -968,7 +968,7 @@ describe('ScopeTest', function () { */ it('testGetLower001', 0, function () { var result = range.getLower() - expect(result).assertEqual(30) + expect(result.toString()).assertEqual('30') }) /** @@ -979,7 +979,7 @@ describe('ScopeTest', function () { */ it('testGetLower002', 0, function () { var result = rangeFir.getLower() - expect(result).assertEqual(35) + expect(result.toString()).assertEqual('35') }) /** @@ -990,7 +990,7 @@ describe('ScopeTest', function () { */ it('testGetLower003', 0, function () { var result = rangeSec.getLower() - expect(result).assertEqual(20) + expect(result.toString()).assertEqual('20') }) /** @@ -1001,7 +1001,7 @@ describe('ScopeTest', function () { */ it('testGetLower004', 0, function () { var result = rangeThi.getLower() - expect(result).assertEqual(20) + expect(result.toString()).assertEqual('20') }) /** @@ -1012,7 +1012,7 @@ describe('ScopeTest', function () { */ it('testGetLower005', 0, function () { var result = rangeFif.getLower() - expect(result).assertEqual(35) + expect(result.toString()).assertEqual('35') }) /** @@ -1023,7 +1023,7 @@ describe('ScopeTest', function () { */ it('testGetUpper001', 0, function () { var result = range.getUpper() - expect(result).assertEqual(40) + expect(result.toString()).assertEqual('40') }) /** @@ -1034,7 +1034,7 @@ describe('ScopeTest', function () { */ it('testGetUpper002', 0, function () { var result = rangeFir.getUpper() - expect(result).assertEqual(39) + expect(result.toString()).assertEqual('39') }) /** @@ -1045,7 +1045,7 @@ describe('ScopeTest', function () { */ it('testGetUpper003', 0, function () { var result = rangeSec.getUpper() - expect(result).assertEqual(45) + expect(result.toString()).assertEqual('45') }) /** @@ -1056,7 +1056,7 @@ describe('ScopeTest', function () { */ it('testGetUpper004', 0, function () { var result = rangeThi.getUpper() - expect(result).assertEqual(35) + expect(result.toString()).assertEqual('35') }) /** @@ -1067,7 +1067,7 @@ describe('ScopeTest', function () { */ it('testGetUpper005', 0, function () { var result = rangeFif.getUpper() - expect(result).assertEqual(45) + expect(result.toString()).assertEqual('45') }) /** @@ -1078,7 +1078,7 @@ describe('ScopeTest', function () { */ it('testClamp001', 0, function () { var result =range.clamp(tempLess) - expect(result).assertEqual(30) + expect(result.toString()).assertEqual('30') }) /** @@ -1089,7 +1089,7 @@ describe('ScopeTest', function () { */ it('testClamp002', 0, function () { var result =range.clamp(tempMiDF) - expect(result).assertEqual(35) + expect(result.toString()).assertEqual('35') }) /** @@ -1100,7 +1100,7 @@ describe('ScopeTest', function () { */ it('testClamp003', 0, function () { var result =range.clamp(tempMore) - expect(result).assertEqual(40) + expect(result.toString()).assertEqual('40') }) /** @@ -1111,7 +1111,7 @@ describe('ScopeTest', function () { */ it('testClamp004', 0, function () { var result =range.clamp(tempLower) - expect(result).assertEqual(30) + expect(result.toString()).assertEqual('30') }) /** @@ -1122,7 +1122,7 @@ describe('ScopeTest', function () { */ it('testClamp005', 0, function () { var result =range.clamp(tempUpper) - expect(result).assertEqual(40) + expect(result.toString()).assertEqual('40') }) /** @@ -1243,7 +1243,7 @@ describe('ScopeTest', function () { */ it('testExpand001', 0, function () { var result = range.expand(tempMiDF, tempMidS) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1254,7 +1254,7 @@ describe('ScopeTest', function () { */ it('testExpand002', 0, function () { var result = range.expand(tempLess, tempMore) - expect(result).assertEqual('[20, 45]') + expect(result.toString()).assertEqual('[20, 45]') }) /** @@ -1265,7 +1265,7 @@ describe('ScopeTest', function () { */ it('testExpand003', 0, function () { var result = range.expand(tempLess, tempMiDF) - expect(result).assertEqual('[20, 40]') + expect(result.toString()).assertEqual('[20, 40]') }) /** @@ -1276,7 +1276,7 @@ describe('ScopeTest', function () { */ it('testExpand004', 0, function () { var result = range.expand(tempMiDF, tempMore) - expect(result).assertEqual('[30, 45]') + expect(result.toString()).assertEqual('[30, 45]') }) /** @@ -1287,7 +1287,7 @@ describe('ScopeTest', function () { */ it('testExpand005', 0, function () { var result = range.expand(tempLower, tempUpper) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1298,7 +1298,7 @@ describe('ScopeTest', function () { */ it('testExpand001', 0, function () { var result = range.expand(rangeFir) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1309,7 +1309,7 @@ describe('ScopeTest', function () { */ it('testExpand002', 0, function () { var result = range.expand(rangeSec) - expect(result).assertEqual('[20, 45]') + expect(result.toString()).assertEqual('[20, 45]') }) /** @@ -1320,7 +1320,7 @@ describe('ScopeTest', function () { */ it('testExpand003', 0, function () { var result = range.expand(rangeThi) - expect(result).assertEqual('[20, 40]') + expect(result.toString()).assertEqual('[20, 40]') }) /** @@ -1331,7 +1331,7 @@ describe('ScopeTest', function () { */ it('testExpand004', 0, function () { var result = range.expand(rangeFif) - expect(result).assertEqual('[30, 45]') + expect(result.toString()).assertEqual('[30, 45]') }) /** @@ -1342,7 +1342,7 @@ describe('ScopeTest', function () { */ it('testExpand005', 0, function () { var result = range.expand(range) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1353,7 +1353,7 @@ describe('ScopeTest', function () { */ it('testExpand001', 0, function () { var result = range.expand(tempMiDF) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1364,7 +1364,7 @@ describe('ScopeTest', function () { */ it('testExpand002', 0, function () { var result = range.expand(tempLess) - expect(result).assertEqual('[20, 40]') + expect(result.toString()).assertEqual('[20, 40]') }) /** @@ -1375,7 +1375,7 @@ describe('ScopeTest', function () { */ it('testExpand003', 0, function () { var result = range.expand(tempMore) - expect(result).assertEqual('[30, 45]') + expect(result.toString()).assertEqual('[30, 45]') }) /** @@ -1386,7 +1386,7 @@ describe('ScopeTest', function () { */ it('testExpand004', 0, function () { var result = range.expand(tempLower) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1397,7 +1397,7 @@ describe('ScopeTest', function () { */ it('testExpand005', 0, function () { var result = range.expand(tempUpper) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1408,7 +1408,7 @@ describe('ScopeTest', function () { */ it('testInstersect001', 0, function () { var result = range.intersect(rangeFir) - expect(result).assertEqual('[35, 39]') + expect(result.toString()).assertEqual('[35, 39]') }) /** @@ -1419,7 +1419,7 @@ describe('ScopeTest', function () { */ it('testInstersect002', 0, function () { var result = range.intersect(rangeSec) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1430,7 +1430,7 @@ describe('ScopeTest', function () { */ it('testInstersect003', 0, function () { var result = range.intersect(rangeThi) - expect(result).assertEqual('[30, 35]') + expect(result.toString()).assertEqual('[30, 35]') }) /** @@ -1441,7 +1441,7 @@ describe('ScopeTest', function () { */ it('testInstersect004', 0, function () { var result = range.intersect(rangeFif) - expect(result).assertEqual('[35, 40]') + expect(result.toString()).assertEqual('[35, 40]') }) /** @@ -1452,7 +1452,7 @@ describe('ScopeTest', function () { */ it('testInstersect005', 0, function () { var result = range.intersect(range) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1464,7 +1464,7 @@ describe('ScopeTest', function () { */ it('testInstersect001', 0, function () { var result = range.intersect(tempMiDF, tempMidS) - expect(result).assertEqual('[35, 39]') + expect(result.toString()).assertEqual('[35, 39]') }) /** @@ -1476,7 +1476,7 @@ describe('ScopeTest', function () { */ it('testInstersect002', 0, function () { var result = range.intersect(tempLess, tempMore) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1488,7 +1488,7 @@ describe('ScopeTest', function () { */ it('testInstersect003', 0, function () { var result = range.intersect(tempLess, tempMiDF) - expect(result).assertEqual('[30, 35]') + expect(result.toString()).assertEqual('[30, 35]') }) /** @@ -1500,7 +1500,7 @@ describe('ScopeTest', function () { */ it('testInstersect004', 0, function () { var result = range.intersect(tempMiDF, tempMore) - expect(result).assertEqual('[35, 40]') + expect(result.toString()).assertEqual('[35, 40]') }) /** @@ -1512,7 +1512,7 @@ describe('ScopeTest', function () { */ it('testInstersect005', 0, function () { var result = range.intersect(tempLower, tempUpper) - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1523,7 +1523,7 @@ describe('ScopeTest', function () { */ it('testToString001', 0, function () { var result = range.toString() - expect(result).assertEqual('[30, 40]') + expect(result.toString()).assertEqual('[30, 40]') }) /** @@ -1534,7 +1534,7 @@ describe('ScopeTest', function () { */ it('testToString002', 0, function () { var result = rangeFir.toString() - expect(result).assertEqual('[35, 39]') + expect(result.toString()).assertEqual('[35, 39]') }) /** @@ -1545,7 +1545,7 @@ describe('ScopeTest', function () { */ it('testToString003', 0, function () { var result = rangeSec.toString() - expect(result).assertEqual('[20, 45]') + expect(result.toString()).assertEqual('[20, 45]') }) /** @@ -1556,7 +1556,7 @@ describe('ScopeTest', function () { */ it('testToString004', 0, function () { var result = rangeThi.toString() - expect(result).assertEqual('[20, 35]') + expect(result.toString()).assertEqual('[20, 35]') }) /** @@ -1567,7 +1567,7 @@ describe('ScopeTest', function () { */ it('testToString005', 0, function () { var result = rangeFif.toString() - expect(result).assertEqual('[35, 45]') + expect(result.toString()).assertEqual('[35, 45]') }) }) diff --git a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js index eff21d421cc56ef14e78acefcc6a8ff275f60551..2a25e4cb3e98d7a5827e6d35defc7579f5de766f 100644 --- a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: {