Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
28a484c4
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看板
未验证
提交
28a484c4
编写于
3月 16, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 16, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7902 fix xts failed by mimetype
Merge pull request !7902 from chenshuteng/master
上级
4cb83574
e4d0f826
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
15 deletion
+15
-15
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
...entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
+8
-8
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
.../entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
+7
-7
未找到文件。
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestCallback.test.ets
浏览文件 @
28a484c4
...
...
@@ -130,7 +130,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
const
props
=
{
image
:
{
mimeType
:
"image/
*
"
,
mimeType
:
"image/
jpeg
"
,
displayName
:
"01.jpg"
,
relativePath
:
"Pictures/Static/"
,
size
:
348113
,
...
...
@@ -165,8 +165,8 @@ export default function mediaLibraryTestCallback(abilityContext) {
orientation
:
0
,
duration
:
"219600"
,
},
file
:
{
mimeType
:
"
file/*
"
,
application
:
{
mimeType
:
"
application/octet-stream
"
,
displayName
:
"01.dat"
,
relativePath
:
"Documents/Static/"
,
size
:
10
,
...
...
@@ -421,7 +421,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
it
(
"SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_004"
,
0
,
async
function
(
done
)
{
let
testNum
=
"SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_004"
;
let
currentFetchOps
=
fetchOps
(
testNum
,
"Documents/Static/"
,
FILE_TYPE
);
let
type
=
"
file
"
;
let
type
=
"
application
"
;
let
count
=
1
;
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
null
);
});
...
...
@@ -439,7 +439,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
let
currentFetchOps
=
imageAndVideofetchOp
;
let
type
=
"video"
;
let
count
=
2
;
let
typesArr
=
[
"image/
*
"
,
"video/mp4"
];
let
typesArr
=
[
"image/
jpeg
"
,
"video/mp4"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
@@ -454,9 +454,9 @@ export default function mediaLibraryTestCallback(abilityContext) {
it
(
"SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_006"
,
0
,
async
function
(
done
)
{
let
testNum
=
"SUB_MEDIA_MEDIALIBRARY_CALLBACK_GETFILEASSETS_006"
;
let
currentFetchOps
=
imageAndVideoAndfilefetchOp
;
let
type
=
"
file
"
;
let
type
=
"
application
"
;
let
count
=
3
;
let
typesArr
=
[
"image/
*"
,
"video/mp4"
,
"file/*
"
];
let
typesArr
=
[
"image/
jpeg"
,
"video/mp4"
,
"application/octet-stream
"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
@@ -473,7 +473,7 @@ export default function mediaLibraryTestCallback(abilityContext) {
let
currentFetchOps
=
imageAndVideoAndfileAndAudiofetchOp
;
let
type
=
"audio"
;
let
count
=
4
;
let
typesArr
=
[
"image/
*"
,
"video/mp4"
,
"file/*
"
,
"audio/mpeg"
];
let
typesArr
=
[
"image/
jpeg"
,
"video/mp4"
,
"application/octet-stream
"
,
"audio/mpeg"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/test/mediaLibraryTestPromise.test.ets
浏览文件 @
28a484c4
...
...
@@ -162,8 +162,8 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
orientation
:
0
,
duration
:
"219600"
,
},
file
:
{
mimeType
:
"
file/*
"
,
application
:
{
mimeType
:
"
application/octet-stream
"
,
displayName
:
"01.dat"
,
relativePath
:
"Documents/Static/"
,
size
:
10
,
...
...
@@ -393,7 +393,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
it
(
"SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_004"
,
0
,
async
function
(
done
)
{
let
testNum
=
"SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_004"
;
let
currentFetchOps
=
fetchOps
(
testNum
,
"Documents/Static/"
,
FILE_TYPE
);
let
type
=
"
file
"
;
let
type
=
"
application
"
;
let
count
=
1
;
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
null
);
});
...
...
@@ -411,7 +411,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
let
currentFetchOps
=
imageAndVideofetchOp
;
let
type
=
"video"
;
let
count
=
2
;
let
typesArr
=
[
"image/
*
"
,
"video/mp4"
];
let
typesArr
=
[
"image/
jpeg
"
,
"video/mp4"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
@@ -426,9 +426,9 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
it
(
"SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_006"
,
0
,
async
function
(
done
)
{
let
testNum
=
"SUB_MEDIA_MEDIALIBRARY_PROMISE_GETFILEASSETS_006"
;
let
currentFetchOps
=
imageAndVideoAndfilefetchOp
;
let
type
=
"
file
"
;
let
type
=
"
application
"
;
let
count
=
3
;
let
typesArr
=
[
"image/
*"
,
"video/mp4"
,
"file/*
"
];
let
typesArr
=
[
"image/
jpeg"
,
"video/mp4"
,
"application/octet-stream
"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
@@ -445,7 +445,7 @@ export default function mediaLibraryTestPromiseTest(abilityContext) {
let
currentFetchOps
=
imageAndVideoAndfileAndAudiofetchOp
;
let
type
=
"audio"
;
let
count
=
4
;
let
typesArr
=
[
"image/
*"
,
"video/mp4"
,
"file/*
"
,
"audio/mpeg"
];
let
typesArr
=
[
"image/
jpeg"
,
"video/mp4"
,
"application/octet-stream
"
,
"audio/mpeg"
];
await
checkFileAssetAttr
(
done
,
testNum
,
currentFetchOps
,
type
,
count
,
typesArr
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录