提交 e4d0f826 编写于 作者: C chenshuteng

fix xts failed by mimetype

Signed-off-by: Nchenshuteng <chenshuteng@huawei.com>
Change-Id: I0046feb21e07aa69d6ead69379da5706b98a7da1
上级 d5e48ffb
......@@ -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);
});
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册