提交 62fe177b 编写于 作者: S shikai-123

Signed-off-by: shikai-123 <lifansheng1@huawei.com>

Modify test suite cannot test
上级 ee9149d0
......@@ -17,7 +17,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
......@@ -17,7 +17,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
......@@ -2287,58 +2287,6 @@ describe('ChildProcessTest', function () {
expect(Boolean(flag)).assertEqual(true)
})
/**
* @tc.name: testGetAvailableCores001
* @tc.desc: Returns cpu cores available for the current process on a multi-core device.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it('testGetAvailableCores001', 0, function () {
var pri = process.getAvailableCores()
if(pri != null)
{
var flag = new Boolean(true)
}
expect(Boolean(flag)).assertEqual(true)
})
/**
* @tc.name: testGetAvailableCores002
* @tc.desc: Returns cpu cores available for the current process on a multi-core device.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it('testGetAvailableCores002', 0, function () {
for(var i=0; i<10; i++)
{
var pri = process.getAvailableCores()
if(pri != 0)
{
var flag = new Boolean(true)
}
expect(Boolean(flag)).assertEqual(true)
}
})
/**
* @tc.name: testGetAvailableCores003
* @tc.desc: Returns cpu cores available for the current process on a multi-core device.
* @tc.require: AR000GFB04
* @tc.author: liwenqiang
*/
it('testGetAvailableCores003', 0, function () {
for(var i=0; i<100; i++)
{
var pri = process.getAvailableCores()
if(pri != 0)
{
var flag = new Boolean(true)
}
expect(Boolean(flag)).assertEqual(true)
}
})
/**
* @tc.name: testGetEnvironmentVar001
* @tc.desc: Returns the system value for environment variables.
......
......@@ -17,7 +17,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
......@@ -16,7 +16,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
......@@ -17,7 +17,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
......@@ -17,7 +17,7 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core} from 'deccjsunit/lite'
import {Core} from 'deccjsunit/index'
export default {
data: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册