提交 ba8b5b69 编写于 作者: H hui1975

update

Signed-off-by: Nhui1975 <zhaominghui10@huawei.com>
Change-Id: Ia856b039501f8def17097f3ea08bde5ae39b27a1
上级 4a7a5cae
......@@ -189,13 +189,13 @@ describe("SensorJsTest_sensor_2", function () {
+ ',geomagneticDip: ' + data.geomagneticDip
+ ',deflectionAngle: ' + data.deflectionAngle + ',levelIntensity: ' + data.levelIntensity
+ ',totalIntensity: ' + data.totalIntensity)
expect(Math.abs(data.x - geomagneticComponent[0]) < EPS).assertTrue()
expect(Math.abs(data.y - geomagneticComponent[1]) < EPS).assertTrue()
expect(Math.abs(data.z - geomagneticComponent[2]) < EPS).assertTrue()
expect(Math.abs(data.geomagneticDip - geomagneticComponent[3]) < EPS).assertTrue()
expect(Math.abs(data.deflectionAngle - geomagneticComponent[4]) < EPS).assertTrue()
expect(Math.abs(data.levelIntensity - geomagneticComponent[5]) < EPS).assertTrue()
expect(Math.abs(data.totalIntensity - geomagneticComponent[6]) < EPS).assertTrue()
expect(Math.abs(data.x - geomagneticComponent[0]) < EPS).assertTrue()
expect(Math.abs(data.y - geomagneticComponent[1]) < EPS).assertTrue()
expect(Math.abs(data.z - geomagneticComponent[2]) < EPS).assertTrue()
expect(Math.abs(data.geomagneticDip - geomagneticComponent[3]) < EPS).assertTrue()
expect(Math.abs(data.deflectionAngle - geomagneticComponent[4]) < EPS).assertTrue()
expect(Math.abs(data.levelIntensity - geomagneticComponent[5]) < EPS).assertTrue()
expect(Math.abs(data.totalIntensity - geomagneticComponent[6]) < EPS).assertTrue()
}
setTimeout(() => {
done()
......
......@@ -229,13 +229,13 @@ describe("SensorJsTest_sensor_60", function () {
} else {
console.info('Sensor_GetGeomagneticInfo_005 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z + ',geomagneticDip: ' + data.geomagneticDip
+ ',deflectionAngle: ' + data.deflectionAngle + ',levelIntensity: ' + data.levelIntensity + ',totalIntensity: ' + data.totalIntensity)
expect(Math.abs(data.x - geomagneticComponent[0]) < EPS).assertTrue()
expect(Math.abs(data.y - geomagneticComponent[1]) < EPS).assertTrue()
expect(Math.abs(data.z - geomagneticComponent[2]) < EPS).assertTrue()
expect(Math.abs(data.geomagneticDip - geomagneticComponent[3]) < EPS).assertTrue()
expect(Math.abs(data.deflectionAngle - geomagneticComponent[4]) < EPS).assertTrue()
expect(Math.abs(data.levelIntensity - geomagneticComponent[5]) < EPS).assertTrue()
expect(Math.abs(data.totalIntensity - geomagneticComponent[6]) < EPS).assertTrue()
expect(Math.abs(data.x - geomagneticComponent[0]) < EPS).assertTrue()
expect(Math.abs(data.y - geomagneticComponent[1]) < EPS).assertTrue()
expect(Math.abs(data.z - geomagneticComponent[2]) < EPS).assertTrue()
expect(Math.abs(data.geomagneticDip - geomagneticComponent[3]) < EPS).assertTrue()
expect(Math.abs(data.deflectionAngle - geomagneticComponent[4]) < EPS).assertTrue()
expect(Math.abs(data.levelIntensity - geomagneticComponent[5]) < EPS).assertTrue()
expect(Math.abs(data.totalIntensity - geomagneticComponent[6]) < EPS).assertTrue()
}
setTimeout(() =>{
done()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册