Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f8533bf1
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看板
未验证
提交
f8533bf1
编写于
9月 15, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5457 用例修改
Merge pull request !5457 from mayunteng/master
上级
b43eeebb
a4f92cb9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
7 deletion
+3
-7
multimodalinput/input_js_standard/src/main/js/test/InputDevice.test.js
...ut/input_js_standard/src/main/js/test/InputDevice.test.js
+3
-7
未找到文件。
multimodalinput/input_js_standard/src/main/js/test/InputDevice.test.js
浏览文件 @
f8533bf1
...
@@ -272,13 +272,12 @@ describe('MultimodalInput_Device_test', function () {
...
@@ -272,13 +272,12 @@ describe('MultimodalInput_Device_test', function () {
* @tc.name MultimodalInputDevice_getDeviceIds_Promise_test
* @tc.name MultimodalInputDevice_getDeviceIds_Promise_test
* @tc.desc inputdevice interface getDeviceIds & supportKeys test
* @tc.desc inputdevice interface getDeviceIds & supportKeys test
*/
*/
it
(
"
MultimodalInputDevice_getDeviceIds_Promise_test
"
,
0
,
async
function
(
done
)
{
it
(
"
MultimodalInputDevice_getDeviceIds_Promise_test
"
,
0
,
function
(
)
{
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test enter`
);
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test enter`
);
inputDevice
.
getDeviceIds
().
then
((
data
,
err
)
=>
{
inputDevice
.
getDeviceIds
().
then
((
data
,
err
)
=>
{
if
(
err
)
{
if
(
err
)
{
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test err`
);
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test err`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
}
else
{
}
else
{
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test data`
);
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test data`
);
for
(
let
i
=
0
;
i
<
data
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
++
i
)
{
...
@@ -286,7 +285,6 @@ describe('MultimodalInput_Device_test', function () {
...
@@ -286,7 +285,6 @@ describe('MultimodalInput_Device_test', function () {
expect
(
res
).
assertInstanceOf
(
'
Array
'
);
expect
(
res
).
assertInstanceOf
(
'
Array
'
);
});
});
}
}
done
();
}
}
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test exit`
);
console
.
info
(
`MultimodalInputDevice_getDeviceIds_Promise_test exit`
);
});
});
...
@@ -297,18 +295,16 @@ describe('MultimodalInput_Device_test', function () {
...
@@ -297,18 +295,16 @@ describe('MultimodalInput_Device_test', function () {
* @tc.name MultimodalInputDevice_getDevice_Promise_test
* @tc.name MultimodalInputDevice_getDevice_Promise_test
* @tc.desc inputdevice interface getDevice test
* @tc.desc inputdevice interface getDevice test
*/
*/
it
(
"
MultimodalInputDevice_getDevice_Promise_test
"
,
0
,
async
function
(
done
)
{
it
(
"
MultimodalInputDevice_getDevice_Promise_test
"
,
0
,
function
(
)
{
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test enter`
);
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test enter`
);
inputDevice
.
getDevice
(
-
1
).
then
((
data
,
err
)
=>
{
inputDevice
.
getDevice
(
-
1
).
then
((
data
,
err
)
=>
{
if
(
err
)
{
if
(
err
)
{
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test err`
);
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test err`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test
${
JSON
.
stringify
(
err
)}
`
);
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test
${
JSON
.
stringify
(
err
)}
`
);
done
();
}
else
{
}
else
{
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test data`
);
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test data`
);
expect
(
JSON
.
stringify
(
data
)
!==
"
{}
"
).
assertTrue
();
expect
(
JSON
.
stringify
(
data
)
!==
"
{}
"
).
assertTrue
();
done
();
}
}
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test exit`
);
console
.
info
(
`MultimodalInputDevice_getDevice_Promise_test exit`
);
});
});
...
@@ -356,4 +352,4 @@ describe('MultimodalInput_Device_test', function () {
...
@@ -356,4 +352,4 @@ describe('MultimodalInput_Device_test', function () {
})
})
})
})
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录