Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7a8078da
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看板
提交
7a8078da
编写于
3月 11, 2023
作者:
L
lixiaofeng_154b
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
适配用例
Signed-off-by:
N
lixiaofeng_154b
<
lixiaofeng54@huawei.com
>
上级
82483e69
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
2 deletion
+18
-2
usb/usb_standard/src/main/js/test/UsbCoreJsunit.test.js
usb/usb_standard/src/main/js/test/UsbCoreJsunit.test.js
+4
-0
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
+5
-1
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunit.test.js
...usb_standard/src/main/js/test/UsbDevicePipeJsunit.test.js
+4
-0
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunitEx.test.js
...b_standard/src/main/js/test/UsbDevicePipeJsunitEx.test.js
+4
-0
usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js
...tandard/src/main/js/test/UsbPortAndFunctionJsunit.test.js
+1
-1
未找到文件。
usb/usb_standard/src/main/js/test/UsbCoreJsunit.test.js
浏览文件 @
7a8078da
...
@@ -32,6 +32,10 @@ describe('UsbCoreJsFunctionsTest', function () {
...
@@ -32,6 +32,10 @@ describe('UsbCoreJsFunctionsTest', function () {
console
.
info
(
'
begin test getversion :
'
+
Version
)
console
.
info
(
'
begin test getversion :
'
+
Version
)
// version > 17 host currentMode = 2 device currentMode = 1
// version > 17 host currentMode = 2 device currentMode = 1
var
usbPortList
=
usb
.
getPorts
()
var
usbPortList
=
usb
.
getPorts
()
if
(
usbPortList
==
undefined
)
{
portCurrentMode
=
1
;
return
}
gDeviceList
=
usb
.
getDevices
();
gDeviceList
=
usb
.
getDevices
();
if
(
usbPortList
.
length
>
0
)
{
if
(
usbPortList
.
length
>
0
)
{
console
.
info
(
'
usb case gDeviceList.length return:
'
+
gDeviceList
.
length
);
console
.
info
(
'
usb case gDeviceList.length return:
'
+
gDeviceList
.
length
);
...
...
usb/usb_standard/src/main/js/test/UsbCoreJsunitEx.test.js
浏览文件 @
7a8078da
/*
/*
* Copyright (c) 2021-202
2
Huawei Device Co., Ltd.
* Copyright (c) 2021-202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
@@ -32,6 +32,10 @@ describe('UsbCoreJsFunctionsTestEx', function () {
...
@@ -32,6 +32,10 @@ describe('UsbCoreJsFunctionsTestEx', function () {
console
.
info
(
'
begin test getversion :
'
+
Version
)
console
.
info
(
'
begin test getversion :
'
+
Version
)
// version > 17 host currentMode = 2 device currentMode = 1
// version > 17 host currentMode = 2 device currentMode = 1
var
usbPortList
=
usb
.
getPorts
()
var
usbPortList
=
usb
.
getPorts
()
if
(
usbPortList
==
undefined
)
{
portCurrentMode
=
1
;
return
}
gDeviceList
=
usb
.
getDevices
();
gDeviceList
=
usb
.
getDevices
();
if
(
usbPortList
.
length
>
0
)
{
if
(
usbPortList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
...
...
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunit.test.js
浏览文件 @
7a8078da
...
@@ -33,6 +33,10 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
...
@@ -33,6 +33,10 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
console
.
info
(
'
usb unit begin test getversion :
'
+
Version
)
console
.
info
(
'
usb unit begin test getversion :
'
+
Version
)
// version > 17 host currentMode = 2 device currentMode = 1
// version > 17 host currentMode = 2 device currentMode = 1
var
usbPortList
=
usb
.
getPorts
()
var
usbPortList
=
usb
.
getPorts
()
if
(
usbPortList
==
undefined
)
{
portCurrentMode
=
1
;
return
}
gDeviceList
=
usb
.
getDevices
();
gDeviceList
=
usb
.
getDevices
();
if
(
usbPortList
.
length
>
0
)
{
if
(
usbPortList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
...
...
usb/usb_standard/src/main/js/test/UsbDevicePipeJsunitEx.test.js
浏览文件 @
7a8078da
...
@@ -33,6 +33,10 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
...
@@ -33,6 +33,10 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
// version > 17 host currentMode = 2 device currentMode = 1
// version > 17 host currentMode = 2 device currentMode = 1
var
usbPortList
=
usb
.
getPorts
()
var
usbPortList
=
usb
.
getPorts
()
if
(
usbPortList
==
undefined
)
{
portCurrentMode
=
1
;
return
}
gDeviceList
=
usb
.
getDevices
();
gDeviceList
=
usb
.
getDevices
();
if
(
usbPortList
.
length
>
0
)
{
if
(
usbPortList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
if
(
gDeviceList
.
length
>
0
)
{
...
...
usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js
浏览文件 @
7a8078da
/*
/*
* Copyright (c) 202
1-2022
Huawei Device Co., Ltd.
* Copyright (c) 202
2-2023
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录