Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7516046d
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看板
提交
7516046d
编写于
12月 08, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1324 删除不匹配测试用例
Merge pull request !1324 from FULIZHONG/1234
上级
7a975ca2
b67a6fd5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
138 deletion
+0
-138
multimedia/BUILD.gn
multimedia/BUILD.gn
+0
-1
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
...oPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
+0
-67
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
...layer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
+0
-51
multimedia/audio/audio_js_standard/audioPlayer_API/src/main/js/test/PlayerLocalTestAudioAPI.test.js
...ayer_API/src/main/js/test/PlayerLocalTestAudioAPI.test.js
+0
-19
未找到文件。
multimedia/BUILD.gn
浏览文件 @
7516046d
...
...
@@ -20,7 +20,6 @@ group("multimedia") {
"audio/audio_js_standard/audioManager:audio_manager_js_hap",
"audio/audio_js_standard/audioPlayer:audio_player_js_hap",
"audio/audio_js_standard/audioPlayer_API:audio_player_api_js_hap",
"audio/audio_js_standard/audioRecorder:audio_recorder_js_hap",
"media/media_cpp_test_standard:ActsMediaCppStandardTest",
]
} else {
...
...
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js
浏览文件 @
7516046d
...
...
@@ -771,73 +771,6 @@ describe('PlayerLocalTestAudioFUNC', function () {
audioPlayer
.
src
=
AUDIO_SOURCE
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600
* @tc.name : 036.Loop Play
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600
'
,
0
,
async
function
(
done
)
{
let
playCount
=
0
;
let
seekCount
=
0
;
let
isTimeDone
=
false
;
let
testAudioPlayer
=
media
.
createAudioPlayer
();
testAudioPlayer
.
on
(
'
dataLoad
'
,
()
=>
{
console
.
info
(
`case dataLoad called`
);
expect
(
testAudioPlayer
.
currentTime
).
assertEqual
(
0
);
expect
(
testAudioPlayer
.
duration
).
assertEqual
(
DURATION_TIME
);
expect
(
testAudioPlayer
.
state
).
assertEqual
(
'
paused
'
);
testAudioPlayer
.
loop
=
true
;
testAudioPlayer
.
play
();
});
testAudioPlayer
.
on
(
'
play
'
,
()
=>
{
console
.
info
(
`case play called`
);
console
.
info
(
`case play currentTime is
${
testAudioPlayer
.
currentTime
}
`
);
expect
(
testAudioPlayer
.
duration
).
assertEqual
(
DURATION_TIME
);
expect
(
testAudioPlayer
.
state
).
assertEqual
(
'
playing
'
);
sleep
(
PLAY_TIME
);
if
(
playCount
>
0
)
{
return
;
}
playCount
++
testAudioPlayer
.
seek
(
DURATION_TIME
);
});
testAudioPlayer
.
on
(
'
timeUpdate
'
,
(
seekDoneTime
)
=>
{
if
(
typeof
(
seekDoneTime
)
==
'
undefined
'
)
{
console
.
info
(
`case seek filed,errcode is
${
seekDoneTime
}
`
);
return
;
}
if
(
seekCount
>
0
)
{
testAudioPlayer
.
reset
();
return
;
}
seekCount
++
console
.
info
(
`case seekDoneTime is
${
seekDoneTime
}
`
);
console
.
info
(
`case seek called`
);
});
testAudioPlayer
.
on
(
'
finish
'
,
()
=>
{
expect
(
testAudioPlayer
.
state
).
assertEqual
(
'
playing
'
);
console
.
info
(
`case finish called`
);
});
testAudioPlayer
.
on
(
'
reset
'
,
()
=>
{
expect
(
testAudioPlayer
.
state
).
assertEqual
(
'
idle
'
);
console
.
info
(
`case reset called`
);
testAudioPlayer
.
release
();
isTimeDone
=
true
;
});
testAudioPlayer
.
src
=
AUDIO_SOURCE
;
setTimeout
(
function
()
{
if
(
!
isTimeDone
)
{
console
.
info
(
`case is time out!`
);
expect
(
isTimeOut
).
assertTrue
();
}
done
();
},
TIME_OUT
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3700
* @tc.name : 037.set volume 0 to 1
...
...
multimedia/audio/audio_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFormat.test.js
浏览文件 @
7516046d
...
...
@@ -136,57 +136,6 @@ describe('PlayerLocalTestAudioFormat', function () {
playSource
(
BASIC_PATH
+
'
01.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200
* @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 16/32
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
02.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300
* @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 32
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
03.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400
* @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3
Codec : MP3
Samplerate : 48000
Bitrate : 64
Channel : 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400
'
,
0
,
async
function
(
done
)
{
playSource
(
BASIC_PATH
+
'
04.mp3
'
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0100
* @tc.name : 001.Playing mp4 streams
...
...
multimedia/audio/audio_js_standard/audioPlayer_API/src/main/js/test/PlayerLocalTestAudioAPI.test.js
浏览文件 @
7516046d
...
...
@@ -622,25 +622,6 @@ describe('PlayerLocalTestAudioAPI', function () {
audioPlayer
.
src
=
AUDIO_SOURCE
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0100
* @tc.name : 01.get parameters after createAudioPlayer
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0100
'
,
0
,
async
function
(
done
)
{
initAudioPlayer
();
expect
(
audioPlayer
.
src
).
assertEqual
(
undefined
);
expect
(
audioPlayer
.
duration
).
assertEqual
(
undefined
);
expect
(
audioPlayer
.
currentTime
).
assertEqual
(
0
);
expect
(
audioPlayer
.
state
).
assertEqual
(
'
idle
'
);
expect
(
audioPlayer
.
loop
).
assertEqual
(
false
);
done
();
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_Time_API_0200
* @tc.name : 02.get parameters after src
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录