未验证 提交 6db9e66b 编写于 作者: O openharmony_ci 提交者: Gitee

!9171 多媒体视频录制测试用例

Merge pull request !9171 from Nicklaus/master
......@@ -284,7 +284,7 @@ export async function releasePromise(avRecorder) {
});
}
async function releaseDone(avRecorder, done){
export async function releaseDone(avRecorder, done){
await avRecorder.release().then(() => {
console.info('releaseDone avRecorder.state is ' + avRecorder.state);
expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.RELEASED);
......
......@@ -59,8 +59,6 @@
"deviceType": [
"tablet",
"default",
"default",
"tablet",
"tv",
"wearable",
"2in1"
......@@ -74,6 +72,10 @@
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
},
{
"name": "ohos.permission.CAMERA",
"reason": "use ohos.permission.CAMERA"
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason": "use ohos.permission.MEDIA_LOCATION"
......
<!--
Copyright (c) 2022 Huawei Device Co., Ltd.
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.
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* 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 class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
<div style="height: 500px; width: 500px; flex-direction: column; justify-content: center; align-items: center;">
<text id = 'camera' class = 'title'>avRecorder_video</text>
<xcomponent id = 'xcomponent' type = 'surface' onload = 'onload'></xcomponent>
</div>
\ No newline at end of file
/*
* 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");
* 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,
......@@ -26,4 +26,7 @@ export default {
},
onReady() {
},
onload() {
globalThis.value = this.$element('xcomponent').getXComponentSurfaceId();
}
}
\ No newline at end of file
......@@ -19,6 +19,7 @@ import testsuite from '../test/List.test'
export default {
onCreate() {
globalThis.contextVideo = this.context;
console.info('TestApplication onCreate')
var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
......
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<!--
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* 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>
/*
* 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");
* 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,
......@@ -18,7 +18,14 @@ export default {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
},
onReady() {
},
onload() {
globalThis.value = this.$element('xcomponent').getXComponentSurfaceId();
}
}
......
......@@ -14,8 +14,9 @@
*/
import avRecorderTest from './AVRecorderFuncTest.test.js'
import avVideoRecorderTestOne from './AvVideoRecorderFuncTestOne.test.js'
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.
先完成此消息的编辑!
想要评论请 注册