未验证 提交 055be1e8 编写于 作者: O openharmony_ci 提交者: Gitee

!3610 【媒体子系统】medialibrary问题整改

Merge pull request !3610 from 陈佳欢/OpenHarmony-3.1-Release
...@@ -27,56 +27,56 @@ let getFileCountOneOp = { ...@@ -27,56 +27,56 @@ let getFileCountOneOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,1",
extendArgs: "",
}; };
let getFileCountTwoOp = { let getFileCountTwoOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,2", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,2",
extendArgs: "",
}; };
let getFileCountTenOp = { let getFileCountTenOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,10", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,10",
extendArgs: "",
}; };
let getFileCountOneHundredOp = { let getFileCountOneHundredOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,100",
extendArgs: "",
}; };
let getFirstObjectOp = { let getFirstObjectOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,5", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,5",
extendArgs: "",
} }
let getAllObjectLimitOneOp = { let getAllObjectLimitOneOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1",
extendArgs: "",
} }
let getAllObjectLimitTwoOp = { let getAllObjectLimitTwoOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1",
extendArgs: "",
} }
let getAllObjectLimitOneHundredOp = { let getAllObjectLimitOneHundredOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100",
extendArgs: "",
} }
let getFileCountZeroOp = { let getFileCountZeroOp = {
...@@ -88,7 +88,7 @@ let getFileOp = { ...@@ -88,7 +88,7 @@ let getFileOp = {
selections : mediaLibrary.FileKey.DISPLAY_NAME + '= ? AND ' + mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.DISPLAY_NAME + '= ? AND ' + mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ '01.jpg', 'Camera/' ], selectionArgs : [ '01.jpg', 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100",
extendArgs: "",
} }
describe('fetchFileResultCallback.test.js', async function() { describe('fetchFileResultCallback.test.js', async function() {
......
...@@ -27,56 +27,56 @@ let getFileCountOneOp = { ...@@ -27,56 +27,56 @@ let getFileCountOneOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,1",
extendArgs: "",
}; };
let getFileCountTwoOp = { let getFileCountTwoOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,2", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,2",
extendArgs: "",
}; };
let getFileCountTenOp = { let getFileCountTenOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,10", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,10",
extendArgs: "",
}; };
let getFileCountOneHundredOp = { let getFileCountOneHundredOp = {
selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?', selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ?',
selectionArgs : [ fileType.toString() ], selectionArgs : [ fileType.toString() ],
order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.DATE_ADDED + " DESC LIMIT 0,100",
extendArgs: "",
}; };
let getFirstObjectOp = { let getFirstObjectOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,5", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,5",
extendArgs: "",
} }
let getAllObjectLimitOneOp = { let getAllObjectLimitOneOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1",
extendArgs: "",
} }
let getAllObjectLimitTwoOp = { let getAllObjectLimitTwoOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,1",
extendArgs: "",
} }
let getAllObjectLimitOneHundredOp = { let getAllObjectLimitOneHundredOp = {
selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ 'Camera/' ], selectionArgs : [ 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100",
extendArgs: "",
} }
let getFileCountZeroOp = { let getFileCountZeroOp = {
...@@ -88,7 +88,7 @@ let getFileOp = { ...@@ -88,7 +88,7 @@ let getFileOp = {
selections : mediaLibrary.FileKey.DISPLAY_NAME + '= ? AND ' + mediaLibrary.FileKey.RELATIVE_PATH + '= ?', selections : mediaLibrary.FileKey.DISPLAY_NAME + '= ? AND ' + mediaLibrary.FileKey.RELATIVE_PATH + '= ?',
selectionArgs : [ '01.jpg', 'Camera/' ], selectionArgs : [ '01.jpg', 'Camera/' ],
order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100", order : mediaLibrary.FileKey.ID + " DESC LIMIT 0,100",
extendArgs: "",
} }
describe('fetchFileResultPromise.test.js', async function() { describe('fetchFileResultPromise.test.js', async function() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册