Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
555f3195
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看板
提交
555f3195
编写于
4月 11, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
ling990@qq.com
>
上级
6099021f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
...der/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
+2
-1
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
...oder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
+2
-1
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
...der/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
+2
-1
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
...oder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
+2
-1
未找到文件。
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js
浏览文件 @
555f3195
...
...
@@ -301,6 +301,7 @@ describe('AudioDecoderFuncCallback', function () {
done
();
}
else
{
fdRead
=
res
.
fd
;
console
.
info
(
"
case pathName is :
"
+
pathName
);
console
.
info
(
"
case fdRead is:
"
+
fdRead
);
}
})
...
...
@@ -1192,11 +1193,11 @@ describe('AudioDecoderFuncCallback', function () {
expect
(
err
).
assertUndefined
();
console
.
info
(
`case configure 2`
);
resetParam
();
readFile
(
AUDIOPATH3
)
readpath
=
AUDIOPATH3
;
savepath
=
'
audioDecode_function_callback_07_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH3
)
workdoneAtEOS
=
true
;
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
,
...
...
multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js
浏览文件 @
555f3195
...
...
@@ -311,6 +311,7 @@ describe('AudioDecoderFuncPromise', function () {
done
();
}
else
{
fdRead
=
res
.
fd
;
console
.
info
(
"
case pathName is:
"
+
pathName
);
console
.
info
(
"
case fdRead is:
"
+
fdRead
);
}
})
...
...
@@ -994,10 +995,10 @@ describe('AudioDecoderFuncPromise', function () {
resetParam
();
readFile
(
AUDIOPATH3
);
},
failCallback
).
catch
(
failCatch
);
readpath
=
AUDIOPATH3
;
savepath
=
'
audioDecode_function_promise_07_2.pcm
'
;
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
readpath
=
AUDIOPATH3
;
workdoneAtEOS
=
true
;
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
,
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js
浏览文件 @
555f3195
...
...
@@ -120,6 +120,7 @@ describe('AudioEncoderFuncCallback', function () {
done
();
}
else
{
fdRead
=
res
.
fd
;
console
.
info
(
"
case pathName is:
"
+
pathName
);
console
.
info
(
"
case fdRead is:
"
+
fdRead
);
}
})
...
...
@@ -908,11 +909,11 @@ describe('AudioEncoderFuncCallback', function () {
expect
(
err
).
assertUndefined
();
console
.
info
(
`case configure 2`
);
resetParam
();
readFile
(
AUDIOPATH
)
readpath
=
AUDIOPATH
;
savepath
=
'
audioEncode_function_callback_06_2.aac
'
;
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH
);
workdoneAtEOS
=
true
;
hasreconfigured
=
true
;
eventEmitter
.
emit
(
'
prepare
'
);
...
...
multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js
浏览文件 @
555f3195
...
...
@@ -130,6 +130,7 @@ describe('AudioEncoderFuncPromise', function () {
done
();
}
else
{
fdRead
=
res
.
fd
;
console
.
info
(
"
case pathName is:
"
+
pathName
);
console
.
info
(
"
case fdRead is:
"
+
fdRead
);
}
})
...
...
@@ -758,12 +759,12 @@ describe('AudioEncoderFuncPromise', function () {
await
audioEncodeProcessor
.
configure
(
mediaDescription2
).
then
(()
=>
{
console
.
info
(
"
configure 2 success
"
);
resetParam
();
readFile
(
AUDIOPATH
);
},
failCallback
).
catch
(
failCatch
);
readpath
=
AUDIOPATH
;
savepath
=
'
audioEncode_function_promise_06_2.aac
'
;
await
getFdWrite
(
savepath
);
await
getFdRead
(
readpath
,
done
);
readFile
(
AUDIOPATH
);
workdoneAtEOS
=
true
;
setCallback
(
savepath
,
done
);
await
audioEncodeProcessor
.
prepare
().
then
(()
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录