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

change format

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