未验证 提交 0a5d0310 编写于 作者: O openharmony_ci 提交者: Gitee

!9381 recorder增加清除数据库数据命令

Merge pull request !9381 from 董新丽/master
......@@ -14,6 +14,9 @@
"run-command": [
"rm -rf /storage/media/100/local/files/Audios/audio_*",
"rm -rf /storage/media/100/local/files/Videos/audio_*",
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
"kill -9 `pidof com.ohos.medialibrary.medialibrarydata`",
"sleep 5",
"param set persist.ace.testmode.enabled 1",
"power-shell wakeup",
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100",
......
......@@ -106,6 +106,17 @@ export default function AVPlayerMultiTrackTest() {
}, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback);
}
async function getCurrentAudioTrackCall() {
await avPlayer.getCurrentTrack(0, (err, index) => {
if (err == null) {
console.info(`case current audio track index is ${index}`);
currentTrack = index;
} else {
console.error('getCurrentTrack failed and error is ' + err.message);
}
});
}
async function changeAudioTrack() {
for(let i = 0; i < audioTrackList.length; i++) {
if (audioTrackList[i] != currentTrack) {
......@@ -223,7 +234,7 @@ export default function AVPlayerMultiTrackTest() {
it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_MULTI_AUDIOTRACK_FUNC_0100', 0, async function (done) {
async function preparedOperation() {
await getAudioTracks();
await getCurrentAudioTrack();
await getCurrentAudioTrackCall();
await changeAudioTrack();
avPlayer.selectTrack(selectedTrack);
expect(currentTrack!=selectedTrack).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册