diff --git a/inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets b/inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets index 66e02652a8ec4e7245ab6ab75f899cfccb481058..6035aaa9cbbdb8e06af002e39596b456a95ef6cc 100644 --- a/inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets +++ b/inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets @@ -21,8 +21,10 @@ import testsuite from '../../test/List.test' @Component struct Index { @State message: string = 'Hello World'; - @State inputValue: string = 'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine' + - 'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine'; + @State inputValue: string = 'inputMethodEngine1inputMethodEngine2inputMethodEngine3inputMethodEngine' + + 'inputMethodEngine4inputMethodEngine5inputMethodEngine6inputMethodEngine7inputMethodEngine8inputMethodEn' + + 'gine9inputMethodEngine10inputMethodEngine11inputMethodEngine12inputMethodEngine13inputMethodEngine14inputMet' + + 'hodEngine15inputMethodEngine16inputMethodEngine17inputMethodEngine18inputMethodEngine19inputMethodEngine20inputMethodEngine21'; build() { Row() { @@ -32,7 +34,6 @@ struct Index { .fontWeight(FontWeight.Bold) .defaultFocus(true) TextArea({ text: this.inputValue }) - .height(50) .onChange((value: string) => { this.inputValue = value; }) 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 17b51299a64d6fa477d4f14f089f3e7abcbe2465..8b1e2d3fb9fe7e4c790b7f442a4ae1bc2a047795 100644 --- a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets +++ b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets @@ -48,9 +48,9 @@ export default function inputMethodAbility() { inputServer.id = inputM.methodId; console.info("====>beforeAll inputMethodStageJSUnit start"); let inputDemoService: subtype ={ - id: 'com.acts.inputmethodengine.test', - label: 'inputStageService', - name: '', + id: 'inputStageService', + label: '', + name: 'com.acts.inputmethodengine.test', mode: 'lower', locale: '', language: '', 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 1f2f6b7236f999e01d38027835065cac1c19f31b..db46fcb70263e7f36f0e91c6f4e9035dd4bd2c44 100644 --- a/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets +++ b/inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets @@ -42,9 +42,9 @@ export default function inputMethodEngineJSUnit() { inputSever.id = inputM.methodId; let inputDemoService: subtype = { - id: "com.acts.inputmethodengine.test", - label: "InputDemoService", - name: "", + id: "InputDemoService", + label: "", + name: "com.acts.inputmethodengine.test", mode: "lower", locale: "", language: "", diff --git a/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets b/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets index 933393f0a8dc54f82323360936591fe4a6bdff48..beb38afa388c24f9a61f82422e8905a374547823 100644 --- a/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets +++ b/inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets @@ -143,7 +143,7 @@ export default function inputMethodStageJSUnit() { * @tc.desc Function test * @tc.level 2 */ - + it('inputMethod_test_listInputMethodSubtype_003', 0, async function (done) { console.info("====>-----------------inputMethod_test_listInputMethodSubtype_003 start---------------------"); let inputM = inputMethod.getCurrentInputMethod() @@ -200,32 +200,32 @@ export default function inputMethodStageJSUnit() { extra:{} } - let inputMethodSetting = inputMethod.getSetting(); - console.info("====>inputMethod_test_listInputMethodSubtype_004 getSetting result:" + inputMethodSetting); - inputMethodSetting.listInputMethodSubtype(inputMethodProperty).then((data) => { - try{ - console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype:" + JSON.stringify(data)); - if(data.length >= 1){ - let inputMethodSubtype = data[0] - console.info("====>inputMethod_test_listInputMethodSubtype_004 inputMethodSubtype" + JSON.stringify(inputMethodSubtype)); - expect(inputMethodSubtype.id != null).assertTrue(); - expect(inputMethodSubtype.label != null).assertTrue(); - done(); - }else{ - console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype length less 1"); + let inputMethodSetting = inputMethod.getSetting(); + console.info("====>inputMethod_test_listInputMethodSubtype_004 getSetting result:" + inputMethodSetting); + inputMethodSetting.listInputMethodSubtype(inputMethodProperty).then((data) => { + try{ + console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype:" + JSON.stringify(data)); + if(data.length >= 1){ + let inputMethodSubtype = data[0] + console.info("====>inputMethod_test_listInputMethodSubtype_004 inputMethodSubtype" + JSON.stringify(inputMethodSubtype)); + expect(inputMethodSubtype.id != null).assertTrue(); + expect(inputMethodSubtype.label != null).assertTrue(); + done(); + }else{ + console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype length less 1"); + expect().assertFail(); + done(); + } + }catch(error){ + console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype catch error" + JSON.stringify(error)); expect().assertFail(); done(); } - }catch(error){ - console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype catch error" + JSON.stringify(error)); + }).catch(err => { + console.info("====>inputMethod_test_listInputMethodSubtype_004 failed" + JSON.stringify(err)); expect().assertFail(); done(); - } - }).catch(err => { - console.info("====>inputMethod_test_listInputMethodSubtype_004 failed" + JSON.stringify(err)); - expect().assertFail(); - done(); - }); + }); console.info("====>-----------------inputMethod_test_listInputMethodSubtype_004 end---------------------"); }); @@ -335,8 +335,8 @@ export default function inputMethodStageJSUnit() { console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); let inputMethodSubProperty : subtype = { id: inputMS.id, - label: inputMS.label, - name: "", + label: "", + name: inputMS.name, mode: "lower", locale: "", language: "", @@ -387,8 +387,8 @@ export default function inputMethodStageJSUnit() { console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); let inputMethodSubProperty : subtype = { id: inputMS.id, - label: inputMS.label, - name: "", + label: "", + name: inputMS.name, mode: "lower", locale: "", language: "", @@ -427,8 +427,8 @@ export default function inputMethodStageJSUnit() { console.info("inputMethod_test_switchCurrentInputMethodSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); let inputMethodSubProperty : subtype = { id: inputMS.id, - label: inputMS.label, - name: "", + label: "", + name: inputMS.name, mode: "lower", locale: "", language: "", @@ -467,8 +467,8 @@ export default function inputMethodStageJSUnit() { console.info("inputMethod_test_switchCurrentInputMethodSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); let inputMethodSubProperty : subtype = { id: inputMS.id, - label: inputMS.label, - name: "", + label: "", + name: inputMS.name, mode: "lower", locale: "", language: "", @@ -493,7 +493,6 @@ export default function inputMethodStageJSUnit() { done(); }; console.info("====>************* inputMethod_test_switchCurrentInputMethodSubtype_002 Test end*************"); - done(); }); /* @@ -608,6 +607,6 @@ export default function inputMethodStageJSUnit() { } }) }); - + }); };