提交 255fb327 编写于 作者: Y yangzk

IssueNo: #I6BRNI

Description: 元能力api9终审问题修改
Sig: SIG_ApplicationFramework
Feature or Bugfix: Bugfix
Binary Source: No
Signed-off-by: Nyangzk <yangzhongkai@huawei.com>
Change-Id: I138e2c7ee1d785f2a56692ceb1d1b643e8e02e38
上级 414744a2
...@@ -27,6 +27,7 @@ import commonEvent from '@ohos.commonEvent'; ...@@ -27,6 +27,7 @@ import commonEvent from '@ohos.commonEvent';
import ability from '@ohos.ability.ability'; import ability from '@ohos.ability.ability';
import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
import common from '@ohos.app.ability.common'; import common from '@ohos.app.ability.common';
import contextConstant from "@ohos.app.ability.contextConstant"
var EXTENSION_INFO_ERR = 16000001 var EXTENSION_INFO_ERR = 16000001
var INNER_ERROR = 16000050 var INNER_ERROR = 16000050
...@@ -319,16 +320,13 @@ export default function ApiCoverTest() { ...@@ -319,16 +320,13 @@ export default function ApiCoverTest() {
let appContext: common.ApplicationContext = abilityContext.getApplicationContext(); let appContext: common.ApplicationContext = abilityContext.getApplicationContext();
let baseContext: common.BaseContext = stageContext; let baseContext: common.BaseContext = stageContext;
let context: common.Context = stageContext; let context: common.Context = stageContext;
let el1 = common.AreaMode.EL1; let el1 = contextConstant.AreaMode.EL1;
let el2 = common.AreaMode.EL2; let el2 = contextConstant.AreaMode.EL2;
let eventHub: common.EventHub = context.eventHub; let eventHub: common.EventHub = context.eventHub;
let abilityResult: common.AbilityResult; let abilityResult: common.AbilityResult;
let connectOptions: common.ConnectOptions; let connectOptions: common.ConnectOptions;
appContext.killProcessesBySelf(); console.log("killAllProcesses:" + JSON.stringify(appContext.killAllProcesses));
appContext.killProcessesBySelf((err, data) => {
console.log(`killProcessesBySelf, err: ${JSON.stringify(err)}, data: ${JSON.stringify(data)}`);
})
let abilityDelegator: abilityDelegatorRegistry.AbilityDelegator; let abilityDelegator: abilityDelegatorRegistry.AbilityDelegator;
abilityDelegator = abilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator = abilityDelegatorRegistry.getAbilityDelegator();
let abilityDelegatorArgs: abilityDelegatorRegistry.AbilityDelegatorArgs; let abilityDelegatorArgs: abilityDelegatorRegistry.AbilityDelegatorArgs;
......
...@@ -29,7 +29,6 @@ let module1FormInfo: formInfo.FormInfo = { ...@@ -29,7 +29,6 @@ let module1FormInfo: formInfo.FormInfo = {
isDefault: true, isDefault: true,
updateEnabled: true, updateEnabled: true,
formVisibleNotify: true, formVisibleNotify: true,
relatedBundleName : "com.example.getformsinfotest",
scheduledUpdateTime: "10:30", scheduledUpdateTime: "10:30",
formConfigAbility: "ability://xxxxx", formConfigAbility: "ability://xxxxx",
updateDuration: 1, updateDuration: 1,
...@@ -50,7 +49,6 @@ let module2FormInfo: formInfo.FormInfo = { ...@@ -50,7 +49,6 @@ let module2FormInfo: formInfo.FormInfo = {
isDefault: true, isDefault: true,
updateEnabled: true, updateEnabled: true,
formVisibleNotify: true, formVisibleNotify: true,
relatedBundleName : "com.example.getformsinfotest",
scheduledUpdateTime: "10:30", scheduledUpdateTime: "10:30",
formConfigAbility: "ability://xxxxx", formConfigAbility: "ability://xxxxx",
updateDuration: 1, updateDuration: 1,
...@@ -396,8 +394,6 @@ export default function abilityTest() { ...@@ -396,8 +394,6 @@ export default function abilityTest() {
expect(expectInfo.isDefault).assertEqual(result.isDefault); expect(expectInfo.isDefault).assertEqual(result.isDefault);
console.info("formProvider::GetFormsInfoTest: formVisibleNotify expect " + expectInfo.formVisibleNotify); console.info("formProvider::GetFormsInfoTest: formVisibleNotify expect " + expectInfo.formVisibleNotify);
expect(expectInfo.formVisibleNotify).assertEqual(result.formVisibleNotify); expect(expectInfo.formVisibleNotify).assertEqual(result.formVisibleNotify);
console.info("formProvider::GetFormsInfoTest: relatedBundleName expect " + expectInfo.relatedBundleName);
expect(expectInfo.relatedBundleName).assertEqual(result.relatedBundleName);
console.info("formProvider::GetFormsInfoTest: scheduledUpdateTime expect " + expectInfo.scheduledUpdateTime); console.info("formProvider::GetFormsInfoTest: scheduledUpdateTime expect " + expectInfo.scheduledUpdateTime);
expect(expectInfo.scheduledUpdateTime).assertEqual(result.scheduledUpdateTime); expect(expectInfo.scheduledUpdateTime).assertEqual(result.scheduledUpdateTime);
console.info("formProvider::GetFormsInfoTest: formConfigAbility expect " + expectInfo.formConfigAbility); console.info("formProvider::GetFormsInfoTest: formConfigAbility expect " + expectInfo.formConfigAbility);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册