From d4254cb602811740db01b882484a0040614c978a Mon Sep 17 00:00:00 2001 From: wuchengwen Date: Tue, 27 Dec 2022 09:30:33 +0000 Subject: [PATCH] change subclass to subClass Signed-off-by: wuchengwen --- .../src/main/js/default/test/UsbCoreJsunitEx.test.js | 4 ++-- .../src/main/js/default/test/UsbDevicePipeJsunit.test.js | 2 +- .../src/main/js/default/test/UsbDevicePipeJsunitEx.test.js | 2 +- .../src/main/js/default/test/UsbDevicePipeJsunit_A.test.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js b/usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js index 52f444e49..7817d66c8 100755 --- a/usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js +++ b/usb/usb_standard/src/main/js/default/test/UsbCoreJsunitEx.test.js @@ -456,14 +456,14 @@ describe('UsbCoreJsFunctionsTestEx', function () { } var device = JSON.parse(JSON.stringify(gDeviceList[0])); - device.subclass = 2 + 10000 + device.subClass = 2 + 10000 try { var usbDevicePipe = usb.connectDevice(device) } catch (err) { expect(true).assertTrue(); console.info('usb connectDevice fail:' + err); } - console.info('usb case connectDevice ret: ' + JSON.stringify(usbDevicePipe) + ' subclass ' + device.subclass); + console.info('usb case connectDevice ret: ' + JSON.stringify(usbDevicePipe) + ' subClass ' + device.subClass); expect(CheckEmptyUtils.isEmpty(usbDevicePipe)).assertFalse(); var isPipClose = usb.closePipe(usbDevicePipe); console.info('usb case closePipe ret: ' + isPipClose); 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 88a16860a..2e780d63a 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 @@ -87,7 +87,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { } if (testParam.config.interfaces[j].clazz != 10 || - testParam.config.interfaces[j].subclass != 0 || + testParam.config.interfaces[j].subClass != 0 || testParam.config.interfaces[j].protocol != 2) { return false } diff --git a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js index 6a3796d82..cdca03f41 100755 --- a/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js +++ b/usb/usb_standard/src/main/js/default/test/UsbDevicePipeJsunitEx.test.js @@ -84,7 +84,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () { function getFlag(testParam, j) { if (testParam.config.interfaces[j].clazz != 10 || - testParam.config.interfaces[j].subclass != 0 || + testParam.config.interfaces[j].subClass != 0 || testParam.config.interfaces[j].protocol != 2) { return false } 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 00b50d630..a2547cd72 100644 --- 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 @@ -93,7 +93,7 @@ describe('UsbDevicePipeJsFunctionsTestA', function () { } if (testParam.config.interfaces[j].clazz != 10 || - testParam.config.interfaces[j].subclass != 0 || + testParam.config.interfaces[j].subClass != 0 || testParam.config.interfaces[j].protocol != 2) { return false } -- GitLab