未验证 提交 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 () {
})
/**
* @tc.name: testTid001
* @tc.name: SUB_Runtime_JSAPI_001
* @tc.desc: Returns the tid of the current thread.
* @tc.author: liwenqiang
*/
it('testTid001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.tid
if (pres > 0) {
var flag = new Boolean(true)
......@@ -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.author: liwenqiang
*/
it('testTid002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i < 5; i++) {
let pres = process.tid
if (pres > 0) {
......@@ -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.author: liwenqiang
*/
it('testTid003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i < 3; i++) {
let pres = process.tid
if (pres > 0) {
......@@ -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.author: liwenqiang
*/
it('testisIsolatedProcess001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true)
})
/**
* @tc.name: testisIsolatedProcess002
* @tc.name: SUB_Runtime_JSAPI_002
* @tc.desc: Returns a boolean whether the process is isolated.
* @tc.author: liwenqiang
*/
it('testisIsolatedProcess002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i < 3; i++) {
let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true)
......@@ -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.author: liwenqiang
*/
it('testisIsolatedProcess003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i < 5; i++) {
let pres = process.isIsolatedProcess()
expect(pres).assertEqual(true)
......@@ -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.author: liwenqiang
*/
it('testIsappuid001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let isorno = process.isAppUid(167)
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.author: liwenqiang
*/
it('testIsappuid002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
let isorno = process.isAppUid(123)
expect(isorno).assertEqual(false)
})
......@@ -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.author: liwenqiang
*/
it('testIs64Bit001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let isorno = process.is64Bit()
if (isorno) {
expect(isorno).assertEqual(true)
......@@ -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.author: liwenqiang
*/
it('testIs64Bit002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) {
let isorno = process.is64Bit()
if (isorno) {
......@@ -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.author: liwenqiang
*/
it('testIs64Bit004', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) {
let isorno = process.is64Bit()
if (isorno) {
......@@ -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.author: liwenqiang
*/
it('testGetUidForName001',0, function () {
it('SUB_Runtime_JSAPI_001',0, function () {
let pres = process.getUidForName("root")
if (pres != -1) {
let flag = new Boolean(true)
......@@ -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.author: liwenqiang
*/
it('testGetUidForName002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) {
let pres = process.getUidForName("12356")
expect(pres).assertEqual(-1)
......@@ -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.author: liwenqiang
*/
it('testGetUidForName003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) {
let pres = process.getUidForName("12356")
expect(pres).assertEqual(-1)
......@@ -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.author: liwenqiang
*/
it('testGetThreadPriority001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let pres = process.tid
let pri = process.getThreadPriority(pres)
if (pri) {
......@@ -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.author: liwenqiang
*/
it('testGetThreadPriority002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
let pres = process.tid
for (let i=0; i<3; i++) {
let pri = process.getThreadPriority(pres)
......@@ -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.author: liwenqiang
*/
it('testGetThreadPriority003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
let pres = process.tid
for (let i=0; i<5; i++) {
let pri = process.getThreadPriority(pres)
......@@ -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
* @the system to the start of the process.
* @tc.author: liwenqiang
*/
it('testGetStartRealtime001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
for (let i=0; i<3; i++) {
let pri = process.getStartRealtime()
if (pri !== null) {
......@@ -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
* @the system to the start of the process.
* @tc.author: liwenqiang
*/
it('testGetStartRealtime002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
let pri = process.getStartRealtime()
if (pri !== null) {
var flag = new Boolean(true)
......@@ -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
* @the system to the start of the process.
* @tc.author: liwenqiang
*/
it('testGetStartRealtime003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) {
let pri = process.getStartRealtime()
if (pri !== null) {
......@@ -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)
* @taken from the start of the system to the start of the process.
* @tc.author: liwenqiang
*/
it('testGetStartRealtime004', 0, function () {
it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<8; i++) {
let pri = process.getStartRealtime()
if (pri !== null) {
......@@ -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
* @the system to the start of the process.
* @tc.author: liwenqiang
*/
it('testGetStartRealtime005', 0, function () {
it('testGetstartrealtime005', 0, function () {
for (let i=0; i<6; i++) {
let pri = process.getStartRealtime()
if (pri !== null) {
......@@ -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.author: liwenqiang
*/
it('testGetpastCpuTime002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
let pri = process.getPastCpuTime()
if (pri > 0) {
var flag = new Boolean(true)
......@@ -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.author: liwenqiang
*/
it('testGetpastCpuTime003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
for (let i=0; i<5; i++) {
let pri = process.getPastCpuTime()
if (pri > 0) {
......@@ -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.author: liwenqiang
*/
it('testGetpastCpuTime004', 0, function () {
it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<8; i++) {
let pri = process.getPastCpuTime()
if (pri > 0) {
......@@ -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.author: liwenqiang
*/
it('testGetSystemConfig001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let _SC_ARG_MAX = 0
let pri = process.getSystemConfig(_SC_ARG_MAX)
if (pri > 0) {
......@@ -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.author: liwenqiang
*/
it('testGetSystemConfig002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
let _SC_ARG_MAX = 0
for (let i=0; i<3; i++) {
let pri = process.getSystemConfig(_SC_ARG_MAX)
......@@ -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.author: liwenqiang
*/
it('testGetSystemConfig003', 0, function () {
it('SUB_Runtime_JSAPI_003', 0, function () {
let _SC_ARG_MAX = 0
for (let i=0; i<5; i++) {
let pri = process.getSystemConfig(_SC_ARG_MAX)
......@@ -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.author: liwenqiang
*/
it('testGetSystemConfig004', 0, function () {
it('SUB_Runtime_JSAPI_004', 0, function () {
let _SC_OPEN_MAX = 4
let pri = process.getSystemConfig(_SC_OPEN_MAX)
if (pri > 0) {
......@@ -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.author: liwenqiang
*/
it('testGetSystemConfig005', 0, function () {
it('SUB_Runtime_JSAPI_005', 0, function () {
let _SC_PAGESIZE = 8
let pri = process.getSystemConfig(_SC_PAGESIZE)
if (pri > 0) {
......@@ -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.author: liwenqiang
*/
it('testGetEnvironmentVar001', 0, function () {
it('SUB_Runtime_JSAPI_001', 0, function () {
let pri = process.getEnvironmentVar("USER")
if (pri != null) {
var flag = new Boolean(true)
......@@ -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.author: liwenqiang
*/
it('testGetEnvironmentVar002', 0, function () {
it('SUB_Runtime_JSAPI_002', 0, function () {
for (let i=0; i<3; i++) {
let pri = process.getEnvironmentVar("PATH")
if (pri != null) {
......@@ -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.author: liwenqiang
*/
it('testGetEnvironmentVar004', 0, function () {
it('SUB_Runtime_JSAPI_004', 0, function () {
for (let i=0; i<6; i++) {
let pri = process.getEnvironmentVar("USER")
if (pri != null) {
......@@ -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.author: liwenqiang
*/
it('testGetEnvironmentVar005', 0, function () {
it('SUB_Runtime_JSAPI_005', 0, function () {
for (let i=0; i<8; i++) {
let pri = process.getEnvironmentVar("USER")
if (pri != null) {
......@@ -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.author: liwenqiang
*/
it('testGetEnvironmentVar006', 0, function () {
it('SUB_Runtime_JSAPI_006', 0, function () {
for (let i=0; i<100; i++) {
let pri = process.getEnvironmentVar("i123")
if (pri == null) {
......@@ -876,4 +876,4 @@ describe('ChildProcessTest', function () {
}
}
})
})
\ No newline at end of file
})}
......@@ -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.author: maxiaodong
*/
it('testUrlGet002', 0, function () {
it('testUrlForEach002', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2")
var result = params.get("key2")
expect(result).assertEqual("value2")
})
/**
* @tc.name: testUrlGet003
* @tc.name: testUrlForEach003
* @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong
*/
it('testUrlGet003', 0, function () {
it('testUrlForEach003', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2")
params.append("5","JKL")
var result = params.get("5")
......@@ -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.author: maxiaodong
*/
it('testUrlGet004', 0, function () {
it('testUrlForEach004', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2")
var result = params.get("key1")
expect(result).assertEqual("value1")
})
/**
* @tc.name: testUrlGet005
* @tc.name: testUrlForEach005
* @tc.desc: Returns the first value associated to the given search parameter.
* @tc.author: maxiaodong
*/
it('testUrlGet005', 0, function () {
it('testUrlForEach005', 0, function () {
let params = new Url.URLSearchParams("key1=value1&key2=value2")
params.append("jss","JL")
var result = params.get("jss")
......@@ -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.author: maxiaodong
*/
it('testUrlSearchParamsToString001', 0, function () {
it('testUrlToString001', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b=大")
var result= params.toString()
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.author: maxiaodong
*/
it('testUrlSearchParamsToString002', 0, function () {
it('testUrlToString002', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b= 大")
params.append("1 12","QQQ")
var result= params.toString()
......@@ -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.author: maxiaodong
*/
it('testUrlSearchParamsToString003', 0, function () {
it('testUrlToString003', 0, function () {
let params = new Url.URLSearchParams("¥=)")
params.delete("5")
var result= params.toString()
......@@ -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.author: maxiaodong
*/
it('testUrlSearchParamsToString004', 0, function () {
it('testUrlToString004', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b=大&4=key4")
var result= params.toString()
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.author: maxiaodong
*/
it('testUrlSearchParamsToString005', 0, function () {
it('testUrlToString005', 0, function () {
let params = new Url.URLSearchParams("d=value1&c=value2&b= 大&4=key4&5=key5")
params.append("1 12","QQQ")
var result= params.toString()
......@@ -2064,4 +2064,4 @@ describe('UrlFunTest', function () {
var result = params.searchParams.toString();
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.
先完成此消息的编辑!
想要评论请 注册