未验证 提交 6515a2c7 编写于 作者: O openharmony_ci 提交者: Gitee

回退 'Pull Request !4467 : Modify the problem of the same name in the XTS test case'

上级 856db888
...@@ -320,11 +320,11 @@ describe('ChildProcessTest', function () { ...@@ -320,11 +320,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testTid001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the tid of the current thread. * @tc.desc: Returns the tid of the current thread.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testTid001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.tid let pres = process.tid
if (pres > 0) { if (pres > 0) {
var flag = new Boolean(true) var flag = new Boolean(true)
...@@ -333,11 +333,11 @@ describe('ChildProcessTest', function () { ...@@ -333,11 +333,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testTid002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the tid of the current thread. * @tc.desc: Returns the tid of the current thread.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testTid002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i < 5; i++) { for (let i=0; i < 5; i++) {
let pres = process.tid let pres = process.tid
if (pres > 0) { if (pres > 0) {
...@@ -348,11 +348,11 @@ describe('ChildProcessTest', function () { ...@@ -348,11 +348,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testTid003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the tid of the current thread. * @tc.desc: Returns the tid of the current thread.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testTid003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i < 3; i++) { for (let i=0; i < 3; i++) {
let pres = process.tid let pres = process.tid
if (pres > 0) { if (pres > 0) {
...@@ -364,21 +364,21 @@ describe('ChildProcessTest', function () { ...@@ -364,21 +364,21 @@ describe('ChildProcessTest', function () {
/** /**
* @tc.name: testisIsolatedProcess001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns a boolean whether the process is isolated. * @tc.desc: Returns a boolean whether the process is isolated.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testisIsolatedProcess001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.isIsolatedProcess() let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true) expect(pres).assertEqual(true)
}) })
/** /**
* @tc.name: testisIsolatedProcess002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns a boolean whether the process is isolated. * @tc.desc: Returns a boolean whether the process is isolated.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testisIsolatedProcess002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i < 3; i++) { for (let i=0; i < 3; i++) {
let pres = process.isIsolatedProcess() let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true) expect(pres).assertEqual(true)
...@@ -386,11 +386,11 @@ describe('ChildProcessTest', function () { ...@@ -386,11 +386,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testisIsolatedProcess003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns a boolean whether the process is isolated. * @tc.desc: Returns a boolean whether the process is isolated.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testisIsolatedProcess003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i < 5; i++) { for (let i=0; i < 5; i++) {
let pres = process.isIsolatedProcess() let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true) expect(pres).assertEqual(true)
...@@ -399,21 +399,21 @@ describe('ChildProcessTest', function () { ...@@ -399,21 +399,21 @@ describe('ChildProcessTest', function () {
/** /**
* @tc.name: testIsappuid001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns a boolean whether the specified uid belongs to a particular application. * @tc.desc: Returns a boolean whether the specified uid belongs to a particular application.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testIsappuid001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let isorno = process.isAppUid(167) let isorno = process.isAppUid(167)
expect(isorno).assertEqual(false) expect(isorno).assertEqual(false)
}) })
/** /**
* @tc.name: testIsappuid002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns a boolean whether the specified uid belongs to a particular application. * @tc.desc: Returns a boolean whether the specified uid belongs to a particular application.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testIsappuid002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
let isorno = process.isAppUid(123) let isorno = process.isAppUid(123)
expect(isorno).assertEqual(false) expect(isorno).assertEqual(false)
}) })
...@@ -449,11 +449,11 @@ describe('ChildProcessTest', function () { ...@@ -449,11 +449,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testIs64Bit001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testIs64Bit001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let isorno = process.is64Bit() let isorno = process.is64Bit()
if (isorno) { if (isorno) {
expect(isorno).assertEqual(true) expect(isorno).assertEqual(true)
...@@ -463,11 +463,11 @@ describe('ChildProcessTest', function () { ...@@ -463,11 +463,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testIs64Bit002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testIs64Bit002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let isorno = process.is64Bit() let isorno = process.is64Bit()
if (isorno) { if (isorno) {
...@@ -479,11 +479,11 @@ describe('ChildProcessTest', function () { ...@@ -479,11 +479,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testIs64Bit003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns a boolean whether the process is running in a 64-bit environment. * @tc.desc: Returns a boolean whether the process is running in a 64-bit environment.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testIs64Bit004', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let isorno = process.is64Bit() let isorno = process.is64Bit()
if (isorno) { if (isorno) {
...@@ -496,11 +496,11 @@ describe('ChildProcessTest', function () { ...@@ -496,11 +496,11 @@ describe('ChildProcessTest', function () {
/** /**
* @tc.name: testGetUidForName001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the uid based on the specified user name. * @tc.desc: Returns the uid based on the specified user name.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetUidForName001',0, function () { it('SUB_Runtime_JSAPI_001',0, function () {
let pres = process.getUidForName("root") let pres = process.getUidForName("root")
if (pres != -1) { if (pres != -1) {
let flag = new Boolean(true) let flag = new Boolean(true)
...@@ -509,11 +509,11 @@ describe('ChildProcessTest', function () { ...@@ -509,11 +509,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetUidForName002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the uid based on the specified user name. * @tc.desc: Returns the uid based on the specified user name.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetUidForName002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let pres = process.getUidForName("12356") let pres = process.getUidForName("12356")
expect(pres).assertEqual(-1) expect(pres).assertEqual(-1)
...@@ -521,11 +521,11 @@ describe('ChildProcessTest', function () { ...@@ -521,11 +521,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetUidForName003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the uid based on the specified user name. * @tc.desc: Returns the uid based on the specified user name.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetUidForName003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let pres = process.getUidForName("12356") let pres = process.getUidForName("12356")
expect(pres).assertEqual(-1) expect(pres).assertEqual(-1)
...@@ -534,11 +534,11 @@ describe('ChildProcessTest', function () { ...@@ -534,11 +534,11 @@ describe('ChildProcessTest', function () {
/** /**
* @tc.name: testGetThreadPriority001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the thread priority based on the specified tid. * @tc.desc: Returns the thread priority based on the specified tid.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetThreadPriority001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.tid let pres = process.tid
let pri = process.getThreadPriority(pres) let pri = process.getThreadPriority(pres)
if (pri) { if (pri) {
...@@ -548,11 +548,11 @@ describe('ChildProcessTest', function () { ...@@ -548,11 +548,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetThreadPriority002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the thread priority based on the specified tid. * @tc.desc: Returns the thread priority based on the specified tid.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetThreadPriority002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
let pres = process.tid let pres = process.tid
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let pri = process.getThreadPriority(pres) let pri = process.getThreadPriority(pres)
...@@ -564,11 +564,11 @@ describe('ChildProcessTest', function () { ...@@ -564,11 +564,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetThreadPriority003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the thread priority based on the specified tid. * @tc.desc: Returns the thread priority based on the specified tid.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetThreadPriority003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
let pres = process.tid let pres = process.tid
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let pri = process.getThreadPriority(pres) let pri = process.getThreadPriority(pres)
...@@ -580,12 +580,12 @@ describe('ChildProcessTest', function () { ...@@ -580,12 +580,12 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetStartRealtime001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of * @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.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetStartRealtime001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let pri = process.getStartRealtime() let pri = process.getStartRealtime()
if (pri !== null) { if (pri !== null) {
...@@ -596,12 +596,12 @@ describe('ChildProcessTest', function () { ...@@ -596,12 +596,12 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetStartRealtime002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of * @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.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetStartRealtime002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
let pri = process.getStartRealtime() let pri = process.getStartRealtime()
if (pri !== null) { if (pri !== null) {
var flag = new Boolean(true) var flag = new Boolean(true)
...@@ -610,12 +610,12 @@ describe('ChildProcessTest', function () { ...@@ -610,12 +610,12 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetStartRealtime003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of * @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.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetStartRealtime003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let pri = process.getStartRealtime() let pri = process.getStartRealtime()
if (pri !== null) { if (pri !== null) {
...@@ -626,12 +626,12 @@ describe('ChildProcessTest', function () { ...@@ -626,12 +626,12 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetStartRealtime004 * @tc.name: SUB_Runtime_JSAPI_004
* @tc.desc: Returns the elapsed real time (in milliseconds) * @tc.desc: Returns the elapsed real time (in milliseconds)
* @taken from the start of the system to the start of the process. * @taken from the start of the system to the start of the process.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetStartRealtime004', 0, function () { it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<8; i++) { for (let i=0; i<8; i++) {
let pri = process.getStartRealtime() let pri = process.getStartRealtime()
if (pri !== null) { if (pri !== null) {
...@@ -642,12 +642,12 @@ describe('ChildProcessTest', function () { ...@@ -642,12 +642,12 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetStartRealtime005 * @tc.name: testGetstartrealtime005
* @tc.desc: Returns the elapsed real time (in milliseconds) taken from the start of * @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.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetStartRealtime005', 0, function () { it('testGetstartrealtime005', 0, function () {
for (let i=0; i<6; i++) { for (let i=0; i<6; i++) {
let pri = process.getStartRealtime() let pri = process.getStartRealtime()
if (pri !== null) { if (pri !== null) {
...@@ -673,11 +673,11 @@ describe('ChildProcessTest', function () { ...@@ -673,11 +673,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetpastCpuTime002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetpastCpuTime002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
let pri = process.getPastCpuTime() let pri = process.getPastCpuTime()
if (pri > 0) { if (pri > 0) {
var flag = new Boolean(true) var flag = new Boolean(true)
...@@ -686,11 +686,11 @@ describe('ChildProcessTest', function () { ...@@ -686,11 +686,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetpastCpuTime003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetpastCpuTime003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let pri = process.getPastCpuTime() let pri = process.getPastCpuTime()
if (pri > 0) { if (pri > 0) {
...@@ -701,11 +701,11 @@ describe('ChildProcessTest', function () { ...@@ -701,11 +701,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetpastCpuTime004 * @tc.name: SUB_Runtime_JSAPI_004
* @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @tc.desc: Returns the cpu time (in milliseconds) from the time when the process starts to the current time.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetpastCpuTime004', 0, function () { it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<8; i++) { for (let i=0; i<8; i++) {
let pri = process.getPastCpuTime() let pri = process.getPastCpuTime()
if (pri > 0) { if (pri > 0) {
...@@ -716,11 +716,11 @@ describe('ChildProcessTest', function () { ...@@ -716,11 +716,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetSystemConfig001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the system configuration at runtime. * @tc.desc: Returns the system configuration at runtime.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetSystemConfig001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let _SC_ARG_MAX = 0 let _SC_ARG_MAX = 0
let pri = process.getSystemConfig(_SC_ARG_MAX) let pri = process.getSystemConfig(_SC_ARG_MAX)
if (pri > 0) { if (pri > 0) {
...@@ -730,11 +730,11 @@ describe('ChildProcessTest', function () { ...@@ -730,11 +730,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetSystemConfig002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the system configuration at runtime. * @tc.desc: Returns the system configuration at runtime.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetSystemConfig002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
let _SC_ARG_MAX = 0 let _SC_ARG_MAX = 0
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let pri = process.getSystemConfig(_SC_ARG_MAX) let pri = process.getSystemConfig(_SC_ARG_MAX)
...@@ -746,11 +746,11 @@ describe('ChildProcessTest', function () { ...@@ -746,11 +746,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetSystemConfig003 * @tc.name: SUB_Runtime_JSAPI_003
* @tc.desc: Returns the system configuration at runtime. * @tc.desc: Returns the system configuration at runtime.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetSystemConfig003', 0, function () { it('SUB_Runtime_JSAPI_003', 0, function () {
let _SC_ARG_MAX = 0 let _SC_ARG_MAX = 0
for (let i=0; i<5; i++) { for (let i=0; i<5; i++) {
let pri = process.getSystemConfig(_SC_ARG_MAX) let pri = process.getSystemConfig(_SC_ARG_MAX)
...@@ -762,11 +762,11 @@ describe('ChildProcessTest', function () { ...@@ -762,11 +762,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetSystemConfig004 * @tc.name: SUB_Runtime_JSAPI_004
* @tc.desc: Returns the system configuration at runtime. * @tc.desc: Returns the system configuration at runtime.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetSystemConfig004', 0, function () { it('SUB_Runtime_JSAPI_004', 0, function () {
let _SC_OPEN_MAX = 4 let _SC_OPEN_MAX = 4
let pri = process.getSystemConfig(_SC_OPEN_MAX) let pri = process.getSystemConfig(_SC_OPEN_MAX)
if (pri > 0) { if (pri > 0) {
...@@ -776,11 +776,11 @@ describe('ChildProcessTest', function () { ...@@ -776,11 +776,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetSystemConfig005 * @tc.name: SUB_Runtime_JSAPI_005
* @tc.desc: Returns the system configuration at runtime. * @tc.desc: Returns the system configuration at runtime.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetSystemConfig005', 0, function () { it('SUB_Runtime_JSAPI_005', 0, function () {
let _SC_PAGESIZE = 8 let _SC_PAGESIZE = 8
let pri = process.getSystemConfig(_SC_PAGESIZE) let pri = process.getSystemConfig(_SC_PAGESIZE)
if (pri > 0) { if (pri > 0) {
...@@ -790,11 +790,11 @@ describe('ChildProcessTest', function () { ...@@ -790,11 +790,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetEnvironmentVar001 * @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the system value for environment variables. * @tc.desc: Returns the system value for environment variables.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetEnvironmentVar001', 0, function () { it('SUB_Runtime_JSAPI_001', 0, function () {
let pri = process.getEnvironmentVar("USER") let pri = process.getEnvironmentVar("USER")
if (pri != null) { if (pri != null) {
var flag = new Boolean(true) var flag = new Boolean(true)
...@@ -803,11 +803,11 @@ describe('ChildProcessTest', function () { ...@@ -803,11 +803,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetEnvironmentVar002 * @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns the system value for environment variables. * @tc.desc: Returns the system value for environment variables.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetEnvironmentVar002', 0, function () { it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) { for (let i=0; i<3; i++) {
let pri = process.getEnvironmentVar("PATH") let pri = process.getEnvironmentVar("PATH")
if (pri != null) { if (pri != null) {
...@@ -833,11 +833,11 @@ describe('ChildProcessTest', function () { ...@@ -833,11 +833,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetEnvironmentVar004 * @tc.name: SUB_Runtime_JSAPI_004
* @tc.desc: Returns the system value for environment variables. * @tc.desc: Returns the system value for environment variables.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetEnvironmentVar004', 0, function () { it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<6; i++) { for (let i=0; i<6; i++) {
let pri = process.getEnvironmentVar("USER") let pri = process.getEnvironmentVar("USER")
if (pri != null) { if (pri != null) {
...@@ -848,11 +848,11 @@ describe('ChildProcessTest', function () { ...@@ -848,11 +848,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetEnvironmentVar005 * @tc.name: SUB_Runtime_JSAPI_005
* @tc.desc: Returns the system value for environment variables. * @tc.desc: Returns the system value for environment variables.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetEnvironmentVar005', 0, function () { it('SUB_Runtime_JSAPI_005', 0, function () {
for (let i=0; i<8; i++) { for (let i=0; i<8; i++) {
let pri = process.getEnvironmentVar("USER") let pri = process.getEnvironmentVar("USER")
if (pri != null) { if (pri != null) {
...@@ -863,11 +863,11 @@ describe('ChildProcessTest', function () { ...@@ -863,11 +863,11 @@ describe('ChildProcessTest', function () {
}) })
/** /**
* @tc.name: testGetEnvironmentVar006 * @tc.name: SUB_Runtime_JSAPI_006
* @tc.desc: Returns the system value for environment variables. * @tc.desc: Returns the system value for environment variables.
* @tc.author: liwenqiang * @tc.author: liwenqiang
*/ */
it('testGetEnvironmentVar006', 0, function () { it('SUB_Runtime_JSAPI_006', 0, function () {
for (let i=0; i<100; i++) { for (let i=0; i<100; i++) {
let pri = process.getEnvironmentVar("i123") let pri = process.getEnvironmentVar("i123")
if (pri == null) { if (pri == null) {
...@@ -876,4 +876,4 @@ describe('ChildProcessTest', function () { ...@@ -876,4 +876,4 @@ describe('ChildProcessTest', function () {
} }
} }
}) })
}) })}
\ No newline at end of file
...@@ -436,22 +436,22 @@ describe('UrlFunTest', function () { ...@@ -436,22 +436,22 @@ describe('UrlFunTest', function () {
}) })
/** /**
* @tc.name: testUrlGet002 * @tc.name: testUrlForEach002
* @tc.desc: Returns the first value associated to the given search parameter. * @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlGet002', 0, function () { it('testUrlForEach002', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2") let params = new Url.URLSearchParams("key1=value1&key2=value2")
var result = params.get("key2") var result = params.get("key2")
expect(result).assertEqual("value2") expect(result).assertEqual("value2")
}) })
/** /**
* @tc.name: testUrlGet003 * @tc.name: testUrlForEach003
* @tc.desc: Returns the first value associated to the given search parameter. * @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlGet003', 0, function () { it('testUrlForEach003', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2") let params = new Url.URLSearchParams("key1=value1&key2=value2")
params.append("5","JKL") params.append("5","JKL")
var result = params.get("5") var result = params.get("5")
...@@ -459,22 +459,22 @@ describe('UrlFunTest', function () { ...@@ -459,22 +459,22 @@ describe('UrlFunTest', function () {
}) })
/** /**
* @tc.name: testUrlGet004 * @tc.name: testUrlForEach004
* @tc.desc: Returns the first value associated to the given search parameter. * @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlGet004', 0, function () { it('testUrlForEach004', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2") let params = new Url.URLSearchParams("key1=value1&key2=value2")
var result = params.get("key1") var result = params.get("key1")
expect(result).assertEqual("value1") expect(result).assertEqual("value1")
}) })
/** /**
* @tc.name: testUrlGet005 * @tc.name: testUrlForEach005
* @tc.desc: Returns the first value associated to the given search parameter. * @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlGet005', 0, function () { it('testUrlForEach005', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2") let params = new Url.URLSearchParams("key1=value1&key2=value2")
params.append("jss","JL") params.append("jss","JL")
var result = params.get("jss") var result = params.get("jss")
...@@ -893,22 +893,22 @@ describe('UrlFunTest', function () { ...@@ -893,22 +893,22 @@ describe('UrlFunTest', function () {
}) })
/** /**
* @tc.name: testUrlSearchParamsToString001 * @tc.name: testUrlToString001
* @tc.desc: Returns a query string suitable for use in a URL. * @tc.desc: Returns a query string suitable for use in a URL.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlSearchParamsToString001', 0, function () { it('testUrlToString001', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b=大") let params = new Url.URLSearchParams("d=value1&c=value2&b=大")
var result= params.toString() var result= params.toString()
expect(result).assertEqual("d=value1&c=value2&b=%E5%A4%A7") expect(result).assertEqual("d=value1&c=value2&b=%E5%A4%A7")
}) })
/** /**
* @tc.name: testUrlSearchParamsToString002 * @tc.name: testUrlToString002
* @tc.desc: Returns a query string suitable for use in a URL. * @tc.desc: Returns a query string suitable for use in a URL.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlSearchParamsToString002', 0, function () { it('testUrlToString002', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b= 大") let params = new Url.URLSearchParams("d=value1&c=value2&b= 大")
params.append("1 12","QQQ") params.append("1 12","QQQ")
var result= params.toString() var result= params.toString()
...@@ -916,11 +916,11 @@ describe('UrlFunTest', function () { ...@@ -916,11 +916,11 @@ describe('UrlFunTest', function () {
}) })
/** /**
* @tc.name: testUrlSearchParamsToString003 * @tc.name: testUrlToString003
* @tc.desc: Returns a query string suitable for use in a URL. * @tc.desc: Returns a query string suitable for use in a URL.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlSearchParamsToString003', 0, function () { it('testUrlToString003', 0, function () {
let params = new Url.URLSearchParams("¥=)") let params = new Url.URLSearchParams("¥=)")
params.delete("5") params.delete("5")
var result= params.toString() var result= params.toString()
...@@ -928,22 +928,22 @@ describe('UrlFunTest', function () { ...@@ -928,22 +928,22 @@ describe('UrlFunTest', function () {
}) })
/** /**
* @tc.name: testUrlSearchParamsToString004 * @tc.name: testUrlToString004
* @tc.desc: Returns a query string suitable for use in a URL. * @tc.desc: Returns a query string suitable for use in a URL.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlSearchParamsToString004', 0, function () { it('testUrlToString004', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b=大&4=key4") let params = new Url.URLSearchParams("d=value1&c=value2&b=大&4=key4")
var result= params.toString() var result= params.toString()
expect(result).assertEqual("d=value1&c=value2&b=%E5%A4%A7&4=key4") expect(result).assertEqual("d=value1&c=value2&b=%E5%A4%A7&4=key4")
}) })
/** /**
* @tc.name: testUrlSearchParamsToString005 * @tc.name: testUrlToString005
* @tc.desc: Returns a query string suitable for use in a URL. * @tc.desc: Returns a query string suitable for use in a URL.
* @tc.author: maxiaodong * @tc.author: maxiaodong
*/ */
it('testUrlSearchParamsToString005', 0, function () { it('testUrlToString005', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b= 大&4=key4&5=key5") let params = new Url.URLSearchParams("d=value1&c=value2&b= 大&4=key4&5=key5")
params.append("1 12","QQQ") params.append("1 12","QQQ")
var result= params.toString() var result= params.toString()
...@@ -2064,4 +2064,4 @@ describe('UrlFunTest', function () { ...@@ -2064,4 +2064,4 @@ describe('UrlFunTest', function () {
var result = params.searchParams.toString(); var result = params.searchParams.toString();
expect(result).assertEqual('abc=123&def=456') expect(result).assertEqual('abc=123&def=456')
}) })
}) })}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册