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

!9204 【杂散】【输入法】优化inputmethd用例公共事件通讯不及时,用例偶现失败

Merge pull request !9204 from 张育帅/master
...@@ -241,12 +241,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -241,12 +241,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_028 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_028 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_028 subscriber finish"); console.debug("====>inputMethodEngine_test_028 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 28 code: 28
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_029', 0, async function (done) { it('inputMethodEngine_test_029', 0, async function (done) {
...@@ -297,12 +297,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -297,12 +297,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_029 subscriber data:" + JSON.stringify(data)) console.debug("====>inputMethodEngine_test_029 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_029 subscriber finish"); console.debug("====>inputMethodEngine_test_029 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 29 code: 29
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_030', 0, async function (done) { it('inputMethodEngine_test_030', 0, async function (done) {
...@@ -353,12 +353,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -353,12 +353,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_030 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_030 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_030 subscriber finish"); console.debug("====>inputMethodEngine_test_030 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 30 code: 30
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_031', 0, async function (done) { it('inputMethodEngine_test_031', 0, async function (done) {
...@@ -408,12 +408,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -408,12 +408,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_031 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_031 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_031 subscriber finish"); console.debug("====>inputMethodEngine_test_031 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 31 code: 31
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_032', 0, async function (done) { it('inputMethodEngine_test_032', 0, async function (done) {
...@@ -463,12 +463,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -463,12 +463,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_032 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_032 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_032 subscriber finish"); console.debug("====>inputMethodEngine_test_032 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 32 code: 32
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_033', 0, async function (done) { it('inputMethodEngine_test_033', 0, async function (done) {
...@@ -517,17 +517,16 @@ export default function inputMethodEngineJSUnit() { ...@@ -517,17 +517,16 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.debug("====>inputMethodEngine_test_033 subscriber data:" + JSON.stringify(data)) console.debug("====>inputMethodEngine_test_033 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_033 subscriber finish") console.debug("====>inputMethodEngine_test_033 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 33 code: 33
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_034', 0, async function (done) { it('inputMethodEngine_test_034', 0, async function (done) {
function unSubscriberCallback(err) { function unSubscriberCallback(err) {
console.debug("====>inputMethodEngine_test_034 unSubscriberCallback start"); console.debug("====>inputMethodEngine_test_034 unSubscriberCallback start");
if (err) { if (err) {
...@@ -574,12 +573,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -574,12 +573,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_034 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_034 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_034 subscriber finish"); console.debug("====>inputMethodEngine_test_034 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 34 code: 34
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_035', 0, async function (done) { it('inputMethodEngine_test_035', 0, async function (done) {
...@@ -630,12 +629,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -630,12 +629,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_035 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_035 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_035 subscriber finish"); console.debug("====>inputMethodEngine_test_035 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 35 code: 35
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_036', 0, async function (done) { it('inputMethodEngine_test_036', 0, async function (done) {
...@@ -686,12 +685,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -686,12 +685,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_036 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_036 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_036 subscriber finish"); console.debug("====>inputMethodEngine_test_036 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 36 code: 36
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_037', 0, async function (done) { it('inputMethodEngine_test_037', 0, async function (done) {
...@@ -742,12 +741,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -742,12 +741,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_037 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_037 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_037 subscriber finish"); console.debug("====>inputMethodEngine_test_037 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 37 code: 37
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_038', 0, async function (done) { it('inputMethodEngine_test_038', 0, async function (done) {
...@@ -798,12 +797,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -798,12 +797,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_038 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_038 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_038 subscriber finish"); console.debug("====>inputMethodEngine_test_038 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 38 code: 38
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_039', 0, async function (done) { it('inputMethodEngine_test_039', 0, async function (done) {
...@@ -854,12 +853,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -854,12 +853,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_039 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_039 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_039 subscriber finish"); console.debug("====>inputMethodEngine_test_039 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 39 code: 39
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_040', 0, async function (done) { it('inputMethodEngine_test_040', 0, async function (done) {
...@@ -910,12 +909,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -910,12 +909,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_040 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_040 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_040 subscriber finish"); console.debug("====>inputMethodEngine_test_040 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 40 code: 40
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_041', 0, async function (done) { it('inputMethodEngine_test_041', 0, async function (done) {
...@@ -966,12 +965,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -966,12 +965,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_041 subscriber data:" + JSON.stringify(data)) console.debug("====>inputMethodEngine_test_041 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_041 subscriber finish"); console.debug("====>inputMethodEngine_test_041 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 41 code: 41
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_042', 0, async function (done) { it('inputMethodEngine_test_042', 0, async function (done) {
...@@ -1022,16 +1021,15 @@ export default function inputMethodEngineJSUnit() { ...@@ -1022,16 +1021,15 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_042 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_042 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_042 subscriber finish"); console.debug("====>inputMethodEngine_test_042 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 42 code: 42
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_043', 0, async function (done) { it('inputMethodEngine_test_043', 0, async function (done) {
function unSubscriberCallback(err) { function unSubscriberCallback(err) {
console.debug("====>inputMethodEngine_test_043 unSubscriberCallback start"); console.debug("====>inputMethodEngine_test_043 unSubscriberCallback start");
if (err) { if (err) {
...@@ -1078,16 +1076,15 @@ export default function inputMethodEngineJSUnit() { ...@@ -1078,16 +1076,15 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_043 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_043 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_043 subscriber finish"); console.debug("====>inputMethodEngine_test_043 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 43 code: 43
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_049', 0, async function (done) { it('inputMethodEngine_test_049', 0, async function (done) {
function unSubscriberCallback(err) { function unSubscriberCallback(err) {
console.debug("====>inputMethodEngine_test_049 unSubscriberCallback start"); console.debug("====>inputMethodEngine_test_049 unSubscriberCallback start");
if (err) { if (err) {
...@@ -1133,17 +1130,16 @@ export default function inputMethodEngineJSUnit() { ...@@ -1133,17 +1130,16 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.debug("====>inputMethodEngine_test_049 subscriber data:" + JSON.stringify(data)) console.debug("====>inputMethodEngine_test_049 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_049 subscriber finish") console.debug("====>inputMethodEngine_test_049 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 49 code: 49
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_050', 0, async function (done) { it('inputMethodEngine_test_050', 0, async function (done) {
function unSubscriberCallback(err) { function unSubscriberCallback(err) {
console.debug("====>inputMethodEngine_test_050 unSubscriberCallback start"); console.debug("====>inputMethodEngine_test_050 unSubscriberCallback start");
if (err) { if (err) {
...@@ -1190,12 +1186,12 @@ export default function inputMethodEngineJSUnit() { ...@@ -1190,12 +1186,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_050 subscriber data:" + JSON.stringify(data)); console.debug("====>inputMethodEngine_test_050 subscriber data:" + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_050 subscriber finish"); console.debug("====>inputMethodEngine_test_050 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 50 code: 50
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback); commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_071', 0, async function (done) { it('inputMethodEngine_test_071', 0, async function (done) {
...@@ -1244,13 +1240,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1244,13 +1240,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_071 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_071 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_071 subscriber finish") console.info("====>inputMethodEngine_test_071 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 71 code: 71
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_072', 0, async function (done) { it('inputMethodEngine_test_072', 0, async function (done) {
...@@ -1299,13 +1295,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1299,13 +1295,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_072 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_072 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_072 subscriber finish") console.info("====>inputMethodEngine_test_072 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 72 code: 72
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_073', 0, async function (done) { it('inputMethodEngine_test_073', 0, async function (done) {
...@@ -1358,13 +1354,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1358,13 +1354,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_073 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_073 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_073 subscriber finish") console.info("====>inputMethodEngine_test_073 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 73 code: 73
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_074', 0, async function (done) { it('inputMethodEngine_test_074', 0, async function (done) {
...@@ -1413,13 +1409,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1413,13 +1409,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_074 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_074 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_074 subscriber finish") console.info("====>inputMethodEngine_test_074 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 74 code: 74
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_076', 0, async function (done) { it('inputMethodEngine_test_076', 0, async function (done) {
...@@ -1468,13 +1464,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1468,13 +1464,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_076 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_076 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_076 subscriber finish") console.info("====>inputMethodEngine_test_076 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 76 code: 76
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
it('inputMethodEngine_test_077', 0, async function (done) { it('inputMethodEngine_test_077', 0, async function (done) {
...@@ -1523,13 +1519,13 @@ export default function inputMethodEngineJSUnit() { ...@@ -1523,13 +1519,13 @@ export default function inputMethodEngineJSUnit() {
subscriber = data; subscriber = data;
console.info("====>inputMethodEngine_test_077 subscriber data:" + JSON.stringify(data)) console.info("====>inputMethodEngine_test_077 subscriber data:" + JSON.stringify(data))
commoneventmanager.subscribe(subscriber, subscriberCallback); commoneventmanager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodEngine_test_077 subscriber finish") console.info("====>inputMethodEngine_test_077 subscriber finish");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 77 code: 77
} }
commoneventmanager.publish('test1', commonEventPublishData, publishCallback) commoneventmanager.publish('test1', commonEventPublishData, publishCallback);
})
}); });
}) })
......
...@@ -126,12 +126,12 @@ export default function inputMethodWindManageAbility() { ...@@ -126,12 +126,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_createPanelCallback_0010 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 10 code: 10
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_createPanelPromise_0020', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_createPanelPromise_0020', 0, async function (done) {
...@@ -178,12 +178,12 @@ export default function inputMethodWindManageAbility() { ...@@ -178,12 +178,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_createPanelPromise_0020 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 20 code: 20
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030', 0, async function (done) {
...@@ -230,12 +230,12 @@ export default function inputMethodWindManageAbility() { ...@@ -230,12 +230,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 30 code: 30
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040', 0, async function (done) {
...@@ -282,12 +282,12 @@ export default function inputMethodWindManageAbility() { ...@@ -282,12 +282,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 40 code: 40
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_setUiContentCallback_0050', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_setUiContentCallback_0050', 0, async function (done) {
...@@ -334,12 +334,12 @@ export default function inputMethodWindManageAbility() { ...@@ -334,12 +334,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0050 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 50 code: 50
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_setUiContentPromise_0060', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_setUiContentPromise_0060', 0, async function (done) {
...@@ -386,12 +386,12 @@ export default function inputMethodWindManageAbility() { ...@@ -386,12 +386,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0060 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 60 code: 60
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_setUiContentCallback_0070', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_setUiContentCallback_0070', 0, async function (done) {
...@@ -438,12 +438,12 @@ export default function inputMethodWindManageAbility() { ...@@ -438,12 +438,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentCallback_0070 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 70 code: 70
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_setUiContentPromise_0080', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_setUiContentPromise_0080', 0, async function (done) {
...@@ -490,12 +490,12 @@ export default function inputMethodWindManageAbility() { ...@@ -490,12 +490,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_setUiContentPromise_0080 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 80 code: 80
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_resizeCallback_0090', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_resizeCallback_0090', 0, async function (done) {
...@@ -542,12 +542,12 @@ export default function inputMethodWindManageAbility() { ...@@ -542,12 +542,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_resizeCallback_0090 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 90 code: 90
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_resizePromise_0100', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_resizePromise_0100', 0, async function (done) {
...@@ -594,12 +594,12 @@ export default function inputMethodWindManageAbility() { ...@@ -594,12 +594,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_resizePromise_0100 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 100 code: 100
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_moveToCallback_0110', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_moveToCallback_0110', 0, async function (done) {
...@@ -646,12 +646,12 @@ export default function inputMethodWindManageAbility() { ...@@ -646,12 +646,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_moveToCallback_0110 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 110 code: 110
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_moveToPromise_0120', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_moveToPromise_0120', 0, async function (done) {
...@@ -698,12 +698,12 @@ export default function inputMethodWindManageAbility() { ...@@ -698,12 +698,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_moveToPromise_0120 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 120 code: 120
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_showCallback_0130', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_showCallback_0130', 0, async function (done) {
...@@ -750,12 +750,12 @@ export default function inputMethodWindManageAbility() { ...@@ -750,12 +750,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_showCallback_0130 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 130 code: 130
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_hideCallback_0150', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_hideCallback_0150', 0, async function (done) {
...@@ -802,12 +802,12 @@ export default function inputMethodWindManageAbility() { ...@@ -802,12 +802,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_hideCallback_0150 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 150 code: 150
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_showPromise_0140', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_showPromise_0140', 0, async function (done) {
...@@ -854,12 +854,12 @@ export default function inputMethodWindManageAbility() { ...@@ -854,12 +854,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_showPromise_0140 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 140 code: 140
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_hidePromise_0160', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_hidePromise_0160', 0, async function (done) {
...@@ -906,12 +906,12 @@ export default function inputMethodWindManageAbility() { ...@@ -906,12 +906,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_hidePromise_0160 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 160 code: 160
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_onShow_0170', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_onShow_0170', 0, async function (done) {
...@@ -958,12 +958,12 @@ export default function inputMethodWindManageAbility() { ...@@ -958,12 +958,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_onShow_0170 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 170 code: 170
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_onHide_0180', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_onHide_0180', 0, async function (done) {
...@@ -1010,12 +1010,12 @@ export default function inputMethodWindManageAbility() { ...@@ -1010,12 +1010,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_onHide_0180 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 180 code: 180
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_offShow_0190', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_offShow_0190', 0, async function (done) {
...@@ -1062,12 +1062,12 @@ export default function inputMethodWindManageAbility() { ...@@ -1062,12 +1062,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_offShow_0190 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 190 code: 190
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_Panel_offHide_0200', 0, async function (done) { it('Sub_Misc_inputMethod_Panel_offHide_0200', 0, async function (done) {
...@@ -1114,12 +1114,12 @@ export default function inputMethodWindManageAbility() { ...@@ -1114,12 +1114,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_offHide_0200 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 200 code: 200
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
it('Sub_Misc_inputMethod_onImeShow_0201', 0, async function (done) { it('Sub_Misc_inputMethod_onImeShow_0201', 0, async function (done) {
...@@ -1322,12 +1322,12 @@ export default function inputMethodWindManageAbility() { ...@@ -1322,12 +1322,12 @@ export default function inputMethodWindManageAbility() {
console.info("====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe data: " + JSON.stringify(data)); console.info("====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe data: " + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback); commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe finish===="); console.info("====>Sub_Misc_inputMethod_Panel_changeFlag_0210 subscribe finish====");
})
var commonEventPublishData = { var commonEventPublishData = {
code: 210 code: 210
} }
commonEventManager.publish("test", commonEventPublishData, publishCallback); commonEventManager.publish("test", commonEventPublishData, publishCallback);
})
}); });
......
...@@ -86,6 +86,35 @@ export default function requestDownloadJSUnit() { ...@@ -86,6 +86,35 @@ export default function requestDownloadJSUnit() {
done(); done();
}) })
/**
* @tc.number SUB_MISC_REQUEST_DOWNLOAD_broken_0010
* @tc.name T download task
* @tc.desc Test requestUploadTest API functionality.
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_MISC_REQUEST_DOWNLOAD_broken_0010', 0, async function (done) {
console.info("====>-----------------------SUB_MISC_REQUEST_DOWNLOAD_broken_0010 is starting-----------------------");
try {
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.OTHERS: " + request.agent.Broken.OTHERS);
expect(request.agent.Broken.OTHERS).assertEqual(255);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.DISCONNECTED: " + request.agent.Broken.DISCONNECTED);
expect(request.agent.Broken.DISCONNECTED).assertEqual(0);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.TIMEOUT: " + request.agent.Broken.TIMEOUT);
expect(request.agent.Broken.TIMEOUT).assertEqual(16);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.PROTOCOL: " + request.agent.Broken.PROTOCOL);
expect(request.agent.Broken.PROTOCOL).assertEqual(32);
console.info("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 request.agent.Broken.FSIO: " + request.agent.Broken.FSIO);
expect(request.agent.Broken.FSIO).assertEqual(64);
} catch (err) {
console.error("====>SUB_MISC_REQUEST_DOWNLOAD_broken_0010 error: " + err);
expect().assertFail();
}
console.info("====>-----------------------SUB_MISC_REQUEST_DOWNLOAD_broken_0010 end-----------------------");
done();
});
/** /**
* @tc.number SUB_Misc_REQUEST_Create_Download_Callback_0010 * @tc.number SUB_Misc_REQUEST_Create_Download_Callback_0010
* @tc.desc Starts a download session. * @tc.desc Starts a download session.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册