diff --git a/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js b/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js index 26174a09686be5ec93e3d4834178f9dab8123e41..9da2ccb03bbd3f765062a6ad35bce1ef5a90e09a 100644 --- a/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js +++ b/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js @@ -40,7 +40,7 @@ describe('ActsAbilityRunningInfosTest', function () { console.log('ACTS_getProcessRunningInfos_0100==== ACTS_getProcessRunningInfos_0100 ====>' + JSON.stringify(data)) - expect(checkRunningProcess('com.ohos.launcher', data)).assertTrue(); + expect(checkRunningProcess('com.example.abilityrunninginfostest', data)).assertTrue(); done(); }) diff --git a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json index 41ab7b3ff4fbdf016cf8ada2b11715cfc2c0d56a..0ce61208099ffe286685f55b01b2851e76254518 100644 --- a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json +++ b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/config.json @@ -53,7 +53,7 @@ "launchType": "singleton", "process": "processTestAbility", "permissions": ["ohos.permission.ACCELEROMETER"], - "deviceCapability": ["ability_base","ability_runtime"], + "deviceCapability": ["SystemCapability.Ability.AbilityBase"], "uri": "uriTest", "visible": true } diff --git a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js index 15b3361edcbc0d55143cffe86cd40c2a2bdbced4..8465f43e901937f8cf94bef01435f166d24046c8 100644 --- a/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js +++ b/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js @@ -1114,8 +1114,7 @@ describe('ActsFeatureAbilityTest', function () { expect(data.permissions[0]).assertEqual("ohos.permission.ACCELEROMETER"); expect(data.deviceTypes[0]).assertEqual("phone"); - expect(data.deviceCapabilities[0]).assertEqual("ability_base"); - expect(data.deviceCapabilities[1]).assertEqual("ability_runtime"); + expect(data.deviceCapabilities[0]).assertEqual("SystemCapability.Ability.AbilityBase"); expect(data.readPermission).assertEqual(""); expect(data.writePermission).assertEqual("");