Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
be1d602e
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
be1d602e
编写于
2月 16, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 16, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7607 【Openharmony4.0.3.2】【monthly_20221018分支】【sensor子系统】【ToC】【RK3568】【必现】修改
Merge pull request !7607 from ldy/monthly_20221018
上级
8e5de670
0fef994b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js
..._standard/src/main/js/test/SensorGeneralalgorithm.test.js
+6
-6
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newAccelerometer.js
...src/main/js/test/SensorOnOffTest.test_newAccelerometer.js
+1
-1
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
...main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
+6
-6
未找到文件。
sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js
浏览文件 @
be1d602e
...
...
@@ -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.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
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.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],
{
'
axisX
'
:
1
,
'
axisY
'
:
3
}).
then
((
data
)
=>
{
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
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
]);
...
...
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newAccelerometer.js
浏览文件 @
be1d602e
...
...
@@ -66,7 +66,7 @@ describe("SensorJsTest_sensor_39", function () {
})
const
PARAMETER_ERROR_CODE
=
401
const
SERVICE_EXCEPTION_CODE
=
14
10
00101
const
SERVICE_EXCEPTION_CODE
=
14
5
00101
const
PARAMETER_ERROR_MSG
=
'
The parameter invalid.
'
const
SERVICE_EXCEPTION_MSG
=
'
Service exception.
'
let
invalid
=
-
1
;
...
...
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
浏览文件 @
be1d602e
...
...
@@ -2916,7 +2916,7 @@ describe("SensorJsTest_sensor_60", function () {
*/
it
(
'
Sensor_TransformCoordinateSystem_001
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_001----------------------------------
"
);
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_001 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -2936,7 +2936,7 @@ describe("SensorJsTest_sensor_60", function () {
it
(
'
Sensor_TransformCoordinateSystem_002
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_002----------------------------------
"
);
sensor
.
transformRotationMatrix
([
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_002 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -2955,7 +2955,7 @@ describe("SensorJsTest_sensor_60", function () {
*/
it
(
"
Sensor_TransformCoordinateSystem_003
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_003----------------------------------
"
);
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
}).
then
((
data
)
=>
{
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
x
'
:
1
,
'
y
'
:
2
}).
then
((
data
)
=>
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_003 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
expect
(
data
[
i
]).
assertEqual
(
transformCoordinateSystemResult
[
0
][
i
]);
...
...
@@ -2976,7 +2976,7 @@ describe("SensorJsTest_sensor_60", function () {
it
(
"
Sensor_TransformCoordinateSystem_004
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_004----------------------------------
"
);
sensor
.
transformRotationMatrix
([
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],{
'
axisX
'
:
1
,
'
axisY
'
:
3
}).
then
((
data
)
=>
{
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],{
'
x
'
:
1
,
'
y
'
:
3
}).
then
((
data
)
=>
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_004 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
expect
(
data
[
i
]).
assertEqual
(
transformCoordinateSystemResult
[
2
][
i
]);
...
...
@@ -3093,7 +3093,7 @@ describe("SensorJsTest_sensor_60", function () {
console
.
info
(
'
Sensor_TransformCoordinateSystem_008 start
'
)
try
{
sensor
.
transformRotationMatrix
([
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
],
{
'
axisX
'
:
1
,
'
axisY
'
:
1
}).
then
((
data
)
=>
{
{
'
x
'
:
1
,
'
y
'
:
1
}).
then
((
data
)
=>
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_009
"
+
data
)
expect
(
true
).
assertfalse
()
done
()
...
...
@@ -3119,7 +3119,7 @@ describe("SensorJsTest_sensor_60", function () {
console
.
info
(
'
Sensor_TransformCoordinateSystem_010 start
'
)
try
{
sensor
.
transformRotationMatrix
([
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
],
{
'
axisX
'
:
1
,
'
axisY
'
:
1
},
(
error
,
data
)
=>
{
{
'
x
'
:
1
,
'
y
'
:
1
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_010 failed
'
);
expect
(
false
).
assertTrue
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录