Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
6db9e66b
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看板
未验证
提交
6db9e66b
编写于
7月 17, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 17, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9171 多媒体视频录制测试用例
Merge pull request !9171 from Nicklaus/master
上级
c61cc053
bf914937
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
3098 addition
and
33 deletion
+3098
-33
multimedia/media/media_js_standard/AVRecorderTestBase.js
multimedia/media/media_js_standard/AVRecorderTestBase.js
+1
-1
multimedia/media/media_js_standard/AvVideoRecorderTestBase.js
...imedia/media/media_js_standard/AvVideoRecorderTestBase.js
+1241
-0
multimedia/media/media_js_standard/avRecorder/src/main/config.json
...a/media/media_js_standard/avRecorder/src/main/config.json
+4
-2
multimedia/media/media_js_standard/avRecorder/src/main/js/MainAbility/pages/index/index.hml
.../avRecorder/src/main/js/MainAbility/pages/index/index.hml
+18
-17
multimedia/media/media_js_standard/avRecorder/src/main/js/MainAbility/pages/index/index.js
...d/avRecorder/src/main/js/MainAbility/pages/index/index.js
+6
-3
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/app.js
...dia_js_standard/avRecorder/src/main/js/TestAbility/app.js
+1
-0
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/pages/index/index.hml
.../avRecorder/src/main/js/TestAbility/pages/index/index.hml
+20
-4
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/pages/index/index.js
...d/avRecorder/src/main/js/TestAbility/pages/index/index.js
+11
-4
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
...order/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
+1793
-0
multimedia/media/media_js_standard/avRecorder/src/main/js/test/List.test.js
...edia_js_standard/avRecorder/src/main/js/test/List.test.js
+3
-2
未找到文件。
multimedia/media/media_js_standard/AVRecorderTestBase.js
浏览文件 @
6db9e66b
...
@@ -284,7 +284,7 @@ export async function releasePromise(avRecorder) {
...
@@ -284,7 +284,7 @@ export async function releasePromise(avRecorder) {
});
});
}
}
async
function
releaseDone
(
avRecorder
,
done
){
export
async
function
releaseDone
(
avRecorder
,
done
){
await
avRecorder
.
release
().
then
(()
=>
{
await
avRecorder
.
release
().
then
(()
=>
{
console
.
info
(
'
releaseDone avRecorder.state is
'
+
avRecorder
.
state
);
console
.
info
(
'
releaseDone avRecorder.state is
'
+
avRecorder
.
state
);
expect
(
avRecorder
.
state
).
assertEqual
(
AV_RECORDER_STATE
.
RELEASED
);
expect
(
avRecorder
.
state
).
assertEqual
(
AV_RECORDER_STATE
.
RELEASED
);
...
...
multimedia/media/media_js_standard/AvVideoRecorderTestBase.js
0 → 100644
浏览文件 @
6db9e66b
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/avRecorder/src/main/config.json
浏览文件 @
6db9e66b
...
@@ -59,8 +59,6 @@
...
@@ -59,8 +59,6 @@
"deviceType"
:
[
"deviceType"
:
[
"tablet"
,
"tablet"
,
"default"
,
"default"
,
"default"
,
"tablet"
,
"tv"
,
"tv"
,
"wearable"
,
"wearable"
,
"2in1"
"2in1"
...
@@ -74,6 +72,10 @@
...
@@ -74,6 +72,10 @@
"name"
:
"ohos.permission.MICROPHONE"
,
"name"
:
"ohos.permission.MICROPHONE"
,
"reason"
:
"use ohos.permission.MICROPHONE"
"reason"
:
"use ohos.permission.MICROPHONE"
},
},
{
"name"
:
"ohos.permission.CAMERA"
,
"reason"
:
"use ohos.permission.CAMERA"
},
{
{
"name"
:
"ohos.permission.MEDIA_LOCATION"
,
"name"
:
"ohos.permission.MEDIA_LOCATION"
,
"reason"
:
"use ohos.permission.MEDIA_LOCATION"
"reason"
:
"use ohos.permission.MEDIA_LOCATION"
...
...
multimedia/media/media_js_standard/avRecorder/src/main/js/MainAbility/pages/index/index.hml
浏览文件 @
6db9e66b
<!--
<!--
Copyright (c) 2022 Huawei Device Co., Ltd.
/**
Licensed under the Apache License, Version 2.0 (the "License");
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
you may not use this file except in compliance with the License.
* Licensed under the Apache License, Version 2.0 (the "License");
You may obtain a copy of the License at
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
*
distributed under the License is distributed on an "AS IS" BASIS,
* Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
limitations under the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
-->
<div class="container">
<div style="height: 500px; width: 500px; flex-direction: column; justify-content: center; align-items: center;">
<text class="title">
<text id = 'camera' class = 'title'>avRecorder_video</text>
{{ $t('strings.hello') }} {{ title }}
<xcomponent id = 'xcomponent' type = 'surface' onload = 'onload'></xcomponent>
</text>
</div>
</div>
\ No newline at end of file
multimedia/media/media_js_standard/avRecorder/src/main/js/MainAbility/pages/index/index.js
浏览文件 @
6db9e66b
/*
/*
*
* Copyright (
C) 2022 Huawei Device
Co., Ltd.
* Copyright (
c) 2022 Shenzhen Kaihong Digital Industry Development
Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
...
@@ -26,4 +26,7 @@ export default {
...
@@ -26,4 +26,7 @@ export default {
},
},
onReady
()
{
onReady
()
{
},
},
onload
()
{
globalThis
.
value
=
this
.
$element
(
'
xcomponent
'
).
getXComponentSurfaceId
();
}
}
}
\ No newline at end of file
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/app.js
浏览文件 @
6db9e66b
...
@@ -19,6 +19,7 @@ import testsuite from '../test/List.test'
...
@@ -19,6 +19,7 @@ import testsuite from '../test/List.test'
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
globalThis
.
contextVideo
=
this
.
context
;
console
.
info
(
'
TestApplication onCreate
'
)
console
.
info
(
'
TestApplication onCreate
'
)
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
...
...
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/pages/index/index.hml
浏览文件 @
6db9e66b
<div class="container">
<!--
<text class="title">
/**
{{ $t('strings.hello') }} {{ title }}
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
</text>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<div style="height: 500px; width: 500px; flex-direction: column; justify-content: center; align-items: center;">
<text id = 'camera' class = 'title'>camera_test_display</text>
<xcomponent id = 'xcomponent' type = 'surface' onload = 'onload'></xcomponent>
</div>
</div>
multimedia/media/media_js_standard/avRecorder/src/main/js/TestAbility/pages/index/index.js
浏览文件 @
6db9e66b
/*
/*
*
* Copyright (c) 2022
Huawei Device
Co., Ltd.
* Copyright (c) 2022
Shenzhen Kaihong Digital Industry Development
Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
...
@@ -18,7 +18,14 @@ export default {
...
@@ -18,7 +18,14 @@ export default {
title
:
""
title
:
""
},
},
onInit
()
{
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
},
onShow
()
{
console
.
info
(
'
onShow finish
'
)
},
onReady
()
{
},
onload
()
{
globalThis
.
value
=
this
.
$element
(
'
xcomponent
'
).
getXComponentSurfaceId
();
}
}
}
}
...
...
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AvVideoRecorderFuncTestOne.test.js
0 → 100644
浏览文件 @
6db9e66b
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/avRecorder/src/main/js/test/List.test.js
浏览文件 @
6db9e66b
...
@@ -14,8 +14,9 @@
...
@@ -14,8 +14,9 @@
*/
*/
import
avRecorderTest
from
'
./AVRecorderFuncTest.test.js
'
import
avRecorderTest
from
'
./AVRecorderFuncTest.test.js
'
import
avVideoRecorderTestOne
from
'
./AvVideoRecorderFuncTestOne.test.js
'
export
default
function
testsuite
()
{
export
default
function
testsuite
()
{
avRecorderTest
()
avRecorderTest
()
avVideoRecorderTestOne
()
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录