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

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

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