From 62fe177b74a038b285987747fcd5839ee9499ecd Mon Sep 17 00:00:00 2001 From: shikai-123 Date: Tue, 22 Feb 2022 10:04:27 +0800 Subject: [PATCH] Signed-off-by: shikai-123 Modify test suite cannot test --- .../src/main/js/default/pages/index/index.js | 2 +- .../src/main/js/default/pages/index/index.js | 2 +- .../src/main/js/test/Process.test.js | 52 ------------------- .../src/main/js/default/pages/index/index.js | 2 +- .../src/main/js/default/pages/index/index.js | 2 +- .../src/main/js/default/pages/index/index.js | 2 +- .../src/main/js/default/pages/index/index.js | 2 +- 7 files changed, 6 insertions(+), 58 deletions(-) diff --git a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js index eff21d421..2a25e4cb3 100644 --- a/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/convertxml_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js index b508a9031..0e33931be 100644 --- a/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js index 6366482d7..4676112ac 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js @@ -2287,58 +2287,6 @@ describe('ChildProcessTest', function () { expect(Boolean(flag)).assertEqual(true) }) - /** - * @tc.name: testGetAvailableCores001 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores001', 0, function () { - var pri = process.getAvailableCores() - if(pri != null) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - }) - - /** - * @tc.name: testGetAvailableCores002 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores002', 0, function () { - for(var i=0; i<10; i++) - { - var pri = process.getAvailableCores() - if(pri != 0) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - } - }) - - /** - * @tc.name: testGetAvailableCores003 - * @tc.desc: Returns cpu cores available for the current process on a multi-core device. - * @tc.require: AR000GFB04 - * @tc.author: liwenqiang - */ - it('testGetAvailableCores003', 0, function () { - for(var i=0; i<100; i++) - { - var pri = process.getAvailableCores() - if(pri != 0) - { - var flag = new Boolean(true) - } - expect(Boolean(flag)).assertEqual(true) - } - }) - - /** * @tc.name: testGetEnvironmentVar001 * @tc.desc: Returns the system value for environment variables. diff --git a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js index 235baf671..b3e2a9019 100644 --- a/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/uri_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js index 22c25be53..dc029ade0 100644 --- a/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js @@ -16,7 +16,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js index eff21d421..2a25e4cb3 100644 --- a/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { diff --git a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js index eff21d421..2a25e4cb3 100644 --- a/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js +++ b/compileruntime/xml_lib_standard/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import file from '@system.file' import app from '@system.app' import device from '@system.device' import router from '@system.router' -import {Core} from 'deccjsunit/lite' +import {Core} from 'deccjsunit/index' export default { data: { -- GitLab