From e0b8e2544ba69debf1967fd355ff692b26b81e80 Mon Sep 17 00:00:00 2001 From: lidanyang16 Date: Wed, 15 Feb 2023 15:50:24 +0800 Subject: [PATCH] Signed-off-by: lidanyang16 --- .../src/main/js/test/SensorGeneralalgorithm.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js b/sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js index 4a687c86a..d9a21afd3 100644 --- a/sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js +++ b/sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js @@ -1009,8 +1009,8 @@ describe("SensorJsTest_sensor_1", function () { it('SensorJsTest_107', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_107----------------------------------"); sensor.transformCoordinateSystem([1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5], { - 'axisX': 1, - 'axisY': 2 + 'x': 1, + 'y': 2 }, (error, data) => { if (error) { console.info('SensorJsTest_107 failed'); @@ -1031,7 +1031,7 @@ describe("SensorJsTest_sensor_1", function () { it('SensorJsTest_108', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_108----------------------------------"); sensor.transformCoordinateSystem([3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, - 3.40282e+38, 3.40282e+38, 3.40282e+38], { 'axisX': 1, 'axisY': 2 }, (error, data) => { + 3.40282e+38, 3.40282e+38, 3.40282e+38], { 'x': 1, 'y': 2 }, (error, data) => { if (error) { console.info('SensorJsTest_108 failed'); expect(false).assertTrue(); @@ -1051,8 +1051,8 @@ describe("SensorJsTest_sensor_1", function () { it("SensorJsTest_109", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_109----------------------------------"); sensor.transformCoordinateSystem([1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5], { - 'axisX': 1, - 'axisY': 2 + 'x': 1, + 'y': 2 }).then((data) => { for (let i = 0; i < data.length; i++) { console.info("SensorJsTest_109 data[ " + i + "] = " + data[i]); @@ -1074,7 +1074,7 @@ describe("SensorJsTest_sensor_1", function () { it("SensorJsTest_110", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_110----------------------------------"); sensor.transformCoordinateSystem([3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, - 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39], { 'axisX': 1, 'axisY': 3 }).then((data) => { + 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39], { 'x': 1, 'y': 3 }).then((data) => { for (let i = 0; i < data.length; i++) { console.info("SensorJsTest_110 data[ " + i + "] = " + data[i]); expect(data[i]).assertEqual(transformCoordinateSystemResult[2][i]); -- GitLab