diff --git a/media/Image/entry/src/main/ets/pages/Index.ets b/media/Image/entry/src/main/ets/pages/Index.ets index 6acb9af81c98cf54cbeb9d3b43fdc1f664efd0a3..5a7c41a47aab393c7104ab007e447ad03ee9e5fc 100644 --- a/media/Image/entry/src/main/ets/pages/Index.ets +++ b/media/Image/entry/src/main/ets/pages/Index.ets @@ -16,9 +16,15 @@ import router from '@ohos.router' import image from '@ohos.multimedia.image' import { logger } from '@ohos/photomodify' +import { terminateSelf } from '../utils/utils' const TAG: string = 'Index' + +interface IsShowCamera extends Object { + isShowCamera: boolean +} + @Entry @Component struct Index { @@ -26,16 +32,12 @@ struct Index { @State isShowCamera: boolean = false @State isShowComment: boolean = true - terminateSelf(context: any) { - context.terminateSelf() - } - aboutToAppear() { logger.info(TAG, 'enter aboutToAppear') - if (AppStorage.Get('pixelMaps')) { - this.pixelMaps.push(undefined) + if (AppStorage.Get('pixelMaps') as boolean) { + this.pixelMaps.push({} as image.PixelMap) } - if (router.getParams() && router.getParams()['isShowCamera']) { + if (router.getParams() && (router.getParams() as IsShowCamera).isShowCamera) { this.isShowCamera = true } } @@ -49,7 +51,7 @@ struct Index { .objectFit(ImageFit.Contain) .onClick(() => { let context = getContext(this) - this.terminateSelf(context) + terminateSelf(context) }) Text($r('app.string.publish_comments')) @@ -100,9 +102,9 @@ struct Index { if (this.isShowCamera) { Grid() { - ForEach(this.pixelMaps, (item, index) => { + ForEach(this.pixelMaps, (item: image.PixelMap, index?: number) => { GridItem() { - if (index < this.pixelMaps.length - 1) { + if (index !== undefined && (index < this.pixelMaps.length - 1)) { Image(item) .width('100%') .height(100) diff --git a/media/Image/entry/src/ohosTest/ets/test/List.test.ets b/media/Image/entry/src/main/ets/utils/utils.ts similarity index 81% rename from media/Image/entry/src/ohosTest/ets/test/List.test.ets rename to media/Image/entry/src/main/ets/utils/utils.ts index f7a71bf395c801c8818b06f2a486660ed9f25eee..0ca0dd7d0ace427e736c0bb51a03279bad7ea32d 100644 --- a/media/Image/entry/src/ohosTest/ets/test/List.test.ets +++ b/media/Image/entry/src/main/ets/utils/utils.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 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 @@ -13,8 +13,6 @@ * limitations under the License. */ -import appTest from './app.test' - -export default function testsuite() { - appTest() -} +export function terminateSelf(context:any) { + context.terminateSelf() +} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/Application/AbilityStage.ts b/media/Image/entry/src/ohosTest/ets/Application/AbilityStage.ts deleted file mode 100644 index be959bc43e37bf4dc1339541bcfb92df8680c1aa..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/Application/AbilityStage.ts +++ /dev/null @@ -1,22 +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 AbilityStage from "@ohos.application.AbilityStage" - -export default class TestAbilityStage extends AbilityStage { - onCreate() { - console.log("[Demo] TestAbilityStage onCreate") - } -} diff --git a/media/Image/entry/src/ohosTest/ets/Application/TestAbilityStage.ts b/media/Image/entry/src/ohosTest/ets/Application/TestAbilityStage.ts deleted file mode 100644 index 8fb2fb85202833e6bc71a99d86e5418c1029b729..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/Application/TestAbilityStage.ts +++ /dev/null @@ -1,25 +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 AbilityStage from '@ohos.application.AbilityStage' -import { logger } from '../../../../../photomodify/src/main/ets/components/util/Logger' - -const TAG: string = 'TestAbilityStage' - -export default class TestAbilityStage extends AbilityStage { - onCreate() { - logger.info(TAG, `[Demo] TestAbilityStage onCreate`) - } -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/module.json5.ftl b/media/Image/entry/src/ohosTest/ets/module.json5.ftl deleted file mode 100644 index 57569df303042010dcf0648ec4818dd40ea4caf5..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/module.json5.ftl +++ /dev/null @@ -1,49 +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. - */ - -{ - "module": { - "name": "${moduleName}_test", - "type": "feature", - "srcEntrance": "./ets/Application/AbilityStage.ts", - "description": "$string:entry_test_desc", - "mainElement": "TestAbility", - "deviceTypes": [${deviceTypes ?replace("[","")?replace("]","")}], - "deliveryWithInstall": true, - "installationFree": false, - "pages": "$profile:test_pages", - "uiSyntax": "ets", - "abilities": [ - { - "name": "TestAbility", - "srcEntrance": "./ets/TestAbility/TestAbility.ts", - "description": "$string:TestAbility_desc", - "icon": "$media:icon", - "label": "$string:TestAbility_label", - "visible": true, - "skills": [ - { - "actions": [ - "action.system.home" - ], - "entities": [ - "entity.system.home" - ] - } - ] - } - ] - } -} diff --git a/media/Image/entry/src/ohosTest/ets/test/Ability.test.ets b/media/Image/entry/src/ohosTest/ets/test/Ability.test.ets deleted file mode 100644 index 8abf7f2f44c0e56110df8c09b2524a4ca37bc993..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/test/Ability.test.ets +++ /dev/null @@ -1,35 +0,0 @@ -import hilog from '@ohos.hilog'; -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' - -export default function abilityTest() { - describe('ActsAbilityTest', function () { - // Defines a test suite. Two parameters are supported: test suite name and test suite function. - beforeAll(function () { - // Presets an action, which is performed only once before all test cases of the test suite start. - // This API supports only one parameter: preset action function. - }) - beforeEach(function () { - // Presets an action, which is performed before each unit test case starts. - // The number of execution times is the same as the number of test cases defined by **it**. - // This API supports only one parameter: preset action function. - }) - afterEach(function () { - // Presets a clear action, which is performed after each unit test case ends. - // The number of execution times is the same as the number of test cases defined by **it**. - // This API supports only one parameter: clear action function. - }) - afterAll(function () { - // Presets a clear action, which is performed after all test cases of the test suite end. - // This API supports only one parameter: clear action function. - }) - it('assertContain',0, function () { - // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. - hilog.info(0x0000, 'testTag', '%{public}s', 'it begin'); - let a = 'abc' - let b = 'b' - // Defines a variety of assertion methods, which are used to declare expected boolean conditions. - expect(a).assertContain(b) - expect(a).assertEqual(a) - }) - }) -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/test/app.test.ets b/media/Image/entry/src/ohosTest/ets/test/app.test.ets deleted file mode 100644 index b252103856315c6556f40c65bfefa847283ecd59..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/test/app.test.ets +++ /dev/null @@ -1,59 +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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import { UiDriver, BY, UiComponent, MatchPattern } from '@ohos.uitest' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import featureAbility from '@ohos.ability.featureAbility' -import hilog from '@ohos.hilog' - -const TAG = '[Sample_Image]' -const DOMAIN = 0xF811 -const BUNDLE = 'Image_' - -export default function appTest() { - describe('appTest', function () { - it(BUNDLE + 'StartAbility_001', 0, async function (done) { - hilog.info(DOMAIN, TAG, BUNDLE + 'StartAbility_001 begin') - let want = { - bundleName: "ohos.samples.image", - abilityName: "MainAbility" - } - var abilityDelegator: any - abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - await abilityDelegator.startAbility(want, (err, data) => { - hilog.info(DOMAIN, TAG, BUNDLE + 'StartAbility_001,err.code:' + err.code) - expect(0).assertEqual(err.code) - done() - hilog.info(DOMAIN, TAG, BUNDLE + 'StartAbility_001 end') - }) - }) - - /** - * 进入预置相机进行拍照 - */ - it(BUNDLE + 'CameraFunction_001', 0, async function () { - hilog.info(DOMAIN, TAG, BUNDLE + 'CameraFunction_001 begin') - let driver = await UiDriver.create() - await driver.delayMs(1000) - hilog.info(DOMAIN, TAG, BUNDLE + 'CameraFunction_001 enter') - await driver.assertComponentExist(BY.text('允许', MatchPattern.CONTAINS)) - let btnEnter = await driver.findComponent(BY.text('允许', MatchPattern.CONTAINS)) - await btnEnter.click() - await driver.delayMs(2000) - hilog.info(DOMAIN, TAG, BUNDLE + 'CameraFunction_001 end') - }) - }) -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ets b/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ets deleted file mode 100644 index e3f6e911d3fffba1e1795c60ed1ee4db15b386fd..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ets +++ /dev/null @@ -1,48 +0,0 @@ -import UIAbility from '@ohos.app.ability.UIAbility'; -import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; -import hilog from '@ohos.hilog'; -import { Hypium } from '@ohos/hypium'; -import testsuite from '../test/List.test'; -import window from '@ohos.window'; - -export default class TestAbility extends UIAbility { - onCreate(want, launchParam) { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onCreate'); - hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? ''); - hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:'+ JSON.stringify(launchParam) ?? ''); - var abilityDelegator: any - abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments: any - abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!'); - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - } - - onDestroy() { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onDestroy'); - } - - onWindowStageCreate(windowStage: window.WindowStage) { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); - windowStage.loadContent('testability/pages/Index', (err, data) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; - } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', - JSON.stringify(data) ?? ''); - }); - } - - onWindowStageDestroy() { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageDestroy'); - } - - onForeground() { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onForeground'); - } - - onBackground() { - hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onBackground'); - } -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ts b/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ts deleted file mode 100644 index 6f7f80c18f9d3b1981ee1ff3845950770080392e..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/testability/TestAbility.ts +++ /dev/null @@ -1,60 +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 Ability from '@ohos.application.Ability' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../test/List.test' - -export default class TestAbility extends Ability { - onCreate(want, launchParam) { - console.log('TestAbility onCreate') - } - - onDestroy() { - console.log('TestAbility onDestroy') - } - - onWindowStageCreate(windowStage) { - console.log('TestAbility onWindowStageCreate') - windowStage.loadContent("TestAbility/pages/index", (err, data) => { - if (err.code) { - console.error('Failed to load the content. Cause:' + JSON.stringify(err)) - return - } - console.info('Succeeded in loading the content. Data: ' + JSON.stringify(data)) - }) - - globalThis.abilityContext = this.context - var abilityDelegator: any - abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments: any - abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - } - - onWindowStageDestroy() { - console.log('TestAbility onWindowStageDestroy') - } - - onForeground() { - console.log('TestAbility onForeground') - } - - onBackground() { - console.log('TestAbility onBackground') - } -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/testability/pages/index.ets b/media/Image/entry/src/ohosTest/ets/testability/pages/index.ets deleted file mode 100644 index 7d93696fbcc27bfa21f70894e650da12023734ca..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/testability/pages/index.ets +++ /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 router from '@ohos.router' - -@Entry -@Component -struct Index { - aboutToAppear() { - console.info('TestAbility index aboutToAppear') - } - - @State message: string = 'Hello World' - - build() { - Row() { - Column() { - Text(this.message) - .fontSize(50) - .fontWeight(FontWeight.Bold) - Button() { - Text('next page') - .fontSize(20) - .fontWeight(FontWeight.Bold) - } - .type(ButtonType.Capsule) - .margin({ - top: 20 - }) - .backgroundColor('#0D9FFB') - .width('35%') - .height('5%') - .onClick(() => { - }) - } - .width('100%') - } - .height('100%') - } -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/media/Image/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts deleted file mode 100644 index 7b0f409c3e76cdbfac374a5fed8463a5d6ec9834..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ /dev/null @@ -1,78 +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 TestRunner from '@ohos.application.testRunner' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' - -var abilityDelegator = undefined -var abilityDelegatorArguments = undefined - -function translateParamsToString(parameters) { - const keySet = new Set([ - '-s class', '-s notClass', '-s suite', '-s it', - '-s level', '-s testType', '-s size', '-s timeout', - '-s dryRun' - ]) - let targetParams = '' - for (const key in parameters) { - if (keySet.has(key)) { - targetParams = `${targetParams} ${key} ${parameters[key]}` - } - } - return targetParams.trim() -} - -async function onAbilityCreateCallback() { - console.log("onAbilityCreateCallback") -} - -async function addAbilityMonitorCallback(err: any) { - console.info("addAbilityMonitorCallback : " + JSON.stringify(err)) -} - -export default class OpenHarmonyTestRunner implements TestRunner { - constructor() { - } - - onPrepare() { - console.info("OpenHarmonyTestRunner OnPrepare ") - } - - async onRun() { - console.log('OpenHarmonyTestRunner onRun run') - abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility' - let lMonitor = { - abilityName: testAbilityName, - onAbilityCreate: onAbilityCreateCallback, - } - abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) - var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName - cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) - var debug = abilityDelegatorArguments.parameters["-D"] - if (debug == 'true') { - cmd += ' -D' - } - console.info('cmd : ' + cmd) - abilityDelegator.executeShellCommand(cmd, - (err: any, d: any) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)) - console.info('executeShellCommand : data : ' + d.stdResult) - console.info('executeShellCommand : data : ' + d.exitCode) - }) - console.info('OpenHarmonyTestRunner onRun end') - } -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/module.json5 b/media/Image/entry/src/ohosTest/module.json5 deleted file mode 100644 index 187f19d5b8dfc89ba6cbd5c98b8317da0155eb16..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/module.json5 +++ /dev/null @@ -1,54 +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. - */ - -{ - "module": { - "name": "entry_test", - "type": "feature", - "srcEntrance": "./ets/TestAbility/TestAbility.ts", - "description": "$string:entry_test_desc", - "mainElement": "TestAbility", - "deviceTypes": [ - "default", - "tablet" - ], - "deliveryWithInstall": true, - "installationFree": false, - "pages": "$profile:test_pages", - "uiSyntax": "ets", - "abilities": [ - { - "name": "TestAbility", - "srcEntrance": "./ets/TestAbility/TestAbility.ts", - "description": "$string:TestAbility_desc", - "icon": "$media:icon", - "label": "$string:TestAbility_label", - "startWindowIcon": "$media:icon", - "startWindowBackground": "$color:white", - "visible": true, - "skills": [ - { - "actions": [ - "action.system.home" - ], - "entities": [ - "entity.system.home" - ] - } - ] - } - ] - } -} diff --git a/media/Image/entry/src/ohosTest/resources/base/element/color.json b/media/Image/entry/src/ohosTest/resources/base/element/color.json deleted file mode 100644 index 1bbc9aa9617e97c45440e1d3d66afc1154837012..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/resources/base/element/color.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "color": [ - { - "name": "white", - "value": "#FFFFFF" - } - ] -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/resources/base/element/string.json b/media/Image/entry/src/ohosTest/resources/base/element/string.json deleted file mode 100644 index 36d4230c53e9f5a07ae343ad8dc9808341975e3b..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/resources/base/element/string.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "string": [ - { - "name": "entry_test_desc", - "value": "test ability description" - }, - { - "name": "TestAbility_desc", - "value": "the test ability" - }, - { - "name": "TestAbility_label", - "value": "test label" - } - ] -} \ No newline at end of file diff --git a/media/Image/entry/src/ohosTest/resources/base/media/icon.png b/media/Image/entry/src/ohosTest/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/media/Image/entry/src/ohosTest/resources/base/media/icon.png and /dev/null differ diff --git a/media/Image/entry/src/ohosTest/resources/base/profile/test_pages.json b/media/Image/entry/src/ohosTest/resources/base/profile/test_pages.json deleted file mode 100644 index fcef82b4dfc18e28106ff9ecd1c8b48ec74d18a4..0000000000000000000000000000000000000000 --- a/media/Image/entry/src/ohosTest/resources/base/profile/test_pages.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "src": [ - "TestAbility/pages/index" - ] -}