From 89008fa7fe14aca8b3428f0968c1ff289a675163 Mon Sep 17 00:00:00 2001 From: ling990 Date: Wed, 18 May 2022 17:29:05 +0800 Subject: [PATCH] modify testcases Signed-off-by: ling990 Signed-off-by: ling990 --- .../src/main/js/test/AudioRecorderEnumTest.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js index 25073b11e..6123c8a0c 100644 --- a/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js +++ b/multimedia/media/media_js_standard/audioRecorder/src/main/js/test/AudioRecorderEnumTest.test.js @@ -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 -- GitLab