Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5a5b6a24
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看板
提交
5a5b6a24
编写于
3月 21, 2023
作者:
1
15754133731
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<媒体用例适配2>
Signed-off-by:
N
15754133731
<
chenjiahuan@huawei.com
>
上级
86d94129
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
and
26 deletion
+28
-26
multimedia/media/media_js_standard/MediaTestBase.js
multimedia/media/media_js_standard/MediaTestBase.js
+1
-1
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
...vPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
+1
-1
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
...yer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
+26
-24
未找到文件。
multimedia/media/media_js_standard/MediaTestBase.js
浏览文件 @
5a5b6a24
...
...
@@ -20,7 +20,7 @@ import mediaLibrary from '@ohos.multimedia.mediaLibrary'
import
fileio
from
'
@ohos.fileio
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
{
UiDriver
,
BY
,
PointerMatrix
}
from
'
@ohos.UiTest
'
const
CODECMIMEVALUE
=
[
'
video/
avc
'
,
'
audio/mp4a-latm
'
,
'
audio/mpeg
'
]
const
CODECMIMEVALUE
=
[
'
video/
x-h264
'
,
'
audio/mpeg
'
,
'
video/avc
'
,
'
audio/mp4a-latm
'
]
const
context
=
featureAbility
.
getContext
();
export
async
function
getPermission
(
permissionNames
)
{
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerLocalTest.test.js
浏览文件 @
5a5b6a24
...
...
@@ -474,7 +474,7 @@ export default function AVPlayerLocalTest() {
it
(
'
SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_GETTRECKDESCRIPTION_0200
'
,
0
,
async
function
(
done
)
{
let
audioTrackKey
=
new
Array
(
'
channel_count
'
,
'
codec_mime
'
,
'
sample_rate
'
,
'
track_index
'
,
'
track_type
'
);
let
audioTrackValue
=
new
Array
(
1
,
2
,
48000
,
0
,
0
);
let
audioTrackValue
=
new
Array
(
1
,
1
,
48000
,
0
,
0
);
let
descriptionKey
=
new
Array
(
audioTrackKey
);
let
descriptionValue
=
new
Array
(
audioTrackValue
);
testCheckTrackDescription
(
fileDescriptor2
,
avPlayer
,
descriptionKey
,
descriptionValue
,
done
)
...
...
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/AVPlayerStabilityTest.test.js
浏览文件 @
5a5b6a24
...
...
@@ -81,7 +81,7 @@ export default function AVPlayerStabilityTest() {
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
for
(
var
i
=
0
;
i
<
VIDEO_SOURCES
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
VIDEO_SOURCES
.
length
;
i
++
)
{
await
getStageFdRead
(
VIDEO_SOURCES
[
i
]).
then
((
testNumber
)
=>
{
fdNumber
=
testNumber
;
console
.
info
(
TAG
+
'
this fdNumber is :
'
+
fdNumber
)
...
...
@@ -107,12 +107,12 @@ export default function AVPlayerStabilityTest() {
}
beforeEach
(
async
function
()
{
beforeEach
(
async
function
()
{
console
.
info
(
'
beforeEach case
'
);
await
AVPlayerTestBase
.
sleep
(
1000
);
})
afterEach
(
async
function
()
{
afterEach
(
async
function
()
{
if
(
avPlayer
!=
null
)
{
avPlayer
.
release
().
then
(()
=>
{
console
.
info
(
TAG
+
'
this testCase execution completed
'
)
...
...
@@ -122,9 +122,9 @@ export default function AVPlayerStabilityTest() {
await
AVPlayerTestBase
.
sleep
(
1000
);
})
afterAll
(
async
function
()
{
afterAll
(
async
function
()
{
console
.
info
(
'
afterAll case
'
);
for
(
var
i
=
0
;
i
<
fdNumbers
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
fdNumbers
.
length
;
i
++
)
{
await
mediaTestBase
.
closeFdNumber
(
fdNumbers
[
i
]);
}
})
...
...
@@ -223,7 +223,7 @@ export default function AVPlayerStabilityTest() {
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
4
],
avPlayer
,
done
);
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
4
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_MP4_0500 end
'
)
})
...
...
@@ -761,19 +761,7 @@ export default function AVPlayerStabilityTest() {
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
* @tc.name : 001.test play source 4k
* @tc.desc : Local Video play source
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
43
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_STABILITY_01_0100
...
...
@@ -895,11 +883,11 @@ export default function AVPlayerStabilityTest() {
* @tc.type : Function test
* @tc.level : Level3
*/
// it('SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100', 0, async function (done) {
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 start')
// AVPlayerTestBase.createTimeWithCallback(videos[0], avPlayer, done);
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 end')
// })
// it('SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100', 0, async function (done) {
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 start')
// AVPlayerTestBase.createTimeWithCallback(videos[0], avPlayer, done);
// console.info(TAG + 'SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0100 end')
// })
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_01_0110
...
...
@@ -1237,5 +1225,19 @@ export default function AVPlayerStabilityTest() {
AVPlayerTestBase
.
firstFrameTime
(
videos
[
0
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_PERFORMANCE_02_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
* @tc.name : 001.test play source 4k
* @tc.desc : Local Video play source
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 start
'
)
AVPlayerTestBase
.
avPlayerPlay
(
videos
[
43
],
avPlayer
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVPLAYER_FORMAT_SOURCE_0300 end
'
)
})
})
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录