Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
faab0eb2
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看板
未验证
提交
faab0eb2
编写于
12月 29, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
!7021 change subclass to subClass
Merge pull request !7021 from 吴成文/master
上级
61ec50bc
45efaff5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
+3
-3
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunit.test.js
...usb_standard/src/main/js/test/UsbDevicePipeJsunit.test.js
+1
-1
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunitEx.test.js
...b_standard/src/main/js/test/UsbDevicePipeJsunitEx.test.js
+1
-1
未找到文件。
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
浏览文件 @
faab0eb2
...
@@ -492,7 +492,7 @@ describe('UsbCoreJsFunctionsTestEx', function () {
...
@@ -492,7 +492,7 @@ describe('UsbCoreJsFunctionsTestEx', function () {
/**
/**
* @tc.number: SUB_USB_JS_0200
* @tc.number: SUB_USB_JS_0200
* @tc.name: connectDevice
* @tc.name: connectDevice
* @tc.desc: Negative test: open device, error sub
c
lass
* @tc.desc: Negative test: open device, error sub
C
lass
*/
*/
it
(
'
SUB_USB_JS_0200
'
,
0
,
function
()
{
it
(
'
SUB_USB_JS_0200
'
,
0
,
function
()
{
console
.
info
(
'
usb connect_device_12 begin
'
);
console
.
info
(
'
usb connect_device_12 begin
'
);
...
@@ -518,14 +518,14 @@ describe('UsbCoreJsFunctionsTestEx', function () {
...
@@ -518,14 +518,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/test/UsbDevicePipeJsunit.test.js
浏览文件 @
faab0eb2
...
@@ -103,7 +103,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
...
@@ -103,7 +103,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/test/UsbDevicePipeJsunitEx.test.js
浏览文件 @
faab0eb2
...
@@ -92,7 +92,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
...
@@ -92,7 +92,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
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录