diff --git a/customization/BUILD.gn b/customization/BUILD.gn
index ac9b94ea54db58019b92a967031804291ba9a47c..1650a93888bd0c396a5cd807479b5a158afb4001 100755
--- a/customization/BUILD.gn
+++ b/customization/BUILD.gn
@@ -17,7 +17,6 @@ group("customization") {
testonly = true
if (is_standard_system) {
deps = [
- "cust/custjs:custjs_test",
"enterprise_device_management:edm_test_grop",
]
}
diff --git a/customization/cust/custjs/BUILD.gn b/customization/cust/custjs/BUILD.gn
deleted file mode 100755
index f1b033dcac6fc01c9628f4bd5537a7c8bec9abce..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/BUILD.gn
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (C) 2022 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("custjs_test") {
- hap_profile = "./src/main/config.json"
- deps = [
- ":custjs_assets",
- ":custjs_resources",
- ]
- certificate_profile = "./signature/openharmony_sx.p7b"
- hap_name = "ActsCustJsTest"
-}
-ohos_js_assets("custjs_assets") {
- source_dir = "./src/main/js/default"
-}
-ohos_resources("custjs_resources") {
- sources = [ "./src/main/resources" ]
- hap_profile = "./src/main/config.json"
-}
diff --git a/customization/cust/custjs/Test.json b/customization/cust/custjs/Test.json
deleted file mode 100755
index a13c18a751e576a0a29b74fa479365a69e109b88..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/Test.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "description": "Configuration for cust js api Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "300000",
- "package": "ohos.cust.test",
- "shell-timeout": "60000"
- },
- "kits": [
- {
- "test-file-name": [
- "ActsCustJsTest.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- },
- {
- "type": "ShellKit",
- "run-command": [
- "mkdir -p /system/custxmltest/",
- "mkdir -p /sys_prod/custxmltest/",
- "touch /system/custxmltest/system.xml",
- "touch /system/custxmltest/both.xml",
- "touch /sys_prod/custxmltest/both.xml",
- "touch /sys_prod/custxmltest/user.xml"
- ]
- }
- ]
-}
diff --git a/customization/cust/custjs/signature/openharmony_sx.p7b b/customization/cust/custjs/signature/openharmony_sx.p7b
deleted file mode 100755
index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..0000000000000000000000000000000000000000
Binary files a/customization/cust/custjs/signature/openharmony_sx.p7b and /dev/null differ
diff --git a/customization/cust/custjs/src/main/config.json b/customization/cust/custjs/src/main/config.json
deleted file mode 100755
index aed60bfda82821d52ea1610d74ec5d9efc380e0c..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/config.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "app": {
- "bundleName": "ohos.cust.test",
- "vendor": "acts",
- "version": {
- "code": 1000000,
- "name": "1.0.0"
- },
- "apiVersion": {
- "compatible": 4,
- "target": 5
- }
- },
- "deviceConfig": {},
- "module": {
- "package": "ohos.cust.test",
- "name": ".MyApplication",
- "deviceType": [
- "phone"
- ],
- "distro": {
- "deliveryWithInstall": true,
- "moduleName": "entry",
- "moduleType": "entry"
- },
- "abilities": [
- {
- "visible": true,
- "skills": [
- {
- "entities": [
- "entity.system.home"
- ],
- "actions": [
- "action.system.home"
- ]
- }
- ],
- "name": "ohos.cust.test.MainAbility",
- "icon": "$media:icon",
- "description": "$string:mainability_description",
- "label": "$string:app_name",
- "type": "page",
- "launchType": "standard"
- }
- ],
- "js": [
- {
- "pages": [
- "pages/index/index"
- ],
- "name": "default",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": false
- }
- }
- ]
- }
-}
diff --git a/customization/cust/custjs/src/main/js/default/app.js b/customization/cust/custjs/src/main/js/default/app.js
deleted file mode 100755
index 63709dbda6847e0b57ac6594c3d772758ed5fd6d..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/app.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (C) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export default {
- onCreate() {
- console.info('TestApplication onCreate');
- },
- onDestroy() {
- console.info('TestApplication onDestroy');
- }
-};
diff --git a/customization/cust/custjs/src/main/js/default/i18n/en-US.json b/customization/cust/custjs/src/main/js/default/i18n/en-US.json
deleted file mode 100755
index 136dc546ee59704b87b0a301c0e6df21b0cc8350..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/i18n/en-US.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "Global",
- "world": "System"
- }
-}
\ No newline at end of file
diff --git a/customization/cust/custjs/src/main/js/default/i18n/zh-CN.json b/customization/cust/custjs/src/main/js/default/i18n/zh-CN.json
deleted file mode 100755
index 43f49ec631aadd96361fc79cab84a05fbfa866fe..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/i18n/zh-CN.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "全球化",
- "world": "子系统"
- }
-}
\ No newline at end of file
diff --git a/customization/cust/custjs/src/main/js/default/pages/index/index.css b/customization/cust/custjs/src/main/js/default/pages/index/index.css
deleted file mode 100755
index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/customization/cust/custjs/src/main/js/default/pages/index/index.hml b/customization/cust/custjs/src/main/js/default/pages/index/index.hml
deleted file mode 100755
index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/customization/cust/custjs/src/main/js/default/pages/index/index.js b/customization/cust/custjs/src/main/js/default/pages/index/index.js
deleted file mode 100755
index 1f37bf2ade4a59364f9d93c08fbc62b8b3aa8cb3..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/pages/index/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (C) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {Core, ExpectExtend} from 'deccjsunit/index'
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- },
- onShow() {
- console.info('onShow finish')
- const core = Core.getInstance()
- const expectExtend = new ExpectExtend({
- 'id': 'extend'
- })
- core.addService('expect', expectExtend)
- core.init()
-
- const configService = core.getDefaultService('config')
- configService.setConfig(this)
-
- require('../../test/List.test')
- core.execute()
- },
- onReady() {
- },
-}
diff --git a/customization/cust/custjs/src/main/js/default/test/Cust.test.js b/customization/cust/custjs/src/main/js/default/test/Cust.test.js
deleted file mode 100755
index 0ebd311ff5509887697b579d0c1dcd04e7d6b64e..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/test/Cust.test.js
+++ /dev/null
@@ -1,277 +0,0 @@
-/*
- * Copyright (C) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import configPolicy from '@ohos.configPolicy'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-
-describe('CustTest', function () {
- console.log('*************start CustTest*************');
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETLIST_JS_001
- * @tc.name test getCfgDirList method in callback mode
- * @tc.desc get getCfgDirList in callback mode
- */
- it('getCfgDirList_test_001', 0, async function (done) {
- configPolicy.getCfgDirList((error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgDirList_test_001:' + value.length);
- console.log('CustTest getCfgDirList_test_001:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETLIST_JS_002
- * @tc.name test getCfgDirList method in promise mode
- * @tc.desc get getCfgDirList in promise mode
- */
- it('getCfgDirList_test_002', 0, async function (done) {
- configPolicy.getCfgDirList().then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgDirList_test_002:' + value.length);
- console.log('CustTest getCfgDirList_test_002:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_001
- * @tc.name test getCfgFiles method in callback mode with not exist param
- * @tc.desc get getCfgFiles in callback mode
- */
- it('getCfgFiles_test_001', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/none.xml', (error, value) => {
- expect(value.length == 0).assertTrue();
- console.log('CustTest getCfgFiles_test_001, none.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_001, none.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_002
- * @tc.name test getCfgFiles method in callback mode with low priority param
- * @tc.desc get getCfgFiles in callback mode
- */
- it('getCfgFiles_test_002', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/system.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_002, system.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_002, system.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_003
- * @tc.name test getCfgFiles method in callback mode both exist param
- * @tc.desc get getCfgFiles in callback mode
- */
- it('getCfgFiles_test_003', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/both.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_003, both.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_003, both.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_004
- * @tc.name test getCfgFiles method in callback mode with high priority param
- * @tc.desc get getCfgFiles in callback mode
- */
- it('getCfgFiles_test_004', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/user.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_004, user.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_004, user.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_005
- * @tc.name test getCfgFiles method in promise mode with not exist param
- * @tc.desc get getCfgFiles in promise mode
- */
- it('getCfgFiles_test_005', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/none.xml').then(value => {
- expect(value.length == 0).assertTrue();
- console.log('CustTest getCfgFiles_test_005, none.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_005, none.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_006
- * @tc.name test getCfgFiles method in promise mode with low priority param
- * @tc.desc get getCfgFiles in promise mode
- */
- it('getCfgFiles_test_006', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/system.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_006, system.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_006, system.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_007
- * @tc.name test getCfgFiles method in promise mode with both exist param
- * @tc.desc get getCfgFiles in promise mode
- */
- it('getCfgFiles_test_007', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/both.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_007, both.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_007, both.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETFILES_JS_008
- * @tc.name test getCfgFiles method in promise mode with high priority param
- * @tc.desc get getCfgFiles in promise mode
- */
- it('getCfgFiles_test_008', 0, async function (done) {
- configPolicy.getCfgFiles('custxmltest/user.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getCfgFiles_test_008, user.xml:' + value.length);
- console.log('CustTest getCfgFiles_test_008, user.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_001
- * @tc.name test getOneCfgFile method in callback mode with not exist param
- * @tc.desc get getOneCfgFile in callback mode
- */
- it('getOneCfgFile_test_001', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/none.xml', (error, value) => {
- expect(value.length == 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_001, none.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_001, none.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_002
- * @tc.name test getOneCfgFile method in callback mode with low priority param
- * @tc.desc get getOneCfgFile in callback mode
- */
- it('getOneCfgFile_test_002', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/system.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_002, system.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_002, system.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_003
- * @tc.name test getOneCfgFile method in callback mode with both exist param
- * @tc.desc get getOneCfgFile in callback mode
- */
- it('getOneCfgFile_test_003', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/both.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_003, both.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_003, both.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_004
- * @tc.name test getOneCfgFile method in callback mode with high priority param
- * @tc.desc get getOneCfgFile in callback mode
- */
- it('getOneCfgFile_test_004', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/user.xml', (error, value) => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_004, user.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_004, user.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_005
- * @tc.name test getOneCfgFile method in promise mode with not exist param
- * @tc.desc get getOneCfgFile in promise mode
- */
- it('getOneCfgFile_test_005', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/none.xml').then(value => {
- expect(value.length == 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_005, none.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_005, none.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_006
- * @tc.name test getOneCfgFile method in promise mode with low priority param
- * @tc.desc get getOneCfgFile in promise mode
- */
- it('getOneCfgFile_test_006', 0, async function (done) {
-
- configPolicy.getOneCfgFile('custxmltest/system.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_006, system.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_006, system.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_007
- * @tc.name test getOneCfgFile method in promise mode with both exist param
- * @tc.desc get getOneCfgFile in promise mode and return the high priority file
- */
- it('getOneCfgFile_test_007', 0, async function (done) {
-
- configPolicy.getOneCfgFile('custxmltest/both.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_007, both.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_007, both.xml:' + value);
- });
- done();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_CUST_GETONEFILE_JS_008
- * @tc.name test getOneCfgFile method in promise mode with high priority param
- * @tc.desc get getOneCfgFile in promise mode
- */
- it('getOneCfgFile_test_008', 0, async function (done) {
- configPolicy.getOneCfgFile('custxmltest/user.xml').then(value => {
- expect(value.length != 0).assertTrue();
- console.log('CustTest getOneCfgFile_test_008, user.xml:' + value.length);
- console.log('CustTest getOneCfgFile_test_008, user.xml:' + value);
- });
- done();
- })
-
- console.log('*************end CustTest*************');
-})
diff --git a/customization/cust/custjs/src/main/js/default/test/List.test.js b/customization/cust/custjs/src/main/js/default/test/List.test.js
deleted file mode 100755
index d7db3c7fd1f87ebd7b20ecddd380dbc51e76826c..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/js/default/test/List.test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (C) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-require('./Cust.test.js')
\ No newline at end of file
diff --git a/customization/cust/custjs/src/main/resources/base/element/string.json b/customization/cust/custjs/src/main/resources/base/element/string.json
deleted file mode 100755
index 37ae8fcb0f7a8563639d358b127dfdbaa6b3a750..0000000000000000000000000000000000000000
--- a/customization/cust/custjs/src/main/resources/base/element/string.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "string": [
- {
- "name": "app_name",
- "value": "JsTimeTest"
- },
- {
- "name": "mainability_description",
- "value": "JS_Phone_Empty Feature Ability"
- }
- ]
-}
\ No newline at end of file
diff --git a/customization/cust/custjs/src/main/resources/base/media/icon.png b/customization/cust/custjs/src/main/resources/base/media/icon.png
deleted file mode 100755
index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000
Binary files a/customization/cust/custjs/src/main/resources/base/media/icon.png and /dev/null differ
diff --git a/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js b/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js
index dede972e83da79703cf08d563432ddbd099a0d0d..d55dad525b212cfea191902d8f23c195089a51dc 100755
--- a/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js
+++ b/global/i18n_standard/intljs/src/main/js/default/test/I18n.test.js
@@ -91,526 +91,6 @@ describe('I18nTest', function () {
expect(locale).assertInstanceOf('String');
})
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0400
- * @tc.name setSystemLanguage with en param
- * @tc.desc check the language
- */
- it('i18n_test_0400', 0, function () {
- let value = I18n.setSystemLanguage('en');
- console.log('i18n_test_0400 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0400 ' + lang);
- expect(lang).assertEqual('en');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0500
- * @tc.name setSystemLanguage with ko-KR param
- * @tc.desc check the language
- */
- it('i18n_test_0500', 0, function () {
- let value = I18n.setSystemLanguage('ko-KR');
- console.log('i18n_test_0500 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0500 ' + lang);
- expect(lang).assertEqual('ko-KR');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0600
- * @tc.name setSystemLanguage with it-Ital-IT param
- * @tc.desc check the language
- */
- it('i18n_test_0600', 0, function () {
- let value = I18n.setSystemLanguage('it-Ital-IT');
- console.log('i18n_test_0600 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0600 ' + lang);
- expect(lang).assertEqual('it-Ital-IT');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0700
- * @tc.name setSystemLanguage with null param
- * @tc.desc check the language
- */
- it('i18n_test_0700', 0, function () {
- let value = I18n.setSystemLanguage('');
- console.log('i18n_test_0700 ' + value);
- expect(value).assertFalse();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0700 ' + lang);
- expect(lang).assertEqual('it-Ital-IT');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0800
- * @tc.name setSystemLanguage with not exist param aa
- * @tc.desc check the language
- */
- it('i18n_test_0800', 0, function () {
- let value = I18n.setSystemLanguage('aa');
- console.log('i18n_test_0800 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0800 ' + lang);
- expect(lang).assertEqual('aa');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0850
- * @tc.name setSystemLanguage with not exist param aaa
- * @tc.desc check the language
- */
- it('i18n_test_0850', 0, function () {
- let value = I18n.setSystemLanguage('aaa');
- console.log('i18n_test_0850 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0850 ' + lang);
- expect(lang).assertEqual('aaa');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_0900
- * @tc.name setSystemLanguage with not exist param aabb
- * @tc.desc check the language
- */
- it('i18n_test_0900', 0, function () {
- let value = I18n.setSystemLanguage('aabb');
- console.log('i18n_test_0900 ' + value);
- expect(value).assertFalse();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_0900 ' + lang);
- expect(lang).assertEqual('aaa');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1000
- * @tc.name setSystemLanguage with es-aaaa param
- * @tc.desc check the language
- */
- it('i18n_test_1000', 0, function () {
- let value = I18n.setSystemLanguage('es-aaaa');
- console.log('i18n_test_1000 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_1000 ' + lang);
- expect(lang).assertEqual('es-aaaa');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1100
- * @tc.name setSystemLanguage with it-Ital-AA param
- * @tc.desc check the language
- */
- it('i18n_test_1100', 0, function () {
- let value = I18n.setSystemLanguage('it-Ital-AA');
- console.log('i18n_test_1100 ' + value);
- expect(value).assertTrue();
- let lang = I18n.getSystemLanguage();
- console.log('i18n_test_1100 ' + lang);
- expect(lang).assertEqual('it-Ital-AA');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1200
- * @tc.name setSystemRegion with US param
- * @tc.desc check the region
- */
- it('i18n_test_1200', 0, function () {
- let value = I18n.setSystemRegion('US');
- console.log('i18n_test_1200 ' + value);
- expect(value).assertTrue();
- let region = I18n.getSystemRegion();
- console.log('i18n_test_1200 ' + region);
- expect(region).assertEqual('US');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1300
- * @tc.name setSystemRegion with null param
- * @tc.desc check the region
- */
- it('i18n_test_1300', 0, function () {
- let value = I18n.setSystemRegion('');
- console.log('i18n_test_1300 ' + value);
- expect(value).assertFalse();
- let region = I18n.getSystemRegion();
- console.log('i18n_test_1300 ' + region);
- expect(region).assertEqual('US');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1400
- * @tc.name setSystemRegion with AA param
- * @tc.desc check the region
- */
- it('i18n_test_1400', 0, function () {
- let value = I18n.setSystemRegion('AA');
- console.log('i18n_test_1400 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1420
- * @tc.name setSystemRegion with ACN param
- * @tc.desc check the region
- */
- it('i18n_test_1420', 0, function () {
- let value = I18n.setSystemRegion('ACN');
- console.log('i18n_test_1420 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1440
- * @tc.name setSystemRegion with cn param
- * @tc.desc check the region
- */
- it('i18n_test_1440', 0, function () {
- let value = I18n.setSystemRegion('cn');
- console.log('i18n_test_1440 ' + value);
- expect(value).assertFalse();
- })
-
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1500
- * @tc.name setSystemRegion with zh-CN param
- * @tc.desc check the reigon
- */
- it('i18n_test_1500', 0, function () {
- let value = I18n.setSystemRegion('zh-CN');
- console.log('i18n_test_1500 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1600
- * @tc.name setSystemLocale with en-Latn-US param
- * @tc.desc check the locale
- */
- it('i18n_test_1600', 0, function () {
- let value = I18n.setSystemLocale('en-Latn-US');
- console.log('i18n_test_1600 ' + value);
- expect(value).assertTrue();
- let locale = I18n.getSystemLocale();
- console.log('i18n_test_1600 ' + locale);
- expect(locale).assertEqual('en-Latn-US');
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1700
- * @tc.name setSystemLocale with null param
- * @tc.desc check the locale
- */
- it('i18n_test_1700', 0, function () {
- let value = I18n.setSystemLocale('');
- console.log('i18n_test_1700 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1800
- * @tc.name setSystemLocale with aa param
- * @tc.desc check the locale
- */
- it('i18n_test_1800', 0, function () {
- let value = I18n.setSystemLocale('aa');
- console.log('i18n_test_1800 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_1900
- * @tc.name setSystemLocale with zh-AAAA param
- * @tc.desc check the locale
- */
- it('i18n_test_1900', 0, function () {
- let value = I18n.setSystemLocale('zh-AAAA');
- console.log('i18n_test_1900 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2000
- * @tc.name setSystemLocale with zh-Hans-AA param
- * @tc.desc check the locale
- */
- it('i18n_test_2000', 0, function () {
- let value = I18n.setSystemLocale('zh-Hans-AA');
- console.log('i18n_test_2000 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2100
- * @tc.name getSystemLanguages
- * @tc.desc check the language
- */
- it('i18n_test_2100', 0, function () {
- let lang = I18n.getSystemLanguages();
- let len = lang.length;
- console.log('i18n_test_2100 ' + len);
- expect(len).assertEqual(2);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2200
- * @tc.name getSystemCountries with en param
- * @tc.desc check the country
- */
- it('i18n_test_2200', 0, function () {
- let count = I18n.getSystemCountries('en');
- let len = count.length;
- console.log('i18n_test_2200 ' + len);
- expect(len).assertLarger(0);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2220
- * @tc.name getSystemCountries with zh-CN param
- * @tc.desc check the country
- */
- it('i18n_test_2220', 0, function () {
- let count = I18n.getSystemCountries('zh-CN');
- let len = count.length;
- console.log('i18n_test_2220 ' + len);
- expect(len).assertLarger(0);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2240
- * @tc.name getSystemCountries with zh-Hans-CN param
- * @tc.desc check the country
- */
- it('i18n_test_2240', 0, function () {
- let count = I18n.getSystemCountries('zh-Hans-CN');
- let len = count.length;
- console.log('i18n_test_2240 ' + len);
- expect(len).assertLarger(0);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2260
- * @tc.name getSystemCountries with null param
- * @tc.desc check the country
- */
- it('i18n_test_2260', 0, function () {
- let count = I18n.getSystemCountries('');
- let len = count.length;
- console.log('i18n_test_2260 ' + len);
- expect(len).assertLarger(0);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2280
- * @tc.name getSystemCountries with aaa param
- * @tc.desc check the country
- */
- it('i18n_test_2280', 0, function () {
- let count = I18n.getSystemCountries('aaa');
- let len = count.length;
- console.log('i18n_test_2280 ' + len);
- expect(len).assertLarger(0);
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2300
- * @tc.name isSuggested with en param
- * @tc.desc check the language
- */
- it('i18n_test_2300', 0, function () {
- let region = I18n.setSystemRegion('US');
- console.log('i18n_test_2300 ' + region);
- expect(region).assertTrue();
- let value = I18n.isSuggested('en');
- console.log('i18n_test_2300 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2400
- * @tc.name isSuggested with zh-Hans param
- * @tc.desc check the language
- */
- it('i18n_test_2400', 0, function () {
- let region = I18n.setSystemRegion('CN');
- console.log('i18n_test_2400 ' + region);
- expect(region).assertTrue();
- let value = I18n.isSuggested('zh-Hans');
- console.log('i18n_test_2400 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2500
- * @tc.name isSuggested with zh-Hans-CN param
- * @tc.desc check the language
- */
- it('i18n_test_2500', 0, function () {
- let region = I18n.setSystemRegion('CN');
- console.log('i18n_test_2500 ' + region);
- expect(region).assertTrue();
- let value = I18n.isSuggested('zh-Hans-CN');
- console.log('i18n_test_2500 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2600
- * @tc.name isSuggested with fr param
- * @tc.desc check the language
- */
- it('i18n_test_2600', 0, function () {
- let value = I18n.isSuggested('fr');
- console.log('i18n_test_2600 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2700
- * @tc.name isSuggested with fr-FR param
- * @tc.desc check the language
- */
- it('i18n_test_2700', 0, function () {
- let value = I18n.isSuggested('fr-FR');
- console.log('i18n_test_2700 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2800
- * @tc.name isSuggested with az-Latn-AZ param
- * @tc.desc check the language
- */
- it('i18n_test_2800', 0, function () {
- let value = I18n.isSuggested('az-Latn-AZ');
- console.log('i18n_test_2800 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_2900
- * @tc.name isSuggested with en-ZH param
- * @tc.desc check the language
- */
- it('i18n_test_2900', 0, function () {
- let value = I18n.isSuggested('en-ZH');
- console.log('i18n_test_2900 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3000
- * @tc.name isSuggested with aa param
- * @tc.desc check the language
- */
- it('i18n_test_3000', 0, function () {
- let value = I18n.isSuggested('aa');
- console.log('i18n_test_3000 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3100
- * @tc.name isSuggested with en and GB param
- * @tc.desc check the language
- */
- it('i18n_test_3100', 0, function () {
- let region = I18n.setSystemRegion('GB');
- console.log('i18n_test_3100 ' + region);
- expect(region).assertTrue();
- let value = I18n.isSuggested('en', 'GB');
- console.log('i18n_test_3100 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3150
- * @tc.name isSuggested with en-SG and GB param
- * @tc.desc check the language
- */
- it('i18n_test_3150', 0, function () {
- let region = I18n.setSystemRegion('GB');
- console.log('i18n_test_3150 ' + region);
- expect(region).assertTrue();
- let value = I18n.isSuggested('en-SG', 'GB');
- console.log('i18n_test_3150 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3200
- * @tc.name isSuggested with en and ZH param
- * @tc.desc check the language
- */
- it('i18n_test_3200', 0, function () {
- let value = I18n.isSuggested('en', 'ZH');
- console.log('i18n_test_3200 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3300
- * @tc.name isSuggested with en-GB and ZH param
- * @tc.desc check the language
- */
- it('i18n_test_3300', 0, function () {
- let value = I18n.isSuggested('en-GB', 'ZH');
- console.log('i18n_test_3300 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3400
- * @tc.name isSuggested with en-ZH and GB param
- * @tc.desc check the language
- */
- it('i18n_test_3400', 0, function () {
- let value = I18n.isSuggested('en-ZH', 'GB');
- console.log('i18n_test_3400 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3500
- * @tc.name isSuggested with en-JP and GB param
- * @tc.desc check the language
- */
- it('i18n_test_3500', 0, function () {
- let value = I18n.isSuggested('en-JP', 'GB');
- console.log('i18n_test_3500 ' + value);
- expect(value).assertFalse();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3600
- * @tc.name isSuggested with zh-Hans-TW and CN param
- * @tc.desc check the language
- */
- it('i18n_test_3600', 0, function () {
- let value = I18n.isSuggested('zh-Hans-TW', 'CN');
- console.log('i18n_test_3600 ' + value);
- expect(value).assertTrue();
- })
-
- /* *
- * @tc.number SUB_GLOBAL_I18N_JS_3700
- * @tc.name isSuggested with zh-Hans-CN and HK param
- * @tc.desc check the language
- */
- it('i18n_test_3700', 0, function () {
- let value = I18n.isSuggested('zh-Hans-CN', 'HK');
- console.log('i18n_test_3700 ' + value);
- expect(value).assertTrue();
- })
-
/* *
* @tc.number SUB_GLOBAL_I18N_JS_3800
* @tc.name getDisplayCountry with zh-Hans-CN and en-US and true param
diff --git a/global/perf/perfjs/src/main/js/default/test/Perf.test.js b/global/perf/perfjs/src/main/js/default/test/Perf.test.js
index b03bc9640ddf78e400a818910cd4fe9c514fe400..050a1e82520961182aa572799c07aa38fbdb7496 100755
--- a/global/perf/perfjs/src/main/js/default/test/Perf.test.js
+++ b/global/perf/perfjs/src/main/js/default/test/Perf.test.js
@@ -184,162 +184,6 @@ describe('PerfTest', function () {
}
})
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0400
- * @tc.name test the performance of setSystemLanguage
- * @tc.desc check the performance of setSystemLanguage
- */
- it('perf_test_0400', 0, function () {
- console.log('perf_test_0400 ' + 'start');
- let value = false;
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.setSystemLanguage('en');
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0400--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0500
- * @tc.name test the performance of setSystemRegion
- * @tc.desc check the performance of setSystemRegion
- */
- it('perf_test_0500', 0, function () {
- console.log('perf_test_0500 ' + 'start');
- let value = false;
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.setSystemRegion('US');
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0500--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0600
- * @tc.name test the performance of setSystemLocale
- * @tc.desc check the performance of setSystemLocale
- */
- it('perf_test_0600', 0, function () {
- console.log('perf_test_0600 ' + 'start');
- let value = false;
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.setSystemLocale('en-Latn-US');
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0600--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0700
- * @tc.name test the performance of getSystemLanguages
- * @tc.desc check the performance of getSystemLanguages
- */
- it('perf_test_0700', 0, function () {
- console.log('perf_test_0700 ' + 'start');
- let value = new Array();
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.getSystemLanguages();
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0700--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0800
- * @tc.name test the performance of getSystemCountries
- * @tc.desc check the performance of getSystemCountries
- */
- it('perf_test_0800', 0, function () {
- console.log('perf_test_0800 ' + 'start');
- let value = new Array();
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.getSystemCountries('en');
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0800--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
- /* *
- * @tc.number SUB_GLOBAL_PERF_JS_0900
- * @tc.name test the performance of isSuggested
- * @tc.desc check the performance of isSuggested
- */
- it('perf_test_0900', 0, function () {
- console.log('perf_test_0900 ' + 'start');
- let value = false;
- let startTime = new Date().getTime();
- for(let i = 0; i < EXETIME; i++){
- value = I18n.isSuggested('en');
- }
- let exeTime = new Date().getTime() - startTime;
- let avgTime = exeTime/EXETIME;
- console.log('perf_test_0900--'
- + 'value: ' + value
- + ' exeTime: ' + exeTime
- + ' avgTime: ' + avgTime);
- if(avgTime < 10){
- expect(true).assertTrue();
- }
- else{
- expect(false).assertTrue();
- }
- })
-
/* *
* @tc.number SUB_GLOBAL_PERF_JS_1000
* @tc.name test the performance of getDisplayCountry