From ee65b1884f5aa0c4a57e2d663d76ee23f87c99f7 Mon Sep 17 00:00:00 2001 From: lixiaofeng_154b Date: Wed, 6 Jul 2022 20:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90xts=5Facts=E3=80=91=E3=80=90master?= =?UTF-8?q?=E3=80=91ActsUsbJSApiTest=E6=B5=8B=E8=AF=95=E5=A5=97=E6=9C=895?= =?UTF-8?q?=E6=9D=A1fail,=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lixiaofeng_154b Change-Id: Id9bbcd09119b4fed48c6ce24d47bd1ec9fee97cf --- usb/BUILD.gn | 2 +- .../main/js/default/test/UsbDevicePipeJsunit.test.js | 10 +++++----- .../main/js/default/test/UsbDevicePipeJsunit_A.test.js | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/usb/BUILD.gn b/usb/BUILD.gn index 8b60a8150..76434ef5c 100755 --- a/usb/BUILD.gn +++ b/usb/BUILD.gn @@ -16,9 +16,9 @@ import("//build/ohos_var.gni") group("usb") { testonly = true if (device_name == "rk3568") { + deps = [ "usb_standard:usb_js_test" ] } else { if (is_standard_system) { - deps = [ "usb_standard:usb_js_test" ] } } } diff --git a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js index 0ff53d603..baac2b7d5 100755 --- a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js +++ b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit.test.js @@ -487,7 +487,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0570 * @tc.name : controlTransfer - * @tc.desc : 控制传输 GetInterface: cmd 10 reqType 129 value 0 index 1 + * @tc.desc : 控制传输 GetInterface: cmd 8 reqType 129 value 0 index 1 */ it('SUB_USB_JS_0570', 0, function () { console.info('usb SUB_USB_JS_0570 begin'); @@ -535,7 +535,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0590 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 129 value 512 index 0 */ it('SUB_USB_JS_0590', 0, function () { console.info('usb SUB_USB_JS_0590 begin'); @@ -559,7 +559,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0600 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 3 value 512 index 0 */ it('SUB_USB_JS_0600', 0, function () { console.info('usb SUB_USB_JS_0600 begin'); @@ -583,7 +583,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0610 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: ccmd 255 reqType 5 value 512 index 0 */ it('SUB_USB_JS_0610', 0, function () { console.info('usb SUB_USB_JS_0610 begin'); @@ -607,7 +607,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0620 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 4 value 0 index 0 */ it('SUB_USB_JS_0620', 0, function () { console.info('usb SUB_USB_JS_0620 begin'); diff --git a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js index b51ab1a48..a5bb21b03 100755 --- a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js +++ b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunit_A.test.js @@ -453,7 +453,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0570 * @tc.name : controlTransfer - * @tc.desc : 控制传输 GetInterface: cmd 10 reqType 129 value 0 index 1 + * @tc.desc : 控制传输 GetInterface: cmd 8 reqType 129 value 0 index 1 */ it('SUB_USB_JS_0570', 0, function () { console.info('usb SUB_USB_JS_0570 begin'); @@ -491,7 +491,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0590 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 129 value 512 index 0 */ it('SUB_USB_JS_0590', 0, function () { console.info('usb SUB_USB_JS_0590 begin'); @@ -510,7 +510,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0600 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 3 value 512 index 0 */ it('SUB_USB_JS_0600', 0, function () { console.info('usb SUB_USB_JS_0600 begin'); @@ -529,7 +529,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0610 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 5 value 512 index 0 */ it('SUB_USB_JS_0610', 0, function () { console.info('usb SUB_USB_JS_0610 begin'); @@ -548,7 +548,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { /** * @tc.number : SUB_USB_JS_0620 * @tc.name : controlTransfer - * @tc.desc : 控制传输 ClearFeature: cmd 1 reqType 0 value 0 index 0 + * @tc.desc : 控制传输 ClearFeature: cmd 255 reqType 4 value 0 index 0 */ it('SUB_USB_JS_0620', 0, function () { console.info('usb SUB_USB_JS_0620 begin'); -- GitLab