Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b9f9e41c
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b9f9e41c
编写于
3月 27, 2023
作者:
Z
zhangyushuai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改输入法字段值, 挑单到release3.2 001
Signed-off-by:
N
zhangyushuai
<
zhangyushuai1@huawei.com
>
上级
2b3149b9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
41 addition
and
41 deletion
+41
-41
inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets
...nputMethodEngine/entry/src/main/ets/pages/index/index.ets
+4
-3
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
...ngine/entry/src/main/ets/test/inputMethodAbility.test.ets
+3
-3
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
...Engine/entry/src/main/ets/test/inputMethodEngine.test.ets
+3
-3
inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets
..._Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets
+31
-32
未找到文件。
inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets
浏览文件 @
b9f9e41c
...
...
@@ -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;
})
...
...
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
浏览文件 @
b9f9e41c
...
...
@@ -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
:
''
,
...
...
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
浏览文件 @
b9f9e41c
...
...
@@ -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
:
""
,
...
...
inputmethod/InputMethodTest_Stage/entry/src/main/ets/test/inputMethodStageJSUnit.ets
浏览文件 @
b9f9e41c
...
...
@@ -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(erro
r));
}
).catch(err =>
{
console.info("====>inputMethod_test_listInputMethodSubtype_004
failed" + JSON.stringify(er
r));
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() {
}
})
});
});
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录