提交 47ed2148 编写于 作者: X xinking129

change format

Signed-off-by: Nxinking129 <xinxin13@huawei.com>
上级 02a6eeb8
...@@ -30,7 +30,7 @@ export default class EntryAbility extends UIAbility { ...@@ -30,7 +30,7 @@ export default class EntryAbility extends UIAbility {
} }
}).catch((err) => { }).catch((err) => {
console.info('====>ShareExtensionAbility_0100 err:' + JSON.stringify(err)); console.info('====>ShareExtensionAbility_0100 err:' + JSON.stringify(err));
}) });
} }
if (want.action === 'AsyncCallback_0200') { if (want.action === 'AsyncCallback_0200') {
......
...@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility { ...@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters: { parameters: {
'count': count 'count': count
} }
} };
commonEventManager.publish('ACTS_TEST_FOREGROUND', options, function () { commonEventManager.publish('ACTS_TEST_FOREGROUND', options, function () {
}); });
} }
...@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility { ...@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters: { parameters: {
'count': count 'count': count
} }
} };
commonEventManager.publish('ACTS_TEST_DESTROY', options, function () { commonEventManager.publish('ACTS_TEST_DESTROY', options, function () {
}); });
} }
......
...@@ -74,7 +74,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -74,7 +74,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
}); });
}).catch((err) => { }).catch((err) => {
console.debug('====>Acts_ShareExtensionAbility_1100 UIExtAbility startAbility err:' + JSON.stringify(err)); console.debug('====>Acts_ShareExtensionAbility_1100 UIExtAbility startAbility err:' + JSON.stringify(err));
}) });
} }
if (want.action === 'Acts_ShareExtensionAbility_1200') { if (want.action === 'Acts_ShareExtensionAbility_1200') {
...@@ -179,7 +179,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -179,7 +179,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'result': data 'result': data
} }
} };
commonEvent.publish('setReceiveDataCallback', options, (err) => { commonEvent.publish('setReceiveDataCallback', options, (err) => {
console.log('Acts_ShareExtensionAbility_1600'); console.log('Acts_ShareExtensionAbility_1600');
}); });
...@@ -339,7 +339,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -339,7 +339,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'bundleName': moduleContext.applicationInfo.name 'bundleName': moduleContext.applicationInfo.name
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
...@@ -351,7 +351,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -351,7 +351,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'bundleName': moduleContext.applicationInfo.name 'bundleName': moduleContext.applicationInfo.name
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
...@@ -367,7 +367,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -367,7 +367,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'moduleContext': moduleContext 'moduleContext': moduleContext
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
...@@ -383,7 +383,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -383,7 +383,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'moduleContext': moduleContext 'moduleContext': moduleContext
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
...@@ -399,7 +399,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -399,7 +399,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'moduleContext': moduleContext 'moduleContext': moduleContext
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
...@@ -411,7 +411,7 @@ export default class UiExtAbility extends ShareExtensionAbility { ...@@ -411,7 +411,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters: { parameters: {
'applicationContext': applicationContext 'applicationContext': applicationContext
} }
} };
commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => { commonEvent.publish('ACTS_TEST_CONTEXT', options, (err) => {
console.log('Acts_ShareExtensionAbility_context'); console.log('Acts_ShareExtensionAbility_context');
}); });
......
...@@ -324,7 +324,7 @@ export default class EntryAbility extends UIAbility { ...@@ -324,7 +324,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3000') { if (want.action === 'Acts_ShareExtensionAbility_3000') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3000':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3000':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3000", action: 'Acts_ShareExtensionAbility_3000',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
...@@ -336,7 +336,7 @@ export default class EntryAbility extends UIAbility { ...@@ -336,7 +336,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3100') { if (want.action === 'Acts_ShareExtensionAbility_3100') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3100':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3100':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3100", action: 'Acts_ShareExtensionAbility_3100',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
...@@ -348,7 +348,7 @@ export default class EntryAbility extends UIAbility { ...@@ -348,7 +348,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3200') { if (want.action === 'Acts_ShareExtensionAbility_3200') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3200':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3200':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3200", action: 'Acts_ShareExtensionAbility_3200',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
...@@ -360,7 +360,7 @@ export default class EntryAbility extends UIAbility { ...@@ -360,7 +360,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3300') { if (want.action === 'Acts_ShareExtensionAbility_3300') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3300':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3300':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3300", action: 'Acts_ShareExtensionAbility_3300',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
...@@ -372,7 +372,7 @@ export default class EntryAbility extends UIAbility { ...@@ -372,7 +372,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3400') { if (want.action === 'Acts_ShareExtensionAbility_3400') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3400':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3400':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3400", action: 'Acts_ShareExtensionAbility_3400',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
...@@ -384,7 +384,7 @@ export default class EntryAbility extends UIAbility { ...@@ -384,7 +384,7 @@ export default class EntryAbility extends UIAbility {
if (want.action === 'Acts_ShareExtensionAbility_3500') { if (want.action === 'Acts_ShareExtensionAbility_3500') {
console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3500':"); console.info("====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3500':");
AppStorage.SetOrCreate('want', { AppStorage.SetOrCreate('want', {
action: "Acts_ShareExtensionAbility_3500", action: 'Acts_ShareExtensionAbility_3500',
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'UIExtAbility', abilityName: 'UIExtAbility',
parameters: { parameters: {
......
...@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility { ...@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters: { parameters: {
'count': count 'count': count
} }
} };
commonEventManager.publish('ACTS_TEST_FOREGROUND', options, function () { commonEventManager.publish('ACTS_TEST_FOREGROUND', options, function () {
}); });
} }
...@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility { ...@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters: { parameters: {
'count': count 'count': count
} }
} };
commonEventManager.publish('ACTS_TEST_DESTROY', options, function () { commonEventManager.publish('ACTS_TEST_DESTROY', options, function () {
}); });
} }
......
...@@ -39,7 +39,7 @@ export default class FeatureShareExtensionAbility extends ShareExtensionAbility ...@@ -39,7 +39,7 @@ export default class FeatureShareExtensionAbility extends ShareExtensionAbility
bundleName: 'com.example.actsshareextensionabilitytest', bundleName: 'com.example.actsshareextensionabilitytest',
abilityName: 'FeatureAbility', abilityName: 'FeatureAbility',
action: 'Acts_ShareExtensionAbility_0400' action: 'Acts_ShareExtensionAbility_0400'
}) });
} }
this.message = want.parameters.shareMessages; this.message = want.parameters.shareMessages;
this.storage = new LocalStorage( this.storage = new LocalStorage(
......
...@@ -16,8 +16,8 @@ import hilog from '@ohos.hilog'; ...@@ -16,8 +16,8 @@ import hilog from '@ohos.hilog';
import TestRunner from '@ohos.application.testRunner'; import TestRunner from '@ohos.application.testRunner';
import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
let abilityDelegator = undefined let abilityDelegator = undefined;
let abilityDelegatorArguments = undefined let abilityDelegatorArguments = undefined;
async function onAbilityCreateCallback() { async function onAbilityCreateCallback() {
hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback'); hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册