提交 57491093 编写于 作者: Z zhangyushuai

优化inputmethod用例 001

Signed-off-by: Nzhangyushuai <zhangyushuai1@huawei.com>
上级 c4b0f58b
......@@ -8,11 +8,22 @@
"shell-timeout": "600000",
"testcase-timeout": 15000
},
"kits": [{
"test-file-name": [
"ActsInputMethodEngineTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}]
"kits": [
{
"type": "ShellKit",
"run-command": [
"power-shell wakeup",
"power-shell setmode 602",
"uinput -T -m 300 720 300 360 200",
"uinput -T -m 650 2760 650 1380 200"
]
},
{
"test-file-name": [
"ActsInputMethodEngineTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -299,12 +299,12 @@ export default function inputMethodAbility() {
console.info("====>inputMethodAbility_test_getInputMethodAbility_001 subscriber data:" + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodAbility_test_getInputMethodAbility_001 subscriber finish");
})
var commonEventPublishData = {
code: 1
}
commonEventManager.publish('test', commonEventPublishData, publishCallback);
let commonEventPublishData = {
code: 1
}
commonEventManager.publish('test', commonEventPublishData, publishCallback);
})
});
it('inputMethodAbility_test_getKeyboardDelegate_001', 0, async function (done) {
......@@ -355,12 +355,12 @@ export default function inputMethodAbility() {
console.info("====>inputMethodAbility_test_getKeyboardDelegate_001 subscriber data:" + JSON.stringify(data));
commonEventManager.subscribe(subscriber, subscriberCallback);
console.info("====>inputMethodAbility_test_getKeyboardDelegate_001 subscriber finish");
})
var commonEventPublishData = {
code: 2
}
commonEventManager.publish('test', commonEventPublishData, publishCallback);
let commonEventPublishData = {
code: 2
}
commonEventManager.publish('test', commonEventPublishData, publishCallback);
})
});
it('inputMethodAbility_test_028', 0, async function (done) {
......
......@@ -133,13 +133,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_getInputMethodEngine_001 subscribe data: " + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_getInputMethodEngine_001 subscribe finish====");
})
var commonEventPublishData = {
code: 1
}
commoneventmanager.publish("test1", commonEventPublishData, publishCallback);
let commonEventPublishData = {
code: 1
}
commoneventmanager.publish("test1", commonEventPublishData, publishCallback);
})
});
it('inputMethodEngine_test_getKeyboardDelegate_001', 0, async function (done) {
......@@ -186,13 +185,12 @@ export default function inputMethodEngineJSUnit() {
console.debug("====>inputMethodEngine_test_getKeyboardDelegate_001 subscribe data: " + JSON.stringify(data));
commoneventmanager.subscribe(subscriber, subscriberCallback);
console.debug("====>inputMethodEngine_test_getKeyboardDelegate_001 subscribe finish====");
})
var commonEventPublishData = {
code: 2
}
commoneventmanager.publish("test1", commonEventPublishData, publishCallback);
let commonEventPublishData = {
code: 2
}
commoneventmanager.publish("test1", commonEventPublishData, publishCallback);
})
});
it('inputMethodEngine_test_028', 0, async function (done) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册