提交 04c3bfe8 编写于 作者: C chengxingzhen

XTS问题用例整改

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 75aca33a
...@@ -17,10 +17,8 @@ group("fa") { ...@@ -17,10 +17,8 @@ group("fa") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ deps = [
"faapplicationinfo:ActsApplicationinfoTest",
"faconfigurationconstant:ActsConfigurationconstantTest", "faconfigurationconstant:ActsConfigurationconstantTest",
"facoverapi:ActsCoverapiTest", "facoverapi:ActsCoverapiTest",
"faequeryabilitybywant:ActsEqueryabilitybywantTest",
] ]
} }
} }
...@@ -25,7 +25,6 @@ ohos_js_hap_suite("ActsApplicationinfoTest") { ...@@ -25,7 +25,6 @@ ohos_js_hap_suite("ActsApplicationinfoTest") {
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js" source_dir = "./entry/src/main/js"
hap_profile = "entry/src/main/config.json" hap_profile = "entry/src/main/config.json"
js2abc = true
} }
ohos_resources("hjs_demo_resources") { ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ] sources = [ "./entry/src/main/js/resources" ]
......
...@@ -40,20 +40,24 @@ export default { ...@@ -40,20 +40,24 @@ export default {
featureAbility.getWant( featureAbility.getWant(
(err, data) => { (err, data) => {
if (data.uri == '{true,true,false}'){ if (data.uri == '{true,true,false}'){
console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON
.stringify(data) + JSON.stringify(err));
event = data.uri event = data.uri
commonEventPublishData = { commonEventPublishData = {
data: event, data: event,
} }
commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent', commonEventPublishData, PublishCallBackOne); commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent',
commonEventPublishData, PublishCallBackOne);
} }
if (data.type == 'MIMETYPE'){ if (data.type == 'MIMETYPE'){
console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON
.stringify(data) + JSON.stringify(err));
event = data.type event = data.type
commonEventPublishData = { commonEventPublishData = {
data: event, data: event,
} }
commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent', commonEventPublishData, PublishCallBackTwo); commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent',
commonEventPublishData, PublishCallBackTwo);
} }
} }
...@@ -62,6 +66,4 @@ export default { ...@@ -62,6 +66,4 @@ export default {
onReady() { onReady() {
console.info('ApplicationInfo MainAbility2 onReady'); console.info('ApplicationInfo MainAbility2 onReady');
}, },
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册