diff --git a/inputmethod/InputMethodEngine/Test.json b/inputmethod/InputMethodEngine/Test.json index c836f7fcc71bc99a266dce9ad629a0f74395c1e5..849365c2841bddae004acd4c2fbfd780c6be10ff 100644 --- a/inputmethod/InputMethodEngine/Test.json +++ b/inputmethod/InputMethodEngine/Test.json @@ -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 + } + ] } diff --git a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets index eacabef3f1e31a53c9b598484d2a0eb4de13d599..9215ff7ade570dc7b5289ad2b9ea70e6c814c410 100644 --- a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets +++ b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets @@ -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) { diff --git a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets index db46fcb70263e7f36f0e91c6f4e9035dd4bd2c44..3ceb226b93babc0dc5ae3643e37c6e8521ab4bec 100644 --- a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets +++ b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets @@ -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) {