未验证 提交 17289956 编写于 作者: O openharmony_ci 提交者: Gitee

!9472 元能力api覆盖

Merge pull request !9472 from kirl75/master
...@@ -52,6 +52,15 @@ export default class MainAbility extends Ability { ...@@ -52,6 +52,15 @@ export default class MainAbility extends Ability {
console.log("[Demo] MainAbility onBackground") console.log("[Demo] MainAbility onBackground")
} }
onContinue(wantParam){
console.log("[Demo] MainAbility onContinue")
return undefined;
}
onBackPressed(){
return false
}
onConfigurationUpdate(config) { onConfigurationUpdate(config) {
console.log('[Demo] MainAbility onConfigurationUpdate: ' + this.context.config.language) console.log('[Demo] MainAbility onConfigurationUpdate: ' + this.context.config.language)
console.log('[Demo] MainAbility onConfigurationUpdate: ' + config.language) console.log('[Demo] MainAbility onConfigurationUpdate: ' + config.language)
......
...@@ -26,7 +26,7 @@ import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry ...@@ -26,7 +26,7 @@ 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" import contextConstant from "@ohos.app.ability.contextConstant"
import wantConstant from "@ohos.app.ability.wantConstant" import wantConstant from "@ohos.app.ability.wantConstant"
import formBindingData from '@ohos.application.formBindingData'; import formBindingData from '@ohos.app.form.formBindingData';
let EXTENSION_INFO_ERR = 16000001; let EXTENSION_INFO_ERR = 16000001;
let INNER_ERROR = 16000050; let INNER_ERROR = 16000050;
......
...@@ -255,6 +255,7 @@ export default function stageAppContextTest(abilityContext) { ...@@ -255,6 +255,7 @@ export default function stageAppContextTest(abilityContext) {
context.getProcessRunningInformation((err, data) => { context.getProcessRunningInformation((err, data) => {
console.log(TAG + " result = " + JSON.stringify(data)); console.log(TAG + " result = " + JSON.stringify(data));
expect(data[0].processName).assertEqual("com.example.stageappcontexttest"); expect(data[0].processName).assertEqual("com.example.stageappcontexttest");
expect(typeof data[0].state).assertEqual("number");
}) })
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册