提交 36c77c75 编写于 作者: T tongtongdad

<XTS接口补充>

Signed-off-by: Ntongtongdad <liwei200@hisilicon.com>
上级 5358adf7
......@@ -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.
先完成此消息的编辑!
想要评论请 注册