未验证 提交 60566e8c 编写于 作者: O openharmony_ci 提交者: Gitee

!3015 SR000H028I支持编码枚举类型新增枚举接口测试用例

Merge pull request !3015 from ling990/ling990
......@@ -42,7 +42,10 @@ describe('AudioRecorderEnumTest', function () {
* @tc.level : Level0
*/
it('SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_OUTPUT_FORMAT_00_0100', 0, async function (done) {
expect(media.AudioOutputFormat.DEFAULT).assertEqual(0);
expect(media.AudioOutputFormat.MPEG_4).assertEqual(2);
expect(media.AudioOutputFormat.AMR_NB).assertEqual(3);
expect(media.AudioOutputFormat.AMR_WB).assertEqual(4);
expect(media.AudioOutputFormat.AAC_ADTS).assertEqual(6);
done();
})
......@@ -56,7 +59,11 @@ describe('AudioRecorderEnumTest', function () {
* @tc.level : Level0
*/
it('SUB_MEDIA_AUDIO_RECORDER_ENUM_AUDIO_ENCODER_00_0100', 0, async function (done) {
expect(media.AudioEncoder.DEFAULT).assertEqual(0);
expect(media.AudioEncoder.AMR_NB).assertEqual(1);
expect(media.AudioEncoder.AMR_WB).assertEqual(2);
expect(media.AudioEncoder.AAC_LC).assertEqual(3);
expect(media.AudioEncoder.HE_AAC).assertEqual(4);
done();
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册