提交 21d0f618 编写于 作者: C chengxingzhen

xts卡片fail用例适配

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 ac95ec71
...@@ -46,22 +46,22 @@ struct Index { ...@@ -46,22 +46,22 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formOnErrorEvent Publish CallBack ====>"); console.debug("====>formOnErrorEvent Publish CallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); console.debug("====>formOnAcquiredEvent Publish CallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.debug("====>formCastEvent Publish CallBack ====>"); console.debug("====>formCastEvent Publish CallBack ====>");
} }
private publishOnUninstallCallBack() { private publishOnUninstallCallBack = () => {
console.debug("====>formOnUninstallEvent Publish CallBack ====>"); console.debug("====>formOnUninstallEvent Publish CallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") {
return; return;
......
...@@ -46,17 +46,17 @@ struct Index { ...@@ -46,17 +46,17 @@ struct Index {
}; };
private subscriberDle; private subscriberDle;
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formOnErrorEvent Publish CallBack ====>"); console.debug("====>formOnErrorEvent Publish CallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); console.debug("====>formOnAcquiredEvent Publish CallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.debug("====>formCastEvent Publish CallBack ====>"); console.debug("====>formCastEvent Publish CallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostb") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostb") {
return; return;
......
...@@ -57,26 +57,26 @@ struct Index { ...@@ -57,26 +57,26 @@ struct Index {
events: ["FMS_TimeChange_commonEvent"], events: ["FMS_TimeChange_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); console.debug("====>formsystemhostc formOnErrorEventCallBack ====>");
} }
private publishOnDeletedCallBack() { private publishOnDeletedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); console.debug("====>formsystemhostc publishOnDeletedCallBack ====>");
} }
private publishOnReleasedCallBack() { private publishOnReleasedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.debug("====>formsystemhostc formCastEventCallBack ====>"); console.debug("====>formsystemhostc formCastEventCallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>[FormComponent] deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>[FormComponent] deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") {
return; return;
...@@ -90,7 +90,7 @@ struct Index { ...@@ -90,7 +90,7 @@ struct Index {
console.info("!!!====>[FormComponent] deleteCallBack end ====>"); console.info("!!!====>[FormComponent] deleteCallBack end ====>");
} }
private timeChangeCallBack(err, data) { private timeChangeCallBack = (err, data) => {
console.info("!!!====>[FormComponent] timeChangeCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>[FormComponent] timeChangeCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostc") {
return; return;
......
...@@ -50,26 +50,26 @@ struct Index { ...@@ -50,26 +50,26 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); console.debug("====>formsystemhostc formOnErrorEventCallBack ====>");
} }
private publishOnDeletedCallBack() { private publishOnDeletedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); console.debug("====>formsystemhostc publishOnDeletedCallBack ====>");
} }
private publishOnReleasedCallBack() { private publishOnReleasedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.debug("====>formsystemhostc formCastEventCallBack ====>"); console.debug("====>formsystemhostc formCastEventCallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostd") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostd") {
return; return;
......
...@@ -55,27 +55,27 @@ struct Index { ...@@ -55,27 +55,27 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); console.debug("====>formsystemhostc formOnErrorEventCallBack ====>");
} }
private publishOnDeletedCallBack() { private publishOnDeletedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); console.debug("====>formsystemhostc publishOnDeletedCallBack ====>");
} }
private formOnDynamicRefreshCallBack() { private formOnDynamicRefreshCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnDynamicRefreshEventk ====>"); console.debug("====>formsystemhostc formOnDynamicRefreshEventk ====>");
} }
private formOnRequestCallBack() { private formOnRequestCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnRequestCallBack ====>"); console.debug("====>formsystemhostc formOnRequestCallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") {
return; return;
......
...@@ -57,26 +57,26 @@ struct Index { ...@@ -57,26 +57,26 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc formOnErrorEventCallBack ====>"); console.debug("====>formsystemhostc formOnErrorEventCallBack ====>");
} }
private publishOnDeletedCallBack() { private publishOnDeletedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnDeletedCallBack ====>"); console.debug("====>formsystemhostc publishOnDeletedCallBack ====>");
} }
private publishOnReleasedCallBack() { private publishOnReleasedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>"); console.debug("====>formsystemhostc publishOnReleasedCallBackk ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>"); console.debug("====>formsystemhostc formOnAcquiredEventCallBack ====>");
} }
private publishOnUpdatedCallBack() { private publishOnUpdatedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formsystemhostc publishOnUpdatedCallBack ====>"); console.debug("====>formsystemhostc publishOnUpdatedCallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostf") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostf") {
return; return;
......
...@@ -49,22 +49,22 @@ struct Index { ...@@ -49,22 +49,22 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>[FormComponent.host] formOnErrorEventCallBack ====>"); console.debug("====>[FormComponent.host] formOnErrorEventCallBack ====>");
} }
private publishOnDeletedCallBack() { private publishOnDeletedCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>[FormComponent.host] publishOnDeletedCallBack ====>"); console.debug("====>[FormComponent.host] publishOnDeletedCallBack ====>");
} }
private publishOnStateCallBack() { private publishOnStateCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>[FormComponent.host] publishOnStateCallBack ====>"); console.debug("====>[FormComponent.host] publishOnStateCallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>[FormComponent.host] formOnAcquiredEventCallBack ====>"); console.debug("====>[FormComponent.host] formOnAcquiredEventCallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>[FormComponent.host] deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>[FormComponent.host] deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostg") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostg") {
return; return;
......
...@@ -45,18 +45,18 @@ struct Index { ...@@ -45,18 +45,18 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.info("====>formOnErrorEvent Publish CallBack ====>"); console.info("====>formOnErrorEvent Publish CallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.info("====>formOnAcquiredEvent Publish CallBack ====>"); console.info("====>formOnAcquiredEvent Publish CallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.info("====>formCastEvent Publish CallBack ====>"); console.info("====>formCastEvent Publish CallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhost deleteCallBack start:====>" + JSON.stringify(data));
if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") { if (data.bundleName && data.bundleName != "com.ohos.st.formsystemhost") {
return; return;
......
...@@ -45,18 +45,18 @@ struct Index { ...@@ -45,18 +45,18 @@ struct Index {
events: ["FMS_FormDelete_commonEvent"], events: ["FMS_FormDelete_commonEvent"],
}; };
private publishOnErrorCallBack() { private publishOnErrorCallBack = () => {
this.canCreateForm = false; this.canCreateForm = false;
console.debug("====>formOnErrorEvent Publish CallBack ====>"); console.debug("====>formOnErrorEvent Publish CallBack ====>");
} }
private publishOnAcquiredCallBack() { private publishOnAcquiredCallBack = () => {
console.debug("====>formOnAcquiredEvent Publish CallBack ====>"); console.debug("====>formOnAcquiredEvent Publish CallBack ====>");
} }
private publishCastCallBack() { private publishCastCallBack = () => {
console.debug("====>formCastEvent Publish CallBack ====>"); console.debug("====>formCastEvent Publish CallBack ====>");
} }
private deleteCallBack(err, data) { private deleteCallBack = (err, data) => {
console.info("!!!====>formsystemhostj deleteCallBack start:====>" + JSON.stringify(data)); console.info("!!!====>formsystemhostj deleteCallBack start:====>" + JSON.stringify(data));
if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostj") { if(data.bundleName && data.bundleName != "com.ohos.st.formsystemhostj") {
return; return;
......
...@@ -67,19 +67,19 @@ struct Index { ...@@ -67,19 +67,19 @@ struct Index {
private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent";
private formOnReleasedEvent = "FMS_FormOnReleased_commonEvent"; private formOnReleasedEvent = "FMS_FormOnReleased_commonEvent";
private onAcquiredCallback() { private onAcquiredCallback = () => {
console.info(`${this.TAG} onAcquiredCallback`); console.info(`${this.TAG} onAcquiredCallback`);
} }
private onRequestCallback() { private onRequestCallback = () => {
console.info(`====>${this.TAG} onRequestCallback====>`); console.info(`====>${this.TAG} onRequestCallback====>`);
} }
private onDeletedCallback() { private onDeletedCallback = () => {
console.info(`${this.TAG} onDeletedCallback`); console.info(`${this.TAG} onDeletedCallback`);
} }
private onReleasedCallback() { private onReleasedCallback = () => {
console.info(`====>${this.TAG} onReleasedCallback====>`); console.info(`====>${this.TAG} onReleasedCallback====>`);
} }
......
...@@ -42,11 +42,11 @@ struct Index { ...@@ -42,11 +42,11 @@ struct Index {
private formOnRequestEvent = `FMS_FormOnRequest_commonEvent`; private formOnRequestEvent = `FMS_FormOnRequest_commonEvent`;
private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent"; private formOnDeletedEvent = "FMS_FormOnDeleted_commonEvent";
private onAcquiredCallback() { private onAcquiredCallback = () => {
console.info(`====>${this.TAG} onAcquiredCallback====>`); console.info(`====>${this.TAG} onAcquiredCallback====>`);
} }
private onRequestCallback() { private onRequestCallback = () => {
console.info(`====>${this.TAG} onRequestCallback====>`); console.info(`====>${this.TAG} onRequestCallback====>`);
} }
......
...@@ -48,7 +48,7 @@ struct Index { ...@@ -48,7 +48,7 @@ struct Index {
private formOnRequestEvent = "FMS_FormOnRequest_commonEvent"; private formOnRequestEvent = "FMS_FormOnRequest_commonEvent";
private formOnStateEvent = "FMS_FormOnState_commonEvent"; private formOnStateEvent = "FMS_FormOnState_commonEvent";
private publishCallBack() { private publishCallBack = () => {
console.debug("====>formOnErrorEvent Publish CallBack ====>"); console.debug("====>formOnErrorEvent Publish CallBack ====>");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册