Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d4254cb6
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看板
提交
d4254cb6
编写于
12月 27, 2022
作者:
W
wuchengwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change subclass to subClass
Signed-off-by:
N
wuchengwen
<
wuchengwen4@huawei.com
>
上级
6943555f
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js
...standard/src/main/js/default/test/UsbCoreJsunitEx.test.js
+2
-2
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js
...dard/src/main/js/default/test/UsbDevicePipeJsunit.test.js
+1
-1
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js
...rd/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js
+1
-1
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js
...rd/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js
+1
-1
未找到文件。
usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js
浏览文件 @
d4254cb6
...
@@ -456,14 +456,14 @@ describe('UsbCoreJsFunctionsTestEx', function () {
...
@@ -456,14 +456,14 @@ describe('UsbCoreJsFunctionsTestEx', function () {
}
}
var
device
=
JSON
.
parse
(
JSON
.
stringify
(
gDeviceList
[
0
]));
var
device
=
JSON
.
parse
(
JSON
.
stringify
(
gDeviceList
[
0
]));
device
.
sub
c
lass
=
2
+
10000
device
.
sub
C
lass
=
2
+
10000
try
{
try
{
var
usbDevicePipe
=
usb
.
connectDevice
(
device
)
var
usbDevicePipe
=
usb
.
connectDevice
(
device
)
}
catch
(
err
)
{
}
catch
(
err
)
{
expect
(
true
).
assertTrue
();
expect
(
true
).
assertTrue
();
console
.
info
(
'
usb connectDevice fail:
'
+
err
);
console
.
info
(
'
usb connectDevice fail:
'
+
err
);
}
}
console
.
info
(
'
usb case connectDevice ret:
'
+
JSON
.
stringify
(
usbDevicePipe
)
+
'
sub
class
'
+
device
.
subc
lass
);
console
.
info
(
'
usb case connectDevice ret:
'
+
JSON
.
stringify
(
usbDevicePipe
)
+
'
sub
Class
'
+
device
.
subC
lass
);
expect
(
CheckEmptyUtils
.
isEmpty
(
usbDevicePipe
)).
assertFalse
();
expect
(
CheckEmptyUtils
.
isEmpty
(
usbDevicePipe
)).
assertFalse
();
var
isPipClose
=
usb
.
closePipe
(
usbDevicePipe
);
var
isPipClose
=
usb
.
closePipe
(
usbDevicePipe
);
console
.
info
(
'
usb case closePipe ret:
'
+
isPipClose
);
console
.
info
(
'
usb case closePipe ret:
'
+
isPipClose
);
...
...
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js
浏览文件 @
d4254cb6
...
@@ -87,7 +87,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
...
@@ -87,7 +87,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
}
}
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
testParam
.
config
.
interfaces
[
j
].
sub
c
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
sub
C
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
return
false
return
false
}
}
...
...
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js
浏览文件 @
d4254cb6
...
@@ -84,7 +84,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
...
@@ -84,7 +84,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
function
getFlag
(
testParam
,
j
)
{
function
getFlag
(
testParam
,
j
)
{
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
testParam
.
config
.
interfaces
[
j
].
sub
c
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
sub
C
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
return
false
return
false
}
}
...
...
usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js
浏览文件 @
d4254cb6
...
@@ -93,7 +93,7 @@ describe('UsbDevicePipeJsFunctionsTestA', function () {
...
@@ -93,7 +93,7 @@ describe('UsbDevicePipeJsFunctionsTestA', function () {
}
}
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
if
(
testParam
.
config
.
interfaces
[
j
].
clazz
!=
10
||
testParam
.
config
.
interfaces
[
j
].
sub
c
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
sub
C
lass
!=
0
||
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
testParam
.
config
.
interfaces
[
j
].
protocol
!=
2
)
{
return
false
return
false
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录