未验证 提交 333780d3 编写于 作者: O openharmony_ci 提交者: Gitee

!7314 [medialibrary][OpenHarmony_3.1_Release]testcase adaptation

Merge pull request !7314 from guoxiaoyu/gxy0129
......@@ -639,7 +639,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try {
let fileType = mediaLibrary.MediaType.VIDEO;
let fileFetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ fileType.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fileFetchOp);
......@@ -708,7 +708,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try {
let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ type.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fetchOp);
......@@ -773,7 +773,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try {
let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ type.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fetchOp);
......
......@@ -458,7 +458,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try {
let fileType = mediaLibrary.MediaType.VIDEO;
let fileFetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ fileType.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fileFetchOp);
......@@ -517,7 +517,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try {
let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ type.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fetchOp);
......@@ -561,7 +561,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try {
let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs : [ type.toString(), '01.mp4' ],
};
let fetchFileResult = await media.getFileAssets(fetchOp);
......
......@@ -29,7 +29,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()],
};
let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs: [videoType.toString(), '01.mp4'],
};
let audiosfetchOp = {
......
......@@ -40,7 +40,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()],
};
let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs: [videoType.toString(), '01.mp4'],
};
let audiosfetchOp = {
......
......@@ -40,7 +40,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()],
};
let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?',
selectionArgs: [videoType.toString(), '01.mp4'],
};
let audiosfetchOp = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册