diff --git a/usb/BUILD.gn b/usb/BUILD.gn index 8b60a81504a2ab6c7a444bdb71c2ef6c96101574..76434ef5c2bd8d8186c3ae39b26a4c415c747eeb 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 0ff53d603a364dd224b68041305051181a81b32a..baac2b7d5bc396a4be854cfceccd9c0694df9041 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 b51ab1a48de465377232681f508396a516c08509..a5bb21b03c5e4294d8213b3da30fed7a4561bd74 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');