未验证 提交 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() { ...@@ -639,7 +639,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try { try {
let fileType = mediaLibrary.MediaType.VIDEO; let fileType = mediaLibrary.MediaType.VIDEO;
let fileFetchOp = { 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' ], selectionArgs : [ fileType.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fileFetchOp); let fetchFileResult = await media.getFileAssets(fileFetchOp);
...@@ -708,7 +708,7 @@ describe('fileAssetTestCallback.test.js', async function() { ...@@ -708,7 +708,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try { try {
let type = mediaLibrary.MediaType.VIDEO; let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = { 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' ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
...@@ -773,7 +773,7 @@ describe('fileAssetTestCallback.test.js', async function() { ...@@ -773,7 +773,7 @@ describe('fileAssetTestCallback.test.js', async function() {
try { try {
let type = mediaLibrary.MediaType.VIDEO; let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = { 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' ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
......
...@@ -458,7 +458,7 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -458,7 +458,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try { try {
let fileType = mediaLibrary.MediaType.VIDEO; let fileType = mediaLibrary.MediaType.VIDEO;
let fileFetchOp = { 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' ], selectionArgs : [ fileType.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fileFetchOp); let fetchFileResult = await media.getFileAssets(fileFetchOp);
...@@ -517,7 +517,7 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -517,7 +517,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try { try {
let type = mediaLibrary.MediaType.VIDEO; let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = { 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' ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
...@@ -561,7 +561,7 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -561,7 +561,7 @@ describe('fileAssetTestPromise.test.js', async function() {
try { try {
let type = mediaLibrary.MediaType.VIDEO; let type = mediaLibrary.MediaType.VIDEO;
let fetchOp = { 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' ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
......
...@@ -29,7 +29,7 @@ let imagesfetchOp = { ...@@ -29,7 +29,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { 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'], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
......
...@@ -40,7 +40,7 @@ let imagesfetchOp = { ...@@ -40,7 +40,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { 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'], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
......
...@@ -40,7 +40,7 @@ let imagesfetchOp = { ...@@ -40,7 +40,7 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { 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'], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册