diff --git a/resourceschedule/resourceschedule_standard/BUILD.gn b/resourceschedule/resourceschedule_standard/BUILD.gn index 98e9ed0e84967fcba29386e0e323d6641795a956..1eda079292fd21d227769f26c35abdeea0273572 100644 --- a/resourceschedule/resourceschedule_standard/BUILD.gn +++ b/resourceschedule/resourceschedule_standard/BUILD.gn @@ -19,8 +19,7 @@ group("resourceschedule_standard") { deps = [ "backgroundtaskmanager:resourceschedule_backgroundtaskmanager_js_test", "deviceusagestatisticsjsunit:resourceschedule_deviceusagestatisticsjsunit_js_test", - "reminderagent:resourceschedule_reminderagent_js_test", - "workscheduler:resourceschedule_workscheduler_js_test", + "reminderagent:resourceschedule_reminderagent_js_test" ] } } diff --git a/resourceschedule/resourceschedule_standard/workscheduler/BUILD.gn b/resourceschedule/resourceschedule_standard/workscheduler/BUILD.gn deleted file mode 100644 index bf4768981b1a655adb4b0fab2e4cc52a94152623..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/BUILD.gn +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2021 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("resourceschedule_workscheduler_js_test") { - hap_profile = "./src/main/config.json" - deps = [ - ":resourceschedule_js_assets", - ":resourceschedule_js_resources", - ] - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsResourcescheduleWorkSchedulerTest" -} -ohos_js_assets("resourceschedule_js_assets") { - source_dir = "./src/main/js/default" -} -ohos_resources("resourceschedule_js_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" -} diff --git a/resourceschedule/resourceschedule_standard/workscheduler/Test.json b/resourceschedule/resourceschedule_standard/workscheduler/Test.json deleted file mode 100644 index 77338dc7860cc8a12dbdb8ed0a0d79449c227207..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/Test.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "description": "Configuration for resourceschedule js api Tests", - "driver": { - "type": "JSUnitTest", - "test-timeout": "300000", - "package": "ohos.acts.resourceschedule.workscheduler.js.function", - "shell-timeout": "60000" - }, - "kits": [ - { - "test-file-name": [ - "ActsResourcescheduleWorkSchedulerTest.hap" - ], - "type": "AppInstallKit", - "cleanup-apps": true - } - ] -} diff --git a/resourceschedule/resourceschedule_standard/workscheduler/signature/openharmony_sx.p7b b/resourceschedule/resourceschedule_standard/workscheduler/signature/openharmony_sx.p7b deleted file mode 100644 index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..0000000000000000000000000000000000000000 Binary files a/resourceschedule/resourceschedule_standard/workscheduler/signature/openharmony_sx.p7b and /dev/null differ diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/config.json b/resourceschedule/resourceschedule_standard/workscheduler/src/main/config.json deleted file mode 100644 index a584f7a59febec4c8ae01d7dd2af34bc61229e50..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/config.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "app": { - "bundleName": "ohos.acts.resourceschedule.workscheduler.js.function", - "vendor": "example", - "version": { - "code": 1, - "name": "1.0" - }, - "apiVersion": { - "compatible": 4, - "target": 5 - } - }, - "deviceConfig": {}, - "module": { - "package": "ohos.acts.resourceschedule.workscheduler.js.function", - "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.acts.resourceschedule.workscheduler.js.function.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/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/app.js b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/app.js deleted file mode 100644 index e423f4bce4698ec1d7dc86c3eea3990a5e7b1085..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/app.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2021 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('AceApplication onCreate'); - }, - onDestroy() { - console.info('AceApplication onDestroy'); - } -}; diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/i18n/en-US.json b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/i18n/en-US.json deleted file mode 100644 index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/i18n/zh-CN.json b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/i18n/zh-CN.json deleted file mode 100644 index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/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/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.css b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.css deleted file mode 100644 index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/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/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.hml b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.hml deleted file mode 100644 index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.hml +++ /dev/null @@ -1,5 +0,0 @@ -
- - {{ $t('strings.hello') }} {{ title }} - -
diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.js b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.js deleted file mode 100644 index 0c564bb030d56eb17a14063cee23df41abced5ba..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/pages/index/index.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2021 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' - -const injectRef = Object.getPrototypeOf(global) || global -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') - -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/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/List.test.js b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/List.test.js deleted file mode 100644 index a83df0fefc414475f8a40e9ce0eec391cd2a0a11..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/List.test.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2021 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('./WorkScheduler.test.js') - - - - diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/WorkScheduler.test.js b/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/WorkScheduler.test.js deleted file mode 100644 index beb2115aa2bbc0a32b1c629ba2fd10fdcda5c646..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/js/default/test/WorkScheduler.test.js +++ /dev/null @@ -1,52 +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 workScheduler from '@ohos.workScheduler' -import workSchedulerCallback from '@ohos.workSchedulerExtensionAbility' - -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' - -describe("WorkSchedulerJsTest", function () { - beforeAll(function() { - - /* - * @tc.setup: setup invoked before all testcases - */ - console.info('beforeAll caled') - }) - - afterAll(function() { - - /* - * @tc.teardown: teardown invoked after all testcases - */ - console.info('afterAll caled') - }) - - beforeEach(function() { - - /* - * @tc.setup: setup invoked before each testcases - */ - console.info('beforeEach caled') - }) - - afterEach(function() { - - /* - * @tc.teardown: teardown invoked after each testcases - */ - console.info('afterEach caled') - }) -}) \ No newline at end of file diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/element/string.json b/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/element/string.json deleted file mode 100644 index 9704818460bd1101c3343815f4c53b4750198c65..0000000000000000000000000000000000000000 --- a/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/element/string.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "string": [ - { - "name": "app_name", - "value": "ResourcescheduleJSApiTest" - }, - { - "name": "mainability_description", - "value": "JS_Phone_Empty Feature Ability" - } - ] -} \ No newline at end of file diff --git a/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/media/icon.png b/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/resourceschedule/resourceschedule_standard/workscheduler/src/main/resources/base/media/icon.png and /dev/null differ