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

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

Merge pull request !9171 from Nicklaus/master
...@@ -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);
......
...@@ -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"
......
<!-- <!--
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
/* /**
* 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
...@@ -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()
......
<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>
/* /**
* 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();
} }
} }
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册