Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
cb5f0020
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看板
提交
cb5f0020
编写于
4月 11, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
ling990@qq.com
>
上级
555f3195
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
...der/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
+2
-2
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
...oder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
+3
-3
未找到文件。
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
浏览文件 @
cb5f0020
...
@@ -1077,11 +1077,11 @@ describe('AudioDecoderFuncCallback', function () {
...
@@ -1077,11 +1077,11 @@ describe('AudioDecoderFuncCallback', function () {
console
.
info
(
`case configure 2`
);
console
.
info
(
`case configure 2`
);
resetParam
();
resetParam
();
console
.
info
(
'
resetParam success, resetAtEOS IS :
'
+
resetAtEOS
)
console
.
info
(
'
resetParam success, resetAtEOS IS :
'
+
resetAtEOS
)
readFile
(
AUDIOPATH2
)
readpath
=
AUDIOPATH2
;
readpath
=
AUDIOPATH2
;
savepath
=
'
audioDecode_function_callback_06_2.pcm
'
;
savepath
=
'
audioDecode_function_callback_06_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH2
);
workdoneAtEOS
=
true
;
workdoneAtEOS
=
true
;
ES
=
[
0
,
239
,
302
,
309
,
330
,
474
,
684
,
699
,
683
,
674
,
647
,
649
,
638
,
644
,
640
,
ES
=
[
0
,
239
,
302
,
309
,
330
,
474
,
684
,
699
,
683
,
674
,
647
,
649
,
638
,
644
,
640
,
639
,
650
,
702
,
713
,
718
,
707
,
707
,
683
,
670
,
674
,
699
,
654
,
650
,
715
,
770
,
639
,
650
,
702
,
713
,
718
,
707
,
707
,
683
,
670
,
674
,
699
,
654
,
650
,
715
,
770
,
...
@@ -1197,7 +1197,7 @@ describe('AudioDecoderFuncCallback', function () {
...
@@ -1197,7 +1197,7 @@ describe('AudioDecoderFuncCallback', function () {
savepath
=
'
audioDecode_function_callback_07_2.pcm
'
;
savepath
=
'
audioDecode_function_callback_07_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH3
)
readFile
(
AUDIOPATH3
)
;
workdoneAtEOS
=
true
;
workdoneAtEOS
=
true
;
ES
=
[
0
,
2116
,
2093
,
2886
,
2859
,
2798
,
2778
,
2752
,
2752
,
2754
,
2720
,
2898
,
2829
,
ES
=
[
0
,
2116
,
2093
,
2886
,
2859
,
2798
,
2778
,
2752
,
2752
,
2754
,
2720
,
2898
,
2829
,
2806
,
2796
,
2786
,
2774
,
2758
,
2741
,
3489
,
3342
,
3272
,
3167
,
3048
,
3060
,
2919
,
2806
,
2796
,
2786
,
2774
,
2758
,
2741
,
3489
,
3342
,
3272
,
3167
,
3048
,
3060
,
2919
,
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
浏览文件 @
cb5f0020
...
@@ -903,12 +903,12 @@ describe('AudioDecoderFuncPromise', function () {
...
@@ -903,12 +903,12 @@ describe('AudioDecoderFuncPromise', function () {
await
audioDecodeProcessor
.
configure
(
mediaDescription2
).
then
(()
=>
{
await
audioDecodeProcessor
.
configure
(
mediaDescription2
).
then
(()
=>
{
console
.
info
(
"
case configure 2 success
"
);
console
.
info
(
"
case configure 2 success
"
);
resetParam
();
resetParam
();
readFile
(
AUDIOPATH2
);
},
failCallback
).
catch
(
failCatch
);
},
failCallback
).
catch
(
failCatch
);
readpath
=
AUDIOPATH2
;
readpath
=
AUDIOPATH2
;
savepath
=
'
audioDecode_function_promise_06_2.pcm
'
;
savepath
=
'
audioDecode_function_promise_06_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH2
);
workdoneAtEOS
=
true
;
workdoneAtEOS
=
true
;
ES
=
[
0
,
239
,
302
,
309
,
330
,
474
,
684
,
699
,
683
,
674
,
647
,
649
,
638
,
644
,
640
,
ES
=
[
0
,
239
,
302
,
309
,
330
,
474
,
684
,
699
,
683
,
674
,
647
,
649
,
638
,
644
,
640
,
639
,
650
,
702
,
713
,
718
,
707
,
707
,
683
,
670
,
674
,
699
,
654
,
650
,
715
,
770
,
639
,
650
,
702
,
713
,
718
,
707
,
707
,
683
,
670
,
674
,
699
,
654
,
650
,
715
,
770
,
...
@@ -993,12 +993,12 @@ describe('AudioDecoderFuncPromise', function () {
...
@@ -993,12 +993,12 @@ describe('AudioDecoderFuncPromise', function () {
await
audioDecodeProcessor
.
configure
(
mediaDescription2
).
then
(()
=>
{
await
audioDecodeProcessor
.
configure
(
mediaDescription2
).
then
(()
=>
{
console
.
info
(
"
case configure 2 success
"
);
console
.
info
(
"
case configure 2 success
"
);
resetParam
();
resetParam
();
readFile
(
AUDIOPATH3
);
},
failCallback
).
catch
(
failCatch
);
},
failCallback
).
catch
(
failCatch
);
readpath
=
AUDIOPATH3
;
savepath
=
'
audioDecode_function_promise_07_2.pcm
'
;
savepath
=
'
audioDecode_function_promise_07_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
await
getFdRead
(
readpath
,
done
);
read
path
=
AUDIOPATH3
;
read
File
(
AUDIOPATH3
)
;
workdoneAtEOS
=
true
;
workdoneAtEOS
=
true
;
ES
=
[
0
,
2116
,
2093
,
2886
,
2859
,
2798
,
2778
,
2752
,
2752
,
2754
,
2720
,
2898
,
2829
,
ES
=
[
0
,
2116
,
2093
,
2886
,
2859
,
2798
,
2778
,
2752
,
2752
,
2754
,
2720
,
2898
,
2829
,
2806
,
2796
,
2786
,
2774
,
2758
,
2741
,
3489
,
3342
,
3272
,
3167
,
3048
,
3060
,
2919
,
2806
,
2796
,
2786
,
2774
,
2758
,
2741
,
3489
,
3342
,
3272
,
3167
,
3048
,
3060
,
2919
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录