Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1cbd9ae1
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,发现更多精彩内容 >>
未验证
提交
1cbd9ae1
编写于
2月 21, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 21, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7635 【Openharmony4.0.3.2】【master分支】【sensor子系统】【ToC】【RK3568】【必现】修改bundle-name,p7b文件,陀螺仪用例
Merge pull request !7635 from ldy/master
上级
a763436f
07dcb417
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
359 addition
and
148 deletion
+359
-148
sensors/miscdevice_standard/Test.json
sensors/miscdevice_standard/Test.json
+2
-2
sensors/miscdevice_standard/signature/openharmony_sx.p7b
sensors/miscdevice_standard/signature/openharmony_sx.p7b
+0
-0
sensors/miscdevice_standard/src/main/config.json
sensors/miscdevice_standard/src/main/config.json
+2
-2
sensors/sensor_standard/src/main/js/test/List.test.js
sensors/sensor_standard/src/main/js/test/List.test.js
+2
-0
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_newGyroScope.js
...ard/src/main/js/test/SensorOnOffTest.test_newGyroScope.js
+350
-141
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newMagneticField.js
...src/main/js/test/SensorOnOffTest.test_newMagneticField.js
+2
-2
未找到文件。
sensors/miscdevice_standard/Test.json
浏览文件 @
1cbd9ae1
...
...
@@ -4,8 +4,8 @@
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"160000"
,
"shell-timeout"
:
"160000"
,
"bundle-name"
:
"ohos.acts.sensors.
sensor
.function"
,
"package-name"
:
"ohos.acts.sensors.
sensor
.function"
"bundle-name"
:
"ohos.acts.sensors.
miscdevice
.function"
,
"package-name"
:
"ohos.acts.sensors.
miscdevice
.function"
},
"kits"
:
[
{
...
...
sensors/miscdevice_standard/signature/openharmony_sx.p7b
浏览文件 @
1cbd9ae1
无法预览此类型文件
sensors/miscdevice_standard/src/main/config.json
浏览文件 @
1cbd9ae1
{
"app"
:
{
"bundleName"
:
"ohos.acts.sensors.
sensor
.function"
,
"bundleName"
:
"ohos.acts.sensors.
miscdevice
.function"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
...
...
@@ -13,7 +13,7 @@
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.sensors.
sensor
.function"
,
"package"
:
"ohos.acts.sensors.
miscdevice
.function"
,
"name"
:
".entry"
,
"deviceType"
:
[
"tablet"
,
...
...
sensors/sensor_standard/src/main/js/test/List.test.js
浏览文件 @
1cbd9ae1
...
...
@@ -19,6 +19,7 @@ import SensorJsTest_sensor_60 from './SensorOnOffTest.test_newSensorGeomagnetic.
import
SensorJsTest_sensor_3
from
'
./SensorOnOffTest.test_oldAccelerometer.js
'
import
SensorJsTest_sensor_25
from
'
./Subscribe_subscribeAccelerometer.js
'
import
SensorJsTest_sensor_39
from
'
./SensorOnOffTest.test_newAccelerometer.js
'
import
SensorJsTest_sensor_43
from
'
./SensorOnOffTest.test_newGyroScope.js
'
export
default
function
testsuite
()
{
SensorJsTest_sensor_1
()
...
...
@@ -28,4 +29,5 @@ SystemParameterTest()
SensorJsTest_sensor_3
()
SensorJsTest_sensor_25
()
SensorJsTest_sensor_39
()
SensorJsTest_sensor_43
()
}
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newAccelerometer.js
浏览文件 @
1cbd9ae1
...
...
@@ -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_newGyroScope.js
浏览文件 @
1cbd9ae1
此差异已折叠。
点击以展开。
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newMagneticField.js
浏览文件 @
1cbd9ae1
...
...
@@ -15,8 +15,8 @@
import
sensor
from
'
@ohos.sensor
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
,
TestType
,
Size
,
Level
}
from
'
@ohos/hypium
'
export
default
function
SensorJsTest_sensor_3
9
()
{
describe
(
"
SensorJsTest_sensor_3
9
"
,
function
()
{
export
default
function
SensorJsTest_sensor_3
7
()
{
describe
(
"
SensorJsTest_sensor_3
7
"
,
function
()
{
function
callback
(
data
)
{
console
.
info
(
"
callback
"
+
JSON
.
stringify
(
data
));
expect
(
typeof
(
data
.
x
)).
assertEqual
(
"
number
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录