From 036b79064f59b43399f5c3ac782a554fab4e2208 Mon Sep 17 00:00:00 2001 From: NOBUGGERS Date: Thu, 19 May 2022 11:20:21 +0800 Subject: [PATCH] AudioRecorderFormatCompatibilityTest Signed-off-by: NOBUGGERS Signed-off-by: NOBUGGERS --- multimedia/media/media_js_standard/recorderFormat/Test.json | 1 + .../main/js/test/AudioRecorderFormatCompatibilityTest.test.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/multimedia/media/media_js_standard/recorderFormat/Test.json b/multimedia/media/media_js_standard/recorderFormat/Test.json index 6183e3e92..fc4f4c46b 100644 --- a/multimedia/media/media_js_standard/recorderFormat/Test.json +++ b/multimedia/media/media_js_standard/recorderFormat/Test.json @@ -10,6 +10,7 @@ { "type": "ShellKit", "run-command": [ + "rm -rf /storage/media/100/local/files/Videos/COMPATIBILITY*" ], "teardown-command":[ ] diff --git a/multimedia/media/media_js_standard/recorderFormat/src/main/js/test/AudioRecorderFormatCompatibilityTest.test.js b/multimedia/media/media_js_standard/recorderFormat/src/main/js/test/AudioRecorderFormatCompatibilityTest.test.js index ed9c95fc5..7983c9711 100644 --- a/multimedia/media/media_js_standard/recorderFormat/src/main/js/test/AudioRecorderFormatCompatibilityTest.test.js +++ b/multimedia/media/media_js_standard/recorderFormat/src/main/js/test/AudioRecorderFormatCompatibilityTest.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -36,7 +36,7 @@ describe('AudioRecorderFormatCompatibilityTest', function () { let audioRecorder; let audioConfig = { audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, - audioEncoder : media.AudioSourceType.AAC_LC, + audioEncoder : media.AudioEncoder.AAC_LC, audioEncodeBitRate : 22050, audioSampleRate : 22050, numberOfChannels : 2, -- GitLab