未验证 提交 f6034516 编写于 作者: 李晓枫 提交者: Gitee

update usb/usb_standard/src/main/js/test/UsbPortAndFunctionJsunit.test.js.

Signed-off-by: N李晓枫 <lixiaofeng54@huawei.com>
上级 a6d77d37
......@@ -29,7 +29,7 @@ describe('UsbPortAndFunctionsJsFunctionsTest', function () {
var usbPortList = usbManager.getPorts()
if (usbPortList.length > 0) {
if (usbPortList[0].status.currentMode == 2) {
usb.setPortRoles(usbPortList[0].id, usbManager.SINK, usbManager.DEVICE).then(data => {
usbManager.setPortRoles(usbPortList[0].id, usbManager.SINK, usbManager.DEVICE).then(data => {
console.info('usb case setPortRoles return: ' + data);
}).catch(error => {
console.info('usb case setPortRoles error : ' + error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册