未验证 提交 3edf9e2b 编写于 作者: O openharmony_ci 提交者: Gitee

!8239 【杂散】【输入法】修改inputmethod字段值,挑单到release3.2

Merge pull request !8239 from 张育帅/release
...@@ -21,8 +21,10 @@ import testsuite from '../../test/List.test' ...@@ -21,8 +21,10 @@ import testsuite from '../../test/List.test'
@Component @Component
struct Index { struct Index {
@State message: string = 'Hello World'; @State message: string = 'Hello World';
@State inputValue: string = 'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine' + @State inputValue: string = 'inputMethodEngine1inputMethodEngine2inputMethodEngine3inputMethodEngine' +
'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine'; 'inputMethodEngine4inputMethodEngine5inputMethodEngine6inputMethodEngine7inputMethodEngine8inputMethodEn' +
'gine9inputMethodEngine10inputMethodEngine11inputMethodEngine12inputMethodEngine13inputMethodEngine14inputMet' +
'hodEngine15inputMethodEngine16inputMethodEngine17inputMethodEngine18inputMethodEngine19inputMethodEngine20inputMethodEngine21';
build() { build() {
Row() { Row() {
...@@ -32,7 +34,6 @@ struct Index { ...@@ -32,7 +34,6 @@ struct Index {
.fontWeight(FontWeight.Bold) .fontWeight(FontWeight.Bold)
.defaultFocus(true) .defaultFocus(true)
TextArea({ text: this.inputValue }) TextArea({ text: this.inputValue })
.height(50)
.onChange((value: string) => { .onChange((value: string) => {
this.inputValue = value; this.inputValue = value;
}) })
......
...@@ -48,9 +48,9 @@ export default function inputMethodAbility() { ...@@ -48,9 +48,9 @@ export default function inputMethodAbility() {
inputServer.id = inputM.methodId; inputServer.id = inputM.methodId;
console.info("====>beforeAll inputMethodStageJSUnit start"); console.info("====>beforeAll inputMethodStageJSUnit start");
let inputDemoService: subtype ={ let inputDemoService: subtype ={
id: 'com.acts.inputmethodengine.test', id: 'inputStageService',
label: 'inputStageService', label: '',
name: '', name: 'com.acts.inputmethodengine.test',
mode: 'lower', mode: 'lower',
locale: '', locale: '',
language: '', language: '',
......
...@@ -42,9 +42,9 @@ export default function inputMethodEngineJSUnit() { ...@@ -42,9 +42,9 @@ export default function inputMethodEngineJSUnit() {
inputSever.id = inputM.methodId; inputSever.id = inputM.methodId;
let inputDemoService: subtype = { let inputDemoService: subtype = {
id: "com.acts.inputmethodengine.test", id: "InputDemoService",
label: "InputDemoService", label: "",
name: "", name: "com.acts.inputmethodengine.test",
mode: "lower", mode: "lower",
locale: "", locale: "",
language: "", language: "",
......
...@@ -143,7 +143,7 @@ export default function inputMethodStageJSUnit() { ...@@ -143,7 +143,7 @@ export default function inputMethodStageJSUnit() {
* @tc.desc Function test * @tc.desc Function test
* @tc.level 2 * @tc.level 2
*/ */
it('inputMethod_test_listInputMethodSubtype_003', 0, async function (done) { it('inputMethod_test_listInputMethodSubtype_003', 0, async function (done) {
console.info("====>-----------------inputMethod_test_listInputMethodSubtype_003 start---------------------"); console.info("====>-----------------inputMethod_test_listInputMethodSubtype_003 start---------------------");
let inputM = inputMethod.getCurrentInputMethod() let inputM = inputMethod.getCurrentInputMethod()
...@@ -200,32 +200,32 @@ export default function inputMethodStageJSUnit() { ...@@ -200,32 +200,32 @@ export default function inputMethodStageJSUnit() {
extra:{} extra:{}
} }
let inputMethodSetting = inputMethod.getSetting(); let inputMethodSetting = inputMethod.getSetting();
console.info("====>inputMethod_test_listInputMethodSubtype_004 getSetting result:" + inputMethodSetting); console.info("====>inputMethod_test_listInputMethodSubtype_004 getSetting result:" + inputMethodSetting);
inputMethodSetting.listInputMethodSubtype(inputMethodProperty).then((data) => { inputMethodSetting.listInputMethodSubtype(inputMethodProperty).then((data) => {
try{ try{
console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype:" + JSON.stringify(data)); console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype:" + JSON.stringify(data));
if(data.length >= 1){ if(data.length >= 1){
let inputMethodSubtype = data[0] let inputMethodSubtype = data[0]
console.info("====>inputMethod_test_listInputMethodSubtype_004 inputMethodSubtype" + JSON.stringify(inputMethodSubtype)); console.info("====>inputMethod_test_listInputMethodSubtype_004 inputMethodSubtype" + JSON.stringify(inputMethodSubtype));
expect(inputMethodSubtype.id != null).assertTrue(); expect(inputMethodSubtype.id != null).assertTrue();
expect(inputMethodSubtype.label != null).assertTrue(); expect(inputMethodSubtype.label != null).assertTrue();
done(); done();
}else{ }else{
console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype length less 1"); 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(); expect().assertFail();
done(); done();
} }
}catch(error){ }).catch(err => {
console.info("====>inputMethod_test_listInputMethodSubtype_004 listInputMethodSubtype catch error" + JSON.stringify(error)); console.info("====>inputMethod_test_listInputMethodSubtype_004 failed" + JSON.stringify(err));
expect().assertFail(); expect().assertFail();
done(); done();
} });
}).catch(err => {
console.info("====>inputMethod_test_listInputMethodSubtype_004 failed" + JSON.stringify(err));
expect().assertFail();
done();
});
console.info("====>-----------------inputMethod_test_listInputMethodSubtype_004 end---------------------"); console.info("====>-----------------inputMethod_test_listInputMethodSubtype_004 end---------------------");
}); });
...@@ -335,8 +335,8 @@ export default function inputMethodStageJSUnit() { ...@@ -335,8 +335,8 @@ export default function inputMethodStageJSUnit() {
console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS));
let inputMethodSubProperty : subtype = { let inputMethodSubProperty : subtype = {
id: inputMS.id, id: inputMS.id,
label: inputMS.label, label: "",
name: "", name: inputMS.name,
mode: "lower", mode: "lower",
locale: "", locale: "",
language: "", language: "",
...@@ -387,8 +387,8 @@ export default function inputMethodStageJSUnit() { ...@@ -387,8 +387,8 @@ export default function inputMethodStageJSUnit() {
console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); console.info("inputMethod_test_switchCurrentInputMethodAndSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS));
let inputMethodSubProperty : subtype = { let inputMethodSubProperty : subtype = {
id: inputMS.id, id: inputMS.id,
label: inputMS.label, label: "",
name: "", name: inputMS.name,
mode: "lower", mode: "lower",
locale: "", locale: "",
language: "", language: "",
...@@ -427,8 +427,8 @@ export default function inputMethodStageJSUnit() { ...@@ -427,8 +427,8 @@ export default function inputMethodStageJSUnit() {
console.info("inputMethod_test_switchCurrentInputMethodSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); console.info("inputMethod_test_switchCurrentInputMethodSubtype_001 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS));
let inputMethodSubProperty : subtype = { let inputMethodSubProperty : subtype = {
id: inputMS.id, id: inputMS.id,
label: inputMS.label, label: "",
name: "", name: inputMS.name,
mode: "lower", mode: "lower",
locale: "", locale: "",
language: "", language: "",
...@@ -467,8 +467,8 @@ export default function inputMethodStageJSUnit() { ...@@ -467,8 +467,8 @@ export default function inputMethodStageJSUnit() {
console.info("inputMethod_test_switchCurrentInputMethodSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS)); console.info("inputMethod_test_switchCurrentInputMethodSubtype_002 getCurrentInputMethodSubtype: " + JSON.stringify(inputMS));
let inputMethodSubProperty : subtype = { let inputMethodSubProperty : subtype = {
id: inputMS.id, id: inputMS.id,
label: inputMS.label, label: "",
name: "", name: inputMS.name,
mode: "lower", mode: "lower",
locale: "", locale: "",
language: "", language: "",
...@@ -493,7 +493,6 @@ export default function inputMethodStageJSUnit() { ...@@ -493,7 +493,6 @@ export default function inputMethodStageJSUnit() {
done(); done();
}; };
console.info("====>************* inputMethod_test_switchCurrentInputMethodSubtype_002 Test end*************"); console.info("====>************* inputMethod_test_switchCurrentInputMethodSubtype_002 Test end*************");
done();
}); });
/* /*
...@@ -608,6 +607,6 @@ export default function inputMethodStageJSUnit() { ...@@ -608,6 +607,6 @@ export default function inputMethodStageJSUnit() {
} }
}) })
}); });
}); });
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册