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 52f444e49a12300b7854a5b86ca257af2d8c91f5..7817d66c80077ae1366965d20053d07b534060f8 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 88a16860aaeb8e13231e03320f7a46b01e12f8bd..2e780d63af43b4e2beee872a7904dd90a712f571 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 6a3796d8278d664e66f374e7f815253334b3d3f5..cdca03f4126e5b411b459f97e5e28f5d24056b38 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 00b50d6309c92a46e453f8f8a3d449fed97a4f0c..a2547cd72e6ef4a9c915d9052e3dc35eee5768e5 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 }