未验证 提交 faab0eb2 编写于 作者: O openharmony_ci 提交者: Gitee

!7021 change subclass to subClass

Merge pull request !7021 from 吴成文/master
...@@ -492,7 +492,7 @@ describe('UsbCoreJsFunctionsTestEx', function () { ...@@ -492,7 +492,7 @@ describe('UsbCoreJsFunctionsTestEx', function () {
/** /**
* @tc.number: SUB_USB_JS_0200 * @tc.number: SUB_USB_JS_0200
* @tc.name: connectDevice * @tc.name: connectDevice
* @tc.desc: Negative test: open device, error subclass * @tc.desc: Negative test: open device, error subClass
*/ */
it('SUB_USB_JS_0200', 0, function () { it('SUB_USB_JS_0200', 0, function () {
console.info('usb connect_device_12 begin'); console.info('usb connect_device_12 begin');
...@@ -518,14 +518,14 @@ describe('UsbCoreJsFunctionsTestEx', function () { ...@@ -518,14 +518,14 @@ describe('UsbCoreJsFunctionsTestEx', function () {
} }
var device = JSON.parse(JSON.stringify(gDeviceList[0])); var device = JSON.parse(JSON.stringify(gDeviceList[0]));
device.subclass = 2 + 10000 device.subClass = 2 + 10000
try { try {
var usbDevicePipe = usb.connectDevice(device) var usbDevicePipe = usb.connectDevice(device)
} catch (err) { } catch (err) {
expect(true).assertTrue(); expect(true).assertTrue();
console.info('usb connectDevice fail:' + err); 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(); expect(CheckEmptyUtils.isEmpty(usbDevicePipe)).assertFalse();
var isPipClose = usb.closePipe(usbDevicePipe); var isPipClose = usb.closePipe(usbDevicePipe);
console.info('usb case closePipe ret: ' + isPipClose); console.info('usb case closePipe ret: ' + isPipClose);
......
...@@ -103,7 +103,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () { ...@@ -103,7 +103,7 @@ describe('UsbDevicePipeJsFunctionsTest', function () {
} }
if (testParam.config.interfaces[j].clazz != 10 || 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) { testParam.config.interfaces[j].protocol != 2) {
return false return false
} }
......
...@@ -92,7 +92,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () { ...@@ -92,7 +92,7 @@ describe('UsbDevicePipeJsFunctionsTestEx', function () {
function getFlag(testParam, j) { function getFlag(testParam, j) {
if (testParam.config.interfaces[j].clazz != 10 || 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) { testParam.config.interfaces[j].protocol != 2) {
return false return false
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册