提交 c33dde1f 编写于 作者: Q qinliwen

用例整改

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 cd817803
...@@ -1331,6 +1331,7 @@ describe('audioRenderer', function () { ...@@ -1331,6 +1331,7 @@ describe('audioRenderer', function () {
audioRen = data; audioRen = data;
} }
}); });
await sleep(100);
console.log(`isPass: ${isPass}`); console.log(`isPass: ${isPass}`);
if (isPass) { if (isPass) {
resultFlag = true; resultFlag = true;
......
...@@ -639,8 +639,8 @@ describe('fileAssetTestCallback.test.js', async function() { ...@@ -639,8 +639,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fileFetchOp); let fetchFileResult = await media.getFileAssets(fileFetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
...@@ -708,8 +708,8 @@ describe('fileAssetTestCallback.test.js', async function() { ...@@ -708,8 +708,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ type.toString() ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
...@@ -773,8 +773,8 @@ describe('fileAssetTestCallback.test.js', async function() { ...@@ -773,8 +773,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ type.toString() ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
......
...@@ -458,8 +458,8 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -458,8 +458,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ fileType.toString()], selectionArgs : [ fileType.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fileFetchOp); let fetchFileResult = await media.getFileAssets(fileFetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
...@@ -517,8 +517,8 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -517,8 +517,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ type.toString() ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
...@@ -561,8 +561,8 @@ describe('fileAssetTestPromise.test.js', async function() { ...@@ -561,8 +561,8 @@ 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 + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs : [ type.toString() ], selectionArgs : [ type.toString(), '01.mp4' ],
}; };
let fetchFileResult = await media.getFileAssets(fetchOp); let fetchFileResult = await media.getFileAssets(fetchOp);
const dataList = await fetchFileResult.getAllObject(); const dataList = await fetchFileResult.getAllObject();
......
...@@ -29,8 +29,8 @@ let imagesfetchOp = { ...@@ -29,8 +29,8 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs: [videoType.toString()], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?',
......
...@@ -40,8 +40,8 @@ let imagesfetchOp = { ...@@ -40,8 +40,8 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs: [videoType.toString()], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?',
......
...@@ -40,8 +40,8 @@ let imagesfetchOp = { ...@@ -40,8 +40,8 @@ let imagesfetchOp = {
selectionArgs: [imageType.toString()], selectionArgs: [imageType.toString()],
}; };
let videosfetchOp = { let videosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND display_name = ?',
selectionArgs: [videoType.toString()], selectionArgs: [videoType.toString(), '01.mp4'],
}; };
let audiosfetchOp = { let audiosfetchOp = {
selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?', selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册