提交 53a60031 编写于 作者: M mayunteng_1

用例优化

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I30da6529ef2e0d84f55c72e0b1a266dfb7e07926
上级 d7bcd4d0
......@@ -115,7 +115,7 @@ describe('MultimodalInput_Device_test', function () {
|| res.axisRanges[j].axis == 'toolMinor' || res.axisRanges[j].axis == 'touchMajor'
|| res.axisRanges[j].axis == 'NULL').assertTrue();
expect(res.axisRanges[j].max).assertInstanceOf('Number');
expect(res.axisRanges[j]).assertInstanceOf('AxisRange');
expect(res.axisRanges[j]).assertInstanceOf('Object');
expect(res.axisRanges[j].min).assertInstanceOf('Number');
expect(res.axisRanges[j].fuzz).assertInstanceOf('Number');
expect(res.axisRanges[j].flat).assertInstanceOf('Number');
......@@ -346,7 +346,7 @@ describe('MultimodalInput_Device_test', function () {
function listener(data) {
console.info("type: " + data.type + ", deviceId: " + data.deviceId);
expect(data.type== 'add' || data.type== 'remove').assertTrue();
expect(data).assertInstanceOf('DeviceListener');
expect(data).assertInstanceOf('Object');
}
// 单独取消listener的监听。
inputDevice.off("change", listener);
......@@ -437,7 +437,7 @@ describe('MultimodalInput_Device_test', function () {
|| res.axisRanges[j].axis == 'toolMinor' || res.axisRanges[j].axis == 'touchMajor'
|| res.axisRanges[j].axis == 'NULL').assertTrue();
expect(res.axisRanges[j].max).assertInstanceOf('Number');
expect(res.axisRanges[j]).assertInstanceOf('AxisRange');
expect(res.axisRanges[j]).assertInstanceOf('Object');
expect(res.axisRanges[j].min).assertInstanceOf('Number');
expect(res.axisRanges[j].fuzz).assertInstanceOf('Number');
expect(res.axisRanges[j].flat).assertInstanceOf('Number');
......@@ -493,7 +493,7 @@ describe('MultimodalInput_Device_test', function () {
|| res.axisRanges[j].axis == 'toolMinor' || res.axisRanges[j].axis == 'touchMajor'
|| res.axisRanges[j].axis == 'NULL').assertTrue();
expect(res.axisRanges[j].max).assertInstanceOf('Number');
expect(res.axisRanges[j]).assertInstanceOf('AxisRange');
expect(res.axisRanges[j]).assertInstanceOf('Object');
expect(res.axisRanges[j].min).assertInstanceOf('Number');
expect(res.axisRanges[j].fuzz).assertInstanceOf('Number');
expect(res.axisRanges[j].flat).assertInstanceOf('Number');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册