Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e6a8b128
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看板
提交
e6a8b128
编写于
6月 14, 2022
作者:
N
NOBUGGERS
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hls testcase update, http 冗余测试用例删除 Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>
Signed-off-by:
N
NOBUGGERS
<
ruanmeng@huawei.com
>
上级
5df70a33
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
8 addition
and
596 deletion
+8
-596
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/List.test.js
...media_js_standard/hlsPlayer/src/main/js/test/List.test.js
+1
-1
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
...Player/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
+3
-5
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
...ard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
+2
-2
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerFuncCallbackTest.test.js
...layer/src/main/js/test/HttpPlayerFuncCallbackTest.test.js
+0
-586
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/List.test.js
...edia_js_standard/httpPlayer/src/main/js/test/List.test.js
+2
-2
未找到文件。
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/List.test.js
浏览文件 @
e6a8b128
...
...
@@ -15,4 +15,4 @@
require
(
'
./VideoPlayerHLSTest.test.js
'
)
require
(
'
./AudioPlayerHLSTest.test.js
'
)
// require('./VideoPlayerHLSBitrateTest.test.js')
\ No newline at end of file
require
(
'
./VideoPlayerHLSBitrateTest.test.js
'
)
\ No newline at end of file
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSBitrateTest.test.js
浏览文件 @
e6a8b128
...
...
@@ -14,7 +14,6 @@
*/
import
media
from
'
@ohos.multimedia.media
'
import
{
toNewPage
,
clearRouter
}
from
'
../../../../../VideoPlayerTestBase.js
'
;
import
*
as
mediaTestBase
from
'
../../../../../MediaTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
...
...
@@ -67,7 +66,8 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
console
.
info
(
'
case videoSizeChanged width:
'
+
w
+
'
height:
'
+
h
+
'
videoSizeId:
'
+
videoSizeId
);
width
=
w
;
height
=
h
;
if
(
w
==
videoSizeArray
[
videoSizeId
][
0
]
&&
h
==
videoSizeArray
[
videoSizeId
][
1
])
{
if
(
videoSizeId
>=
0
&&
videoSizeId
<
videoSizeArray
.
length
&&
w
==
videoSizeArray
[
videoSizeId
][
0
]
&&
h
==
videoSizeArray
[
videoSizeId
][
1
])
{
releaseVideoPlayer
(
done
);
}
});
...
...
@@ -142,7 +142,6 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
videoSizeArray
=
[
[
256
,
144
],
[
426
,
240
],
[
640
,
360
],
[
854
,
480
],
[
1280
,
720
]
];
checkArray
(
bitrateArray
,
expectBitrateArray
);
videoSizeId
=
1
;
console
.
info
(
'
case selectBitRate aaa
'
+
expectBitrateArray
[
videoSizeId
]);
videoPlayer
.
selectBitrate
(
expectBitrateArray
[
videoSizeId
]).
then
((
bitrate
)
=>
{
console
.
info
(
'
case selectBitrate called
'
);
expect
(
bitrate
).
assertEqual
(
expectBitrateArray
[
videoSizeId
]);
...
...
@@ -164,8 +163,7 @@ describe('VideoPlayerHLSBitrateTest.test', function () {
expectBitrateArray
=
[
165340
,
344388
,
387360
,
765178
,
1676816
];
videoSizeArray
=
[
[
256
,
144
],
[
426
,
240
],
[
640
,
360
],
[
854
,
480
],
[
1280
,
720
]
];
checkArray
(
bitrateArray
,
expectBitrateArray
);
videoSizeId
=
videoSizeArray
.
length
-
1
;
console
.
info
(
'
case selectBitRate
'
+
expectBitrateArray
[
videoSizeId
]);
videoSizeId
=
videoSizeArray
.
length
-
2
;
videoPlayer
.
selectBitrate
(
expectBitrateArray
[
videoSizeId
],
(
err
,
bitrate
)
=>
{
console
.
info
(
'
case selectBitrate called
'
);
if
(
typeof
(
err
)
==
'
undefined
'
)
{
...
...
multimedia/media/media_js_standard/hlsPlayer/src/main/js/test/VideoPlayerHLSTest.test.js
浏览文件 @
e6a8b128
...
...
@@ -94,7 +94,7 @@ describe('VideoPlayerHLSTest', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_VARIANT
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
,
null
,
null
,
1
20000
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant/index.m3u8
'
,
null
,
null
,
1
0033
,
PLAY_TIME
,
done
);
done
();
})
...
...
@@ -120,7 +120,7 @@ describe('VideoPlayerHLSTest', function () {
* @tc.level : Level0
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_HLS_CODEC_CHAGNGE
'
,
0
,
async
function
(
done
)
{
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant3/index.m3u8
'
,
null
,
null
,
1
2000
0
,
PLAY_TIME
,
done
);
await
playVideoSource
(
HTTP_PATH
+
'
05.hls/hls_variant3/index.m3u8
'
,
null
,
null
,
1
008
0
,
PLAY_TIME
,
done
);
done
();
})
...
...
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/HttpPlayerFuncCallbackTest.test.js
已删除
100644 → 0
浏览文件 @
5df70a33
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/httpPlayer/src/main/js/test/List.test.js
浏览文件 @
e6a8b128
...
...
@@ -12,6 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./HttpPlayerCompatibilityTest.test.js
'
)
require
(
'
./HttpPlayerFuncPromiseTest.test.js
'
)
\ No newline at end of file
require
(
'
./HttpPlayerFuncCallbackTest.test.js
'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录