Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
120b9b71
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
120b9b71
编写于
7月 21, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4432 修改fileTestCallBack.test.ets、fileTestPromise.test.ets和mediaLibraryTestPromiseOnOff.test.ets文件
Merge pull request !4432 from 王龙飞/master
上级
3465b55b
cd442ea9
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
25 addition
and
24 deletion
+25
-24
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/fileTestCallBack.test.ets
...tandard/entry/src/main/ets/test/fileTestCallBack.test.ets
+8
-8
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/fileTestPromise.test.ets
...standard/entry/src/main/ets/test/fileTestPromise.test.ets
+9
-8
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
...y/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
+8
-8
未找到文件。
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/fileTestCallBack.test.ets
浏览文件 @
120b9b71
...
...
@@ -25,20 +25,20 @@ let videoType = mediaLibrary.MediaType.VIDEO;
let
audioType
=
mediaLibrary
.
MediaType
.
AUDIO
;
let
imagesfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
imageType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Pictures/Dynamic01/'
,
imageType
.
toString
()],
};
let
videosfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
videoType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Videos/Dynamic01/'
,
videoType
.
toString
()],
};
let
audiosfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
audioType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Audios/Dynamic01/'
,
audioType
.
toString
()],
};
let
filesfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
fileType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Documents/Dynamic01/'
,
fileType
.
toString
()],
};
function
checkAssetAttr
(
done
,
attr
,
testNum
,
asset
,
checkType
)
{
...
...
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/fileTestPromise.test.ets
浏览文件 @
120b9b71
...
...
@@ -18,6 +18,7 @@ import featureAbility from '@ohos.ability.featureAbility';
import
fileio
from
'@ohos.fileio'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'deccjsunit/index'
;
let
fileKeyObj
=
mediaLibrary
.
FileKey
;
let
fileType
=
mediaLibrary
.
MediaType
.
FILE
;
let
imageType
=
mediaLibrary
.
MediaType
.
IMAGE
;
...
...
@@ -25,20 +26,20 @@ let videoType = mediaLibrary.MediaType.VIDEO;
let
audioType
=
mediaLibrary
.
MediaType
.
AUDIO
;
let
imagesfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
imageType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Pictures/Dynamic01/'
,
imageType
.
toString
()],
};
let
videosfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
videoType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Videos/Dynamic01/'
,
videoType
.
toString
()],
};
let
audiosfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
audioType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Audios/Dynamic01/'
,
audioType
.
toString
()],
};
let
filesfetchOp
=
{
selections
:
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
fileType
.
toString
()],
selections
:
fileKeyObj
.
RELATIVE_PATH
+
'= ? AND '
+
fileKeyObj
.
MEDIA_TYPE
+
'= ?'
,
selectionArgs
:
[
'Documents/Dynamic01/'
,
fileType
.
toString
()],
};
function
checkAssetAttr
(
done
,
attr
,
testNum
,
asset
,
checkType
)
{
...
...
multimedia/medialibrary/mediaLibrary_js_standard/entry/src/main/ets/test/mediaLibraryTestPromiseOnOff.test.ets
浏览文件 @
120b9b71
...
...
@@ -32,20 +32,20 @@ export default function mediaLibraryTestPromiseOnOffTest(abilityContext){
let fileType = mediaLibrary.MediaType.FILE;
let imagesfetchOp = {
selections: fileKeyObj.MEDIA_TYPE + '= ?',
selectionArgs: [imageType.toString()],
selections: fileKeyObj.
RELATIVE_PATH + '= ? AND ' + fileKeyObj.
MEDIA_TYPE + '= ?',
selectionArgs: [
'Pictures/Dynamic01/',
imageType.toString()],
};
let videosfetchOp = {
selections: fileKeyObj.MEDIA_TYPE + '= ?',
selectionArgs: [videoType.toString()],
selections: fileKeyObj.
RELATIVE_PATH + '= ? AND ' + fileKeyObj.
MEDIA_TYPE + '= ?',
selectionArgs: [
'Videos/Dynamic01/',
videoType.toString()],
};
let audiosfetchOp = {
selections: fileKeyObj.MEDIA_TYPE + '= ?',
selectionArgs: [audioType.toString()],
selections: fileKeyObj.
RELATIVE_PATH + '= ? AND ' + fileKeyObj.
MEDIA_TYPE + '= ?',
selectionArgs: [
'Audios/Dynamic01/',
audioType.toString()],
};
let filesfetchOp = {
selections: fileKeyObj.MEDIA_TYPE + '= ?',
selectionArgs: [fileType.toString()],
selections: fileKeyObj.
RELATIVE_PATH + '= ? AND ' + fileKeyObj.
MEDIA_TYPE + '= ?',
selectionArgs: [
'Documents/Dynamic01/',
fileType.toString()],
};
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录