提交 d4254cb6 编写于 作者: W wuchengwen

change subclass to subClass

Signed-off-by: Nwuchengwen <wuchengwen4@huawei.com>
上级 6943555f
......@@ -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);
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册