diff --git a/aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js b/aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js index 37ff04676f0a797f0dbc7d126380768cd5869825..835e362a9a781b033e5f6a6b854ed01f96b35cf7 100644 --- a/aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js +++ b/aafwk/aafwk_standard/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/entry/src/main/js/test/ActsProcessManageJsTest.test.js @@ -39,7 +39,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/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/config.json b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/config.json index 932f888500827535fc3666b62336a3a67c811b05..8b86fa19466d9b85666ba715e326842f13253ca5 100644 --- a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/config.json +++ b/aafwk/aafwk_standard/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/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js index 15b3361edcbc0d55143cffe86cd40c2a2bdbced4..8465f43e901937f8cf94bef01435f166d24046c8 100755 --- a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/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("");