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 018d91a145a8f1df6c9e0309266f5f33a7fbbafb..e7222816becac2a64419a7712068777a8d6b8e60 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 @@ -1775,12 +1775,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testTid001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-001 * @tc.desc: Returns the tid of the current thread. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testTid001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-001', 0, function () { var pres = process.tid if(pres > 0) { @@ -1790,12 +1790,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testTid002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-002 * @tc.desc: Returns the tid of the current thread. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testTid002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-002', 0, function () { for(var i=0; i < 5; i++) { var pres = process.tid @@ -1808,12 +1808,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testTid003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-003 * @tc.desc: Returns the tid of the current thread. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testTid003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-003', 0, function () { for(var i=0; i < 3; i++) { var pres = process.tid @@ -1827,23 +1827,23 @@ describe('ChildProcessTest', function () { /** - * @tc.name: testIsisolatedProcess001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-004 * @tc.desc: Returns a boolean whether the process is isolated. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIsisolatedProcess001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-004', 0, function () { var pres = process.isIsolatedProcess() expect(pres).assertEqual(true) }) /** - * @tc.name: testIsisolatedProcess002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-005 * @tc.desc: Returns a boolean whether the process is isolated. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIsisolatedProcess002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-005', 0, function () { for(var i=0; i < 3; i++) { var pres =process.isIsolatedProcess() @@ -1852,12 +1852,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testIsisolatedProcess003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-006 * @tc.desc: Returns a boolean whether the process is isolated. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIsisolatedProcess003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-006', 0, function () { for(var i=0; i < 5; i++) { var pres =process.isIsolatedProcess() @@ -1867,23 +1867,23 @@ describe('ChildProcessTest', function () { /** - * @tc.name: testIsappuid001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-007 * @tc.desc: Returns a boolean whether the specified uid belongs to a particular application. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIsappuid001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-007', 0, function () { var isorno = process.isAppUid(167) expect(isorno).assertEqual(false) }) /** - * @tc.name: testIsappuid002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-008 * @tc.desc: Returns a boolean whether the specified uid belongs to a particular application. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIsappuid002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-008', 0, function () { var isorno = process.isAppUid(123) expect(isorno).assertEqual(false) }) @@ -1922,23 +1922,23 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testIs64Bit001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-009 * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIs64Bit001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-009', 0, function () { var isorno = process.is64Bit() expect(isorno).assertEqual(false) }) /** - * @tc.name: testIs64Bit002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-010 * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIs64Bit002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-010', 0, function () { for(var i=0; i<3; i++) { var isorno = process.is64Bit() @@ -1947,12 +1947,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testIs64Bit003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-011 * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testIs64Bit003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-011', 0, function () { for(var i=0; i<5; i++) { var isorno = process.is64Bit() @@ -1962,12 +1962,12 @@ describe('ChildProcessTest', function () { /** - * @tc.name: testGetuidforname001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-012 * @tc.desc: Returns the uid based on the specified user name. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetuidforname001',0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-012',0, function () { var pres = process.getUidForName("root") if(pres != -1) { @@ -1977,12 +1977,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetuidforname002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-013 * @tc.desc: Returns the uid based on the specified user name. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetuidforname002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-013', 0, function () { for(var i=0; i<3; i++) { var pres = process.getUidForName("12356") @@ -1991,12 +1991,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetuidforname003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-014 * @tc.desc: Returns the uid based on the specified user name. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetuidforname003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-014', 0, function () { for(var i=0; i<5; i++) { var pres = process.getUidForName("12356") @@ -2006,12 +2006,12 @@ describe('ChildProcessTest', function () { /** - * @tc.name: testGetthreadpriority001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-015 * @tc.desc: Returns the thread priority based on the specified tid. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetthreadpriority001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-015', 0, function () { var pres = process.tid var pri = process.getThreadPriority(pres) if(pri) @@ -2022,12 +2022,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetthreadpriority002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-016 * @tc.desc: Returns the thread priority based on the specified tid. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetthreadpriority002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-016', 0, function () { var pres = process.tid for(var i=0; i<3; i++) { @@ -2041,12 +2041,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetthreadpriority003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-017 * @tc.desc: Returns the thread priority based on the specified tid. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetthreadpriority003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-017', 0, function () { var pres = process.tid for(var i=0; i<5; i++) { @@ -2060,13 +2060,13 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetstartrealtime001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-019 * @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of - the system to the start of the process. + * @the system to the start of the process. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetstartrealtime001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-019', 0, function () { for(var i=0; i<3; i++) { var pri = process.getStartRealtime() @@ -2079,13 +2079,13 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetstartrealtime002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-018 * @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of - the system to the start of the process. + * @the system to the start of the process. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetstartrealtime002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-018', 0, function () { var pri = process.getStartRealtime() if(pri !== null) { @@ -2095,13 +2095,13 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetstartrealtime003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-020 * @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of - the system to the start of the process. + * @the system to the start of the process. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetstartrealtime003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-020', 0, function () { for(var i=0; i<5; i++) { var pri = process.getStartRealtime() @@ -2113,10 +2113,23 @@ describe('ChildProcessTest', function () { } }) + /** + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-021 + * @tc.desc: Returns the elapsed real time (in milliseconds) + * @taken from the start of the system to the start of the process. + * @tc.require: AR000GFB04 + * @tc.author: liwenqiang + */ + it('SUB_Runtime_JSAPI_SR000GGR3G-021', 0, function () { + var priOne = process.getStartRealtime() + var priTwo = process.getStartRealtime() + expect(priOne - priTwo).assertEqual(0) + }) + /** * @tc.name: testGetstartrealtime004 * @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of - the system to the start of the process. + * @the system to the start of the process. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ @@ -2151,12 +2164,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetpastCpuTime002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-022 * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetpastCpuTime002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-022', 0, function () { var pri = process.getPastCpuTime() if(pri > 0) { @@ -2166,12 +2179,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetpastCpuTime003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-023 * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetpastCpuTime003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-023', 0, function () { for(var i=0; i<5; i++) { var pri = process.getPastCpuTime() @@ -2184,12 +2197,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetpastCpuTime004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-024 * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetpastCpuTime004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-024', 0, function () { for(var i=0; i<8; i++) { var pri = process.getPastCpuTime() @@ -2202,12 +2215,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetSystemConfig001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-025 * @tc.desc: Returns the system configuration at runtime. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetSystemConfig001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-025', 0, function () { var _SC_ARG_MAX = 0 var pri = process.getSystemConfig(_SC_ARG_MAX) if(pri > 0) @@ -2218,12 +2231,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetSystemConfig002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-026 * @tc.desc: Returns the system configuration at runtime. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetSystemConfig002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-026', 0, function () { var _SC_ARG_MAX = 0 for(var i=0; i<3; i++) { @@ -2237,12 +2250,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetSystemConfig003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-027 * @tc.desc: Returns the system configuration at runtime. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetSystemConfig003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-027', 0, function () { var _SC_ARG_MAX = 0 for(var i=0; i<5; i++) { @@ -2256,12 +2269,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetSystemConfig004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-028 * @tc.desc: Returns the system configuration at runtime. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetSystemConfig004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-028', 0, function () { var _SC_OPEN_MAX = 4 var pri = process.getSystemConfig(_SC_OPEN_MAX) if(pri > 0) @@ -2272,12 +2285,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetSystemConfig005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-029 * @tc.desc: Returns the system configuration at runtime. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetSystemConfig005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-029', 0, function () { var _SC_PAGESIZE = 8 var pri = process.getSystemConfig(_SC_PAGESIZE) if(pri > 0) @@ -2288,12 +2301,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetEnvironmentVar001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-033 * @tc.desc: Returns the system value for environment variables. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetEnvironmentVar001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-033', 0, function () { var pri = process.getEnvironmentVar("USER") if(pri != null) { var flag = new Boolean(true) @@ -2302,12 +2315,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetEnvironmentVar002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-036 * @tc.desc: Returns the system value for environment variables. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetEnvironmentVar002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-036', 0, function () { for(var i=0; i<3; i++) { var pri = process.getEnvironmentVar("PATH") @@ -2338,12 +2351,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetEnvironmentVar004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-034 * @tc.desc: Returns the system value for environment variables. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetEnvironmentVar004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-034', 0, function () { for(var i=0; i<6; i++) { var pri = process.getEnvironmentVar("USER") @@ -2356,12 +2369,12 @@ describe('ChildProcessTest', function () { }) /** - * @tc.name: testGetEnvironmentVar005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-035 * @tc.desc: Returns the system value for environment variables. * @tc.require: AR000GFB04 * @tc.author: liwenqiang */ - it('testGetEnvironmentVar005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR3G-035', 0, function () { for(var i=0; i<8; i++) { var pri = process.getEnvironmentVar("USER") @@ -2372,4 +2385,22 @@ describe('ChildProcessTest', function () { } } }) + + /** + * @tc.name: SUB_Runtime_JSAPI_SR000GGR3G-037 + * @tc.desc: Returns the system value for environment variables. + * @tc.require: AR000GFB04 + * @tc.author: liwenqiang + */ + it('SUB_Runtime_JSAPI_SR000GGR3G-037', 0, function () { + for(var i=0; i<100; i++) + { + var pri = process.getEnvironmentVar("i123") + if(pri == null) + { + var flag = new Boolean(true) + expect(flag).assertEqual(true) + } + } + }) }) \ No newline at end of file diff --git a/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js b/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js index f8b022a04886bd08cd352a84f0da9b34d29a4687..501fd5074b611d4075759f75c5f37bee5b12c3b7 100644 --- a/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js +++ b/compileruntime/uri_lib_standard/src/main/js/test/uri.test.js @@ -17,12 +17,12 @@ import URI from '@ohos.uri' describe('UriTest', function () { /** - * @tc.name: testConstructor001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_012 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_012', 0, function () { try { let that = new URI('#http://username:password@host:8080/directory/file?foo=1&bar=2'); } catch (err) { @@ -31,12 +31,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_010 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_010', 0, function () { try { let that = new URI({name: 'gaogao'}); } catch (err) { @@ -45,12 +45,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_032 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_032', 0, function () { try { let that = new URI('ht/tp://username:pas sword@host:8080/directory/file?foo=1&bar=2'); } catch (err) { @@ -59,12 +59,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_030 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_030', 0, function () { try { let that = new URI('http://username:password@[::]:8080/directory/file?Query#gaogao faofao'); } catch (err) { @@ -73,12 +73,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_028 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_028', 0, function () { try { let that = new URI('http://username:password@host:8080/directory/file?foo^=1&bar=2#gaogaofaofao'); } catch (err) { @@ -87,12 +87,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor006 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_013 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor006', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_013', 0, function () { try { let that = new URI('1http://username:password@host:8080/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -101,12 +101,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor007 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_014 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor007', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_014', 0, function () { try { let that = new URI('ht@tp://username:password@host:8080/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -115,12 +115,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor008 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_026 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor008', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_026', 0, function () { try { let that = new URI('http://username:password@[::]:80r80/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -129,12 +129,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor009 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_021 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor009', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_021', 0, function () { try { let that = new URI('http://username:password@[::12:55:8080/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -143,12 +143,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor010 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_018 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor010', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_018', 0, function () { try { let that = new URI('http://username:pa^ssword@[::12:55]:8080/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -157,12 +157,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor011 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_020 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor011', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_020', 0, function () { try { let that = new URI('http://username:password@[::1你2:55]:8080/directory/file?foo=1&bar=2#gaogaofaofao'); } catch (err) { @@ -171,12 +171,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor012 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_001 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor012', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_001', 0, function () { let gaogao = new URI('http://gg:gaogao@www.baidu.com:99/path/path?query#fagment'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("gg:gaogao@www.baidu.com:99"); @@ -209,12 +209,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor014 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_002 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor014', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_002', 0, function () { let gaogao = new URI('http://gg:gaogao@[::]:88/path/path66?foooo#gaogao'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("gg:gaogao@[::]:88"); @@ -247,12 +247,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor016 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_003 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor016', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_003', 0, function () { let gaogao = new URI('http://gg:gaogao@[::FFFF:129.144.52.38]:99/path/path?query#fagment'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("gg:gaogao@[::FFFF:129.144.52.38]:99"); @@ -343,12 +343,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor021 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_004 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor021', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_004', 0, function () { let gaogao = new URI('http://gg:gaogao@199.98.55.44:99/path/path?query#fagment'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("gg:gaogao@199.98.55.44:99"); @@ -362,12 +362,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor022 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_005 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor022', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_005', 0, function () { let gaogao = new URI('http://16.9.5.4:99/path/path?query#fagment'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("16.9.5.4:99"); @@ -400,12 +400,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor024 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_006 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor024', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_006', 0, function () { let gaogao = new URI('http://user@49.10pe8.54.12:80/path/path23?query#qwer'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("user@49.10pe8.54.12:80"); @@ -419,12 +419,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor025 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_007 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor025', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_007', 0, function () { let gaogao = new URI('http://user@www.baidu.com/path/path23?query#qwer'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("user@www.baidu.com"); @@ -438,12 +438,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor026 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_008 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor026', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_008', 0, function () { let gaogao = new URI('http://user@www.hw.com:77/path/path23?query#qwer'); expect(gaogao.scheme).assertEqual("http"); expect(gaogao.authority).assertEqual("user@www.hw.com:77"); @@ -457,12 +457,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testConstructor027 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_009 * @tc.desc: Constructs a URI by parsing the given string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testConstructor027', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_009', 0, function () { let gaogao = new URI('ht2tp://user@www.h12343w.com:77/path/path23?query#qwer'); expect(gaogao.scheme).assertEqual("ht2tp"); expect(gaogao.authority).assertEqual("user@www.h12343w.com:77"); @@ -565,12 +565,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testEquals002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_034 * @tc.desc: Tests this URI for equality with another object. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testEquals002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_034', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path1?query#fagment'); let gaogao1 = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path1?query#fagment'); let res = gaogao.equals(gaogao1); @@ -578,12 +578,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testEquals003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_035 * @tc.desc: Tests this URI for equality with another object. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testEquals003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_035', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path1?query#fagment'); let gaogao1 = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path1?query#fagment123'); let res = gaogao.equals(gaogao1); @@ -617,12 +617,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testNormalize001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_036 * @tc.desc: Normalizes this URI's path. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testNormalize001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_036', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path/66./../././mm/.././path1?query#fagment'); let res = gaogao.normalize(); expect(res.path).assertEqual("/path/path1"); @@ -630,12 +630,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testNormalize002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_037 * @tc.desc: Normalizes this URI's path. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testNormalize002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_037', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/../../path?query#fagment'); let res = gaogao.normalize(); expect(res.path).assertEqual("/../../path"); @@ -656,12 +656,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testNormalize004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_038 * @tc.desc: Normalizes this URI's path. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testNormalize004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_038', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/../path/.././../aa/bb/cc?query'); let res = gaogao.normalize(); expect(res.path).assertEqual("/../../aa/bb/cc"); @@ -669,12 +669,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testNormalize005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_039 * @tc.desc: Normalizes this URI's path. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testNormalize005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_039', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/./path/./aa/bb/cc?query#fagment'); let res = gaogao.normalize(); expect(res.path).assertEqual("/path/aa/bb/cc"); @@ -682,12 +682,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testToString001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_042 * @tc.desc: Returns the content of this URI as a US-ASCII string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testToString001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_042', 0, function () { let gaogao = new URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/../../path/.././../aa/bb/cc?query#fagment'); let res = gaogao.toString(); expect(res).assertEqual('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/../../path/.././../aa/bb/cc?query#fagment'); @@ -718,12 +718,12 @@ describe('UriTest', function () { }) /** - * @tc.name: testToString004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_043 * @tc.desc: Returns the content of this URI as a US-ASCII string. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testToString004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_043', 0, function () { let gaogao = new URI('http://gg:gao你好gao@199.98.55.44:99/path/p你好ath?qu你好ery#fag你好ment'); let res = gaogao.toString(); expect(res).assertEqual('http://gg:gao%E4%BD%A0%E5%A5%BDgao@199.98.55.44:99/path/' + @@ -743,24 +743,24 @@ describe('UriTest', function () { }) /** - * @tc.name: testCheckIsAbsolute001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_041 * @tc.desc: Tells whether or not this URI is absolute. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testCheckIsAbsolute001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_041', 0, function () { let gaogao = new URI('f/tp://username:password@www.baidu.com:88/path?query#fagment'); let res = gaogao.checkIsAbsolute(); expect(res).assertEqual(false); }) /** - * @tc.name: testCheckIsAbsolute002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR34_040 * @tc.desc: Tells whether or not this URI is absolute. * @tc.require: AR000GFB2S * @tc.author: zhaoduwei */ - it('testCheckIsAbsolute002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR34_040', 0, function () { let gaogao = new URI('ftp://username:password@www.baidu.com:88/path?query#fagment'); let res = gaogao.checkIsAbsolute(); expect(res).assertEqual(true); 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 31b13999874dc65561fe66c17d5beccde9d59e0e..8f20bd7db8c71af00ecff38f5b13efaf38882559 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 @@ -961,611 +961,611 @@ describe('TextEncoderTest', function () { describe('ScopeTest', function () { /** - * @tc.name: testGetLower001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-001 * @tc.desc: Obtains the lower bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetLower001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-001', 0, function () { var result = range.getLower() expect(result.toString()).assertEqual('30') }) /** - * @tc.name: testGetLower002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-002 * @tc.desc: Obtains the lower bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetLower002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-002', 0, function () { var result = rangeFir.getLower() expect(result.toString()).assertEqual('35') }) /** - * @tc.name: testGetLower003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-003 * @tc.desc: Obtains the lower bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetLower003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-003', 0, function () { var result = rangeSec.getLower() expect(result.toString()).assertEqual('20') }) /** - * @tc.name: testGetLower004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-004 * @tc.desc: Obtains the lower bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetLower004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-004', 0, function () { var result = rangeThi.getLower() expect(result.toString()).assertEqual('20') }) /** - * @tc.name: testGetLower005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-005 * @tc.desc: Obtains the lower bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetLower005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-005', 0, function () { var result = rangeFif.getLower() expect(result.toString()).assertEqual('35') }) /** - * @tc.name: testGetUpper001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-006 * @tc.desc: Obtains the upper bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetUpper001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-006', 0, function () { var result = range.getUpper() expect(result.toString()).assertEqual('40') }) /** - * @tc.name: testGetUpper002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-007 * @tc.desc: Obtains the upper bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetUpper002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-007', 0, function () { var result = rangeFir.getUpper() expect(result.toString()).assertEqual('39') }) /** - * @tc.name: testGetUpper003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-008 * @tc.desc: Obtains the upper bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetUpper003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-008', 0, function () { var result = rangeSec.getUpper() expect(result.toString()).assertEqual('45') }) /** - * @tc.name: testGetUpper004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-009 * @tc.desc: Obtains the upper bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetUpper004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-009', 0, function () { var result = rangeThi.getUpper() expect(result.toString()).assertEqual('35') }) /** - * @tc.name: testGetUpper005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-010 * @tc.desc: Obtains the upper bound of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testGetUpper005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-010', 0, function () { var result = rangeFif.getUpper() expect(result.toString()).assertEqual('45') }) /** - * @tc.name: testClamp001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-011 * @tc.desc: Clamps a given value to the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testClamp001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-011', 0, function () { var result =range.clamp(tempLess) expect(result.toString()).assertEqual('30') }) /** - * @tc.name: testClamp002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-012 * @tc.desc: Clamps a given value to the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testClamp002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-012', 0, function () { var result =range.clamp(tempMiDF) expect(result.toString()).assertEqual('35') }) /** - * @tc.name: testClamp003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-013 * @tc.desc: Clamps a given value to the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testClamp003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-013', 0, function () { var result =range.clamp(tempMore) expect(result.toString()).assertEqual('40') }) /** - * @tc.name: testClamp004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-014 * @tc.desc: Clamps a given value to the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testClamp004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-014', 0, function () { var result =range.clamp(tempLower) expect(result.toString()).assertEqual('30') }) /** - * @tc.name: testClamp005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-015 * @tc.desc: Clamps a given value to the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testClamp005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-015', 0, function () { var result =range.clamp(tempUpper) expect(result.toString()).assertEqual('40') }) /** - * @tc.name: testContains001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-016 * @tc.desc: Checks whether a given value is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-016', 0, function () { var result = range.contains(tempLess) expect(result).assertEqual(false) }) /** - * @tc.name: testContains002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-017 * @tc.desc: Checks whether a given value is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-017', 0, function () { var result = range.contains(tempMiDF) expect(result).assertEqual(true) }) /** - * @tc.name: testContains003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-018 * @tc.desc: Checks whether a given value is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-018', 0, function () { var result = range.contains(tempMore) expect(result).assertEqual(false) }) /** - * @tc.name: testContains004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-019 * @tc.desc: Checks whether a given value is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-019', 0, function () { var result = range.contains(tempLower) expect(result).assertEqual(true) }) /** - * @tc.name: testContains005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-020 * @tc.desc: Checks whether a given value is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-020', 0, function () { var result = range.contains(tempUpper) expect(result).assertEqual(true) }) /** - * @tc.name: testContains001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-021 * @tc.desc: Checks whether a given range is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-021', 0, function () { var result = range.contains(rangeFir) expect(result).assertEqual(true) }) /** - * @tc.name: testContains002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-022 * @tc.desc: Checks whether a given range is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-022', 0, function () { var result = range.contains(rangeSec) expect(result).assertEqual(false) }) /** - * @tc.name: testContains003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-023 * @tc.desc: Checks whether a given range is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-023', 0, function () { var result = range.contains(rangeThi) expect(result).assertEqual(false) }) /** - * @tc.name: testContains004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-024 * @tc.desc: Checks whether a given range is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-024', 0, function () { var result = range.contains(rangeFif) expect(result).assertEqual(false) }) /** - * @tc.name: testContains005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-025 * @tc.desc: Checks whether a given range is within the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testContains005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-025', 0, function () { var result = range.contains(range) expect(result).assertEqual(true) }) /** - * @tc.name: testExpand001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-026 * @tc.desc: Creates the smallest range that includes the current range and the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-026', 0, function () { var result = range.expand(tempMiDF, tempMidS) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-027 * @tc.desc: Creates the smallest range that includes the current range and the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-027', 0, function () { var result = range.expand(tempLess, tempMore) expect(result.toString()).assertEqual('[20, 45]') }) /** - * @tc.name: testExpand003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-028 * @tc.desc: Creates the smallest range that includes the current range and the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-028', 0, function () { var result = range.expand(tempLess, tempMiDF) expect(result.toString()).assertEqual('[20, 40]') }) /** - * @tc.name: testExpand004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-029 * @tc.desc: Creates the smallest range that includes the current range and the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-029', 0, function () { var result = range.expand(tempMiDF, tempMore) expect(result.toString()).assertEqual('[30, 45]') }) /** - * @tc.name: testExpand005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-030 * @tc.desc: Creates the smallest range that includes the current range and the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-030', 0, function () { var result = range.expand(tempLower, tempUpper) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-031 * @tc.desc: Creates the smallest range that includes the current range and a given range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-031', 0, function () { var result = range.expand(rangeFir) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-032 * @tc.desc: Creates the smallest range that includes the current range and a given range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-032', 0, function () { var result = range.expand(rangeSec) expect(result.toString()).assertEqual('[20, 45]') }) /** - * @tc.name: testExpand003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-033 * @tc.desc: Creates the smallest range that includes the current range and a given range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-033', 0, function () { var result = range.expand(rangeThi) expect(result.toString()).assertEqual('[20, 40]') }) /** - * @tc.name: testExpand004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-034 * @tc.desc: Creates the smallest range that includes the current range and a given range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-034', 0, function () { var result = range.expand(rangeFif) expect(result.toString()).assertEqual('[30, 45]') }) /** - * @tc.name: testExpand005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-035 * @tc.desc: Creates the smallest range that includes the current range and a given range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-035', 0, function () { var result = range.expand(range) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-036 * @tc.desc: Creates the smallest range that includes the current range and a given value. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-036', 0, function () { var result = range.expand(tempMiDF) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-037 * @tc.desc: Creates the smallest range that includes the current range and a given value. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-037', 0, function () { var result = range.expand(tempLess) expect(result.toString()).assertEqual('[20, 40]') }) /** - * @tc.name: testExpand003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-038 * @tc.desc: Creates the smallest range that includes the current range and a given value. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-038', 0, function () { var result = range.expand(tempMore) expect(result.toString()).assertEqual('[30, 45]') }) /** - * @tc.name: testExpand004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-039 * @tc.desc: Creates the smallest range that includes the current range and a given value. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-039', 0, function () { var result = range.expand(tempLower) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testExpand005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-040 * @tc.desc: Creates the smallest range that includes the current range and a given value. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testExpand005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-040', 0, function () { var result = range.expand(tempUpper) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testInstersect001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-041 * @tc.desc: Returns the intersection of a given range and the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-041', 0, function () { var result = range.intersect(rangeFir) expect(result.toString()).assertEqual('[35, 39]') }) /** - * @tc.name: testInstersect002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-042 * @tc.desc: Returns the intersection of a given range and the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-042', 0, function () { var result = range.intersect(rangeSec) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testInstersect003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-043 * @tc.desc: Returns the intersection of a given range and the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-043', 0, function () { var result = range.intersect(rangeThi) expect(result.toString()).assertEqual('[30, 35]') }) /** - * @tc.name: testInstersect004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-044 * @tc.desc: Returns the intersection of a given range and the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-044', 0, function () { var result = range.intersect(rangeFif) expect(result.toString()).assertEqual('[35, 40]') }) /** - * @tc.name: testInstersect005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-045 * @tc.desc: Returns the intersection of a given range and the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-045', 0, function () { var result = range.intersect(range) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testInstersect001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-046 * @tc.desc: Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-046', 0, function () { var result = range.intersect(tempMiDF, tempMidS) expect(result.toString()).assertEqual('[35, 39]') }) /** - * @tc.name: testInstersect002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-047 * @tc.desc: Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-047', 0, function () { var result = range.intersect(tempLess, tempMore) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testInstersect003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-048 * @tc.desc: Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-048', 0, function () { var result = range.intersect(tempLess, tempMiDF) expect(result.toString()).assertEqual('[30, 35]') }) /** - * @tc.name: testInstersect004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-049 * @tc.desc: Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-049', 0, function () { var result = range.intersect(tempMiDF, tempMore) expect(result.toString()).assertEqual('[35, 40]') }) /** - * @tc.name: testInstersect005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-050 * @tc.desc: Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testInstersect005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-050', 0, function () { var result = range.intersect(tempLower, tempUpper) expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testToString001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-051 * @tc.desc: Obtains a string representation of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testToString001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-051', 0, function () { var result = range.toString() expect(result.toString()).assertEqual('[30, 40]') }) /** - * @tc.name: testToString002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-052 * @tc.desc: Obtains a string representation of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testToString002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-052', 0, function () { var result = rangeFir.toString() expect(result.toString()).assertEqual('[35, 39]') }) /** - * @tc.name: testToString003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-053 * @tc.desc: Obtains a string representation of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testToString003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-053', 0, function () { var result = rangeSec.toString() expect(result.toString()).assertEqual('[20, 45]') }) /** - * @tc.name: testToString004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-054 * @tc.desc: Obtains a string representation of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testToString004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-054', 0, function () { var result = rangeThi.toString() expect(result.toString()).assertEqual('[20, 35]') }) /** - * @tc.name: testToString005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR36-055 * @tc.desc: Obtains a string representation of the current range. * @tc.require: AR000GFB4U * @tc.author: jiangkai */ - it('testToString005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR36-055', 0, function () { var result = rangeFif.toString() expect(result.toString()).assertEqual('[35, 45]') }) @@ -1574,13 +1574,13 @@ describe('ScopeTest', function () { describe('Base64Test', function () { /** - * @tc.name: testEncodeSync001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_001 * @tc.desc: Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeSync001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_001', 0, function () { var that = new util.Base64() var array = new Uint8Array([115,49,51]); var rarray = new Uint8Array([99,122,69,122]); @@ -1591,13 +1591,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeSync002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_004 * @tc.desc: Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeSync002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_004', 0, function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); var rarray = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -1608,13 +1608,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeSync003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_005 * @tc.desc: Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeSync003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_005', 0, function () { var that = new util.Base64() var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105, 110,32,78,111,100,101,46,106,115]); @@ -1627,13 +1627,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeSync004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_002 * @tc.desc: Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeSync004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_002', 0, function () { var that = new util.Base64() var array = new Uint8Array([168, 174, 155, 255]); var rarray = new Uint8Array([113,75,54,98,47,119,61,61]); @@ -1644,13 +1644,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeSync005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_003 * @tc.desc: Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeSync005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_003', 0, function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); var rarray = new Uint8Array([81, 109, 70, 122, 90, 84, 89, 48]); @@ -1661,12 +1661,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToStringSync001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_006 * @tc.desc: Encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToStringSync001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_006', 0, function () { var that = new util.Base64() var array = new Uint8Array([115,49,51]); var result = that.encodeToStringSync(array) @@ -1674,12 +1674,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToStringSync002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_009 * @tc.desc: Encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToStringSync002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_009', 0, function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); var result = that.encodeToStringSync(array); @@ -1687,12 +1687,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToStringSync003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_010 * @tc.desc: Encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToStringSync003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_010', 0, function () { var that = new util.Base64() var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105,110, 32,78,111,100,101,46,106,115]); @@ -1701,12 +1701,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToStringSync004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_007 * @tc.desc: Encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToStringSync004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_007', 0, function () { var that = new util.Base64() var array = new Uint8Array([168, 174, 155, 255]); var result = that.encodeToStringSync(array); @@ -1714,12 +1714,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToStringSync005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_008 * @tc.desc: Encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToStringSync005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_008', 0, function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); var result = that.encodeToStringSync(array); @@ -1727,13 +1727,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_011 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_011', 0, function () { var that = new util.Base64() var buff = 'czEz'; var rarray = new Uint8Array([115,49,51]); @@ -1744,13 +1744,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_013 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_013', 0, function () { var that = new util.Base64() var buff = 'QmFzZTY0IE5vZGUuanM='; var rarray = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); @@ -1761,13 +1761,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_014 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_014', 0, function () { var that = new util.Base64() var buff = 'QmFzZTY0IEVuY29kaW5nIGluIE5vZGUuanM='; var rarray = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32, @@ -1779,13 +1779,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_012 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_012', 0, function () { var that = new util.Base64() var buff = 'qK6b/w=='; var rarray = new Uint8Array([168, 174, 155, 255]); @@ -1813,13 +1813,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_011 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_011', 0, function () { var that = new util.Base64() var array = new Uint8Array([99,122,69,122]); var rarray = new Uint8Array([115,49,51]); @@ -1830,13 +1830,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_013 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_013', 0, function () { var that = new util.Base64() var array = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); var rarray = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); @@ -1847,13 +1847,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_014 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_014', 0, function () { var that = new util.Base64() var array = new Uint8Array([81,109,70,122,90,84,89,48,73,69,86,117,89,50,57,107,97,87, 53,110,73,71,108,117,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -1866,13 +1866,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecodeSync004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_012 * @tc.desc: Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecodeSync004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR37_012', 0, function () { var that = new util.Base64() var array = new Uint8Array([113,75,54,98,47,119,61,61]); var rarray = new Uint8Array([168, 174, 155, 255]); @@ -1901,13 +1901,13 @@ describe('Base64Test', function () { //base64 EncodeAsync test /** - * @tc.name: testEncode001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_015 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncode001', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_015', 0, async function () { var that = await new util.Base64(); var array = new Uint8Array([115,49,51]); var rarray = new Uint8Array([99,122,69,122]); @@ -1919,13 +1919,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncode002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_018 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncode002', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_018', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); var rarray = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -1937,13 +1937,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncode003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_019 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncode003', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_019', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105,110,32, 78,111,100,101,46,106,115]); @@ -1957,13 +1957,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncode004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_016 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncode004', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_016', 0, async function () { var that = new util.Base64() var array = new Uint8Array([168, 174, 155, 255]); var rarray = new Uint8Array([113,75,54,98,47,119,61,61]); @@ -1975,13 +1975,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncode005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_017 * @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncode005', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_017', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); var rarray = new Uint8Array([81, 109, 70, 122, 90, 84, 89, 48]); @@ -1993,12 +1993,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToString001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_020 * @tc.desc: Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToString001', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_020', 0, async function () { var that = new util.Base64() var array = new Uint8Array([115,49,51]); that.encodeToString(array).then(val=>{ @@ -2007,12 +2007,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToString002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_023 * @tc.desc: Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToString002', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_023', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); that.encodeToString(array).then(val=>{ @@ -2021,12 +2021,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToString003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_024 * @tc.desc: Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToString003', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_024', 0, async function () { var that = new util.Base64() var array = new Uint8Array([81,109,70,122,90,84,89,48,73,69,86,117,89,50,57,107,97,87,53,110,73,71,108, 117,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -2036,12 +2036,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToString004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_021 * @tc.desc: Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToString004', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_021', 0, async function () { var that = new util.Base64() var array = new Uint8Array([168, 174, 155, 255]); that.encodeToString(array).then(val=>{ @@ -2050,12 +2050,12 @@ describe('Base64Test', function () { }) /** - * @tc.name: testEncodeToString005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_022 * @tc.desc: Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testEncodeToString005', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_022', 0, async function () { var that = new util.Base64() var array = new Uint8Array([66, 97, 115, 101, 54, 52]); that.encodeToString(array).then(val=>{ @@ -2064,13 +2064,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_025 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode001', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_025', 0, async function () { var that = new util.Base64() var buff = 'czEz'; var array = new Uint8Array([115,49,51]); @@ -2082,13 +2082,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_027 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode002', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_027', 0, async function () { var that = new util.Base64() var buff = 'QmFzZTY0IE5vZGUuanM='; var array = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); @@ -2100,13 +2100,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_028 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode003', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_028', 0, async function () { var that = new util.Base64() var buff = 'QmFzZTY0IEVuY29kaW5nIGluIE5vZGUuanM='; var array = new Uint8Array([66,97,115,101,54,52,32,69,110,99,111,100,105,110,103,32,105,110,32,78, @@ -2119,13 +2119,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_026 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode004', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_026', 0, async function () { var that = new util.Base64() var buff = 'qK6b/w=='; var array = new Uint8Array([168, 174, 155, 255]); @@ -2155,13 +2155,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_025 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode001', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_025', 0, async function () { var that = new util.Base64() var array = new Uint8Array([99,122,69,122]); var rarray = new Uint8Array([115,49,51]); @@ -2173,13 +2173,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_027 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode002', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_027', 0, async function () { var that = new util.Base64() var array = new Uint8Array([81,109,70,122,90,84,89,48,73,69,53,118,90,71,85,117,97,110,77,61]); var rarray = new Uint8Array([66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115]); @@ -2191,13 +2191,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_028 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode003', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_028', 0, async function () { var that = new util.Base64() var array = new Uint8Array([81,109,70,122,90,84,89,48,73,69,86,117,89,50,57,107,97,87,53,110,73,71,108, 117,73,69,53,118,90,71,85,117,97,110,77,61]); @@ -2211,13 +2211,13 @@ describe('Base64Test', function () { }) /** - * @tc.name: testDecode004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR37_026 * @tc.desc: Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @tc.require: AR000GFB2Q * @tc.author: bihu */ - it('testDecode004', 0, async function () { + it('SUB_Runtime_JSAPI_SR000GGR37_026', 0, async function () { var that = new util.Base64() var array = new Uint8Array([113,75,54,98,47,119,61,61]); var rarray = new Uint8Array([168, 174, 155, 255]); @@ -2250,12 +2250,12 @@ describe('Base64Test', function () { describe('RationalNumberFunTest', function () { /** - * @tc.name: testRationalNumberCreateRationalFromString001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_001 * @tc.desc: Creates a RationalNumber object based on a given string. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCreateRationalFromString001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_001', 0, function () { var pro = new util.RationalNumber(1, 2) var res = pro.createRationalFromString('-1:2') var result1 = res.valueOf() @@ -2263,12 +2263,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCreateRationalFromString002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_002 * @tc.desc: Creates a RationalNumber object based on a given string. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCreateRationalFromString002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_002', 0, function () { var pro = new util.RationalNumber(1, 2) var res = pro.createRationalFromString('+3/4') var result1 = res.valueOf() @@ -2276,12 +2276,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCreateRationalFromString003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_003 * @tc.desc: Creates a RationalNumber object based on a given string. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCreateRationalFromString003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_003', 0, function () { var pro = new util.RationalNumber(1, 2) var res = pro.createRationalFromString('+3:-4') var result1 = res.valueOf() @@ -2289,12 +2289,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCreateRationalFromString004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_004 * @tc.desc: Creates a RationalNumber object based on a given string. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCreateRationalFromString004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_004', 0, function () { var pro = new util.RationalNumber(1, 2) var res = pro.createRationalFromString('+2:4') var result1 = res.valueOf() @@ -2315,12 +2315,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCompare001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_010 * @tc.desc: Compares the current RationalNumber object with a given object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCompare001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_010', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(3, 4) var res = pro.compareTo(proc) @@ -2328,12 +2328,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCompare002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_007 * @tc.desc: Compares the current RationalNumber object with a given object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCompare002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_007', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(0, 0) var res = pro.compareTo(proc) @@ -2341,12 +2341,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCompare003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_011 * @tc.desc: Compares the current RationalNumber object with a given object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCompare003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_011', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(8, 3) var res = pro.compareTo(proc) @@ -2354,12 +2354,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCompare004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_005 * @tc.desc: Compares the current RationalNumber object with a given object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCompare004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_005', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(2, 1) var res = pro.compareTo(proc) @@ -2367,12 +2367,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberCompare005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_006 * @tc.desc: Compares the current RationalNumber object with a given object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberCompare005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_006', 0, function () { var pro = new util.RationalNumber(0, 0) var proc = new util.RationalNumber(2, 1) var res = pro.compareTo(proc) @@ -2380,12 +2380,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberEquals001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_016 * @tc.desc: Checks whether a given object is the same as the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberEquals001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_016', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(3, 4) var res = pro.equals(proc) @@ -2393,12 +2393,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberEquals002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_014 * @tc.desc: Checks whether a given object is the same as the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberEquals002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_014', 0, function () { var pro = new util.RationalNumber(2, 1) var proc = new util.RationalNumber(4, 2) var res = pro.equals(proc) @@ -2432,12 +2432,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberEquals005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_015 * @tc.desc: Checks whether a given object is the same as the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberEquals005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_015', 0, function () { var pro = new util.RationalNumber(-2, 0) var proc = new util.RationalNumber(2, 0) var res = pro.equals(proc) @@ -2457,12 +2457,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberValueOf002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_012 * @tc.desc: Obtains the value of the current RationalNumber object as a number. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberValueOf002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_012', 0, function () { var pro = new util.RationalNumber(2, 10) var res = pro.valueOf() expect(res).assertEqual(0.2) @@ -2481,12 +2481,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberValueOf004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_013 * @tc.desc: Obtains the value of the current RationalNumber object as a number. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberValueOf004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_013', 0, function () { var pro = new util.RationalNumber(4, 2) var res = pro.valueOf() expect(res).assertEqual(2) @@ -2505,24 +2505,24 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberGetCommonDivisor001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_017 * @tc.desc: Obtains the greatest common divisor of two specified numbers. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetCommonDivisor001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_017', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.getCommonDivisor(4, 8) expect(res).assertEqual(4) }) /** - * @tc.name: testRationalNumberGetCommonDivisor002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_018 * @tc.desc: Obtains the greatest common divisor of two specified numbers. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetCommonDivisor002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_018', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.getCommonDivisor(10, 15) expect(res).assertEqual(5) @@ -2541,12 +2541,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberGetCommonDivisor004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_019 * @tc.desc: Obtains the greatest common divisor of two specified numbers. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetCommonDivisor004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_019', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.getCommonDivisor(8, 16) expect(res).assertEqual(8) @@ -2565,12 +2565,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberGetDenominator001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_023 * @tc.desc: Obtains the denominator of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetDenominator001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_023', 0, function () { var pro = new util.RationalNumber(2, 1) var res = pro.getDenominator() expect(res).assertEqual(1) @@ -2589,12 +2589,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberGetDenominator003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_025 * @tc.desc: Obtains the denominator of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetDenominator003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_025', 0, function () { var pro = new util.RationalNumber(2, 0) var res = pro.getDenominator() expect(res).assertEqual(0) @@ -2625,36 +2625,48 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberGetNumerator001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_024 + * @tc.desc: Obtains the denominator of the current RationalNumber object. + * @tc.require: AR000GFB5A + * @tc.author: liuqiang + */ + it('SUB_Runtime_JSAPI_SR000GGR38_024', 0, function () { + var pro = new util.RationalNumber(6, -3) + var res = pro.getDenominator() + expect(res).assertEqual(1) + }) + + /** + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_021 * @tc.desc: Obtains the numerator of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetNumerator001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_021', 0, function () { var pro = new util.RationalNumber(-2, 1) var res = pro.getNumerator() expect(res).assertEqual(-2) }) /** - * @tc.name: testRationalNumberGetNumerator002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_022 * @tc.desc: Obtains the numerator of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetNumerator002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_022', 0, function () { var pro = new util.RationalNumber(0, 3) var res = pro.getNumerator() expect(res).assertEqual(0) }) /** - * @tc.name: testRationalNumberGetNumerator003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_020 * @tc.desc: Obtains the numerator of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberGetNumerator003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_020', 0, function () { var pro = new util.RationalNumber(2, 4) var res = pro.getNumerator() expect(res).assertEqual(1) @@ -2685,12 +2697,12 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberIsFinite001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_028 * @tc.desc: Checks whether the current RationalNumber object represents a finite value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsFinite001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_028', 0, function () { var pro = new util.RationalNumber(-2, 1) var res = pro.isFinite() expect(res).assertEqual(true) @@ -2709,24 +2721,24 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberIsFinite003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_026 * @tc.desc: Checks whether the current RationalNumber object represents a finite value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsFinite003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_026', 0, function () { var pro = new util.RationalNumber(2, 0) var res = pro.isFinite() expect(res).assertEqual(false) }) /** - * @tc.name: testRationalNumberIsFinite004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_027 * @tc.desc: Checks whether the current RationalNumber object represents a finite value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsFinite004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_027', 0, function () { var pro = new util.RationalNumber(1, 3) var res = pro.isFinite() expect(res).assertEqual(true) @@ -2745,48 +2757,48 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberIsNaN001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_030 * @tc.desc: Checks whether the current RationalNumber object represents a finite value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsNaN001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_030', 0, function () { var pro = new util.RationalNumber(-2, 1) var res = pro.isNaN() expect(res).assertEqual(false) }) /** - * @tc.name: testRationalNumberIsNaN002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_031 * @tc.desc: Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsNaN002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_031', 0, function () { var pro = new util.RationalNumber(0, 3) var res = pro.isNaN() expect(res).assertEqual(false) }) /** - * @tc.name: testRationalNumberIsNaN003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_029 * @tc.desc: Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsNaN003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_029', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.isNaN() expect(res).assertEqual(true) }) /** - * @tc.name: testRationalNumberIsNaN004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_032 * @tc.desc: Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsNaN004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_032', 0, function () { var pro = new util.RationalNumber(10, 0) var res = pro.isNaN() expect(res).assertEqual(false) @@ -2805,48 +2817,48 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberIsZero001 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_034 * @tc.desc: Checks whether the current RationalNumber object represents the value 0. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsZero001', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_034', 0, function () { var pro = new util.RationalNumber(-2, 1) var res = pro.isZero() expect(res).assertEqual(false) }) /** - * @tc.name: testRationalNumberIsZero002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_033 * @tc.desc: Checks whether the current RationalNumber object represents the value 0. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsZero002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_033', 0, function () { var pro = new util.RationalNumber(0, 3) var res = pro.isZero() expect(res).assertEqual(true) }) /** - * @tc.name: testRationalNumberIsZero003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_035 * @tc.desc: Checks whether the current RationalNumber object represents the value 0. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsZero003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_035', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.isZero() expect(res).assertEqual(false) }) /** - * @tc.name: testRationalNumberIsZero004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_036 * @tc.desc: Checks whether the current RationalNumber object represents the value 0. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberIsZero004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_036', 0, function () { var pro = new util.RationalNumber(10, 2) var res = pro.isZero() expect(res).assertEqual(false) @@ -2877,48 +2889,48 @@ describe('RationalNumberFunTest', function () { }) /** - * @tc.name: testRationalNumberToString002 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_037 * @tc.desc: Obtains a string representation of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberToString002', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_037', 0, function () { var pro = new util.RationalNumber(0, 0) var res = pro.toString() expect(res).assertEqual("NaN") }) /** - * @tc.name: testRationalNumberToString003 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_038 * @tc.desc: Obtains a string representation of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberToString003', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_038', 0, function () { var pro = new util.RationalNumber(3, 0) var res = pro.toString() expect(res).assertEqual("Infinity") }) /** - * @tc.name: testRationalNumberToString004 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_039 * @tc.desc: Obtains a string representation of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberToString004', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_039', 0, function () { var pro = new util.RationalNumber(-3, 0) var res = pro.toString() expect(res).assertEqual("-Infinity") }) /** - * @tc.name: testRationalNumberToString005 + * @tc.name: SUB_Runtime_JSAPI_SR000GGR38_040 * @tc.desc: Obtains a string representation of the current RationalNumber object. * @tc.require: AR000GFB5A * @tc.author: liuqiang */ - it('testRationalNumberToString005', 0, function () { + it('SUB_Runtime_JSAPI_SR000GGR38_040', 0, function () { var pro = new util.RationalNumber(2, 3) var res = pro.toString() expect(res).assertEqual('2/3')