Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
230787e0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
230787e0
编写于
8月 12, 2023
作者:
S
sunshenshen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add xts test for getPhotoIndex
Signed-off-by:
N
sunshenshen
<
sunshenshen@huawei.com
>
上级
46bebc2d
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
800 addition
and
1 deletion
+800
-1
multimedia/photoAccess/photoAccessSystem/Test.json
multimedia/photoAccess/photoAccessSystem/Test.json
+39
-1
multimedia/photoAccess/photoAccessSystem/entry/src/main/ets/test/List.test.ets
...s/photoAccessSystem/entry/src/main/ets/test/List.test.ets
+2
-0
multimedia/photoAccess/photoAccessSystem/entry/src/main/ets/test/getPhotoIndex.ets
...otoAccessSystem/entry/src/main/ets/test/getPhotoIndex.ets
+759
-0
未找到文件。
multimedia/photoAccess/photoAccessSystem/Test.json
浏览文件 @
230787e0
...
@@ -145,6 +145,28 @@
...
@@ -145,6 +145,28 @@
"mediatool send /storage/media/100/local/temp/userCommentPro03.jpg"
,
"mediatool send /storage/media/100/local/temp/userCommentPro03.jpg"
,
"mediatool send /storage/media/100/local/temp/userCommentPro04.jpg"
,
"mediatool send /storage/media/100/local/temp/userCommentPro04.jpg"
,
"mediatool send /storage/media/100/local/temp/getExif.jpg"
,
"mediatool send /storage/media/100/local/temp/getExif.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex03.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex03.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex03.jpg"
,
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex01.mp4"
,
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex02.mp4"
,
"cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex03.mp4"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex03.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex03.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex01.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex02.jpg"
,
"cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex03.jpg"
,
"chmod -R 777 /storage/media/100/local/files/*"
,
"chmod -R 777 /storage/media/100/local/files/*"
,
"hilog -p off"
,
"hilog -p off"
,
"hilog -Q pidoff"
,
"hilog -Q pidoff"
,
...
@@ -154,7 +176,23 @@
...
@@ -154,7 +176,23 @@
"sleep 5"
"sleep 5"
],
],
"teardown-command"
:
[
"teardown-command"
:
[
"power-shell setmode 600"
"power-shell setmode 600"
,
"rm -rf /storage/media/100/local/files/Audios/*"
,
"rm -rf /storage/media/100/local/files/Audios/.*"
,
"rm -rf /storage/media/100/local/files/Camera/*"
,
"rm -rf /storage/media/100/local/files/Camera/.*"
,
"rm -rf /storage/media/100/local/files/Documents/*"
,
"rm -rf /storage/media/100/local/files/Documents/.*"
,
"rm -rf /storage/media/100/local/files/Download/*"
,
"rm -rf /storage/media/100/local/files/Download/.*"
,
"rm -rf /storage/media/100/local/files/Pictures/*"
,
"rm -rf /storage/media/100/local/files/Pictures/.*"
,
"rm -rf /storage/media/100/local/files/Videos/*"
,
"rm -rf /storage/media/100/local/files/Videos/.*"
,
"sleep 5"
,
"rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*"
,
"kill -9 `pidof com.ohos.medialibrary.medialibrarydata`"
,
"scanner"
]
]
},
},
{
{
...
...
multimedia/photoAccess/photoAccessSystem/entry/src/main/ets/test/List.test.ets
浏览文件 @
230787e0
...
@@ -27,6 +27,7 @@ import setFavoriteTest from './setFavorite'
...
@@ -27,6 +27,7 @@ import setFavoriteTest from './setFavorite'
import setHiddenTest from './setHidden'
import setHiddenTest from './setHidden'
import trashAssetsTest from './deleteAssets'
import trashAssetsTest from './deleteAssets'
import setUserCommentTest from './setUserComment'
import setUserCommentTest from './setUserComment'
import getPhotoIndexTest from './getPhotoIndex'
export default function testsuite () {
export default function testsuite () {
deleteAssetsTest()
deleteAssetsTest()
...
@@ -43,4 +44,5 @@ export default function testsuite () {
...
@@ -43,4 +44,5 @@ export default function testsuite () {
setHiddenTest()
setHiddenTest()
trashAssetsTest()
trashAssetsTest()
setUserCommentTest()
setUserCommentTest()
getPhotoIndexTest()
}
}
multimedia/photoAccess/photoAccessSystem/entry/src/main/ets/test/getPhotoIndex.ets
0 → 100644
浏览文件 @
230787e0
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录