You need to sign in or sign up before continuing.
未验证 提交 a0efe9a8 编写于 作者: O openharmony_ci 提交者: Gitee

!3077 【媒体子系统】image用例整改

Merge pull request !3077 from L刘/master
......@@ -2,38 +2,50 @@
"description": "Configuration for Image Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "1500000",
"package": "ohos.acts.multimedia.image",
"shell-timeout": "120000"
},
"kits": [
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test.tiff ->/storage/media/100/local/files",
"./resource/image/test.123 ->/storage/media/100/local/files",
"./resource/image/test.bmp ->/storage/media/100/local/files",
"./resource/image/test.png ->/storage/media/100/local/files",
"./resource/image/test.gif ->/storage/media/100/local/files",
"./resource/image/test.jpg ->/storage/media/100/local/files",
"./resource/image/test_exif.jpg ->/storage/media/100/local/files",
"./resource/image/moving_test.gif ->/storage/media/100/local/files"
]
},
{
"type": "ShellKit",
"run-command": [
"mkdir /data/accounts/account_0/appdata/image",
"mkdir /storage/media/100/local/files/cjh",
"cp /storage/media/100/local/files/test.tiff /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test.123 /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test.bmp /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test.png /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test.gif /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test.jpg /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/test_exif.jpg /storage/media/100/local/files/cjh/",
"cp /storage/media/100/local/files/moving_test.gif /storage/media/100/local/files/cjh/",
"chmod -R 666 /data/media/*",
"chmod -R 666 /data/accounts/account_0/appdata/image/*"
"chmod -R 666 /storage/media/100/local/files/cjh/*",
"killall com.ohos.medialibrary.MediaScannerAbilityA",
"aa start -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
],
"teardown-command":[
]
},
{
"type": "PushKit",
"pre-push": [
],
"push": [
"./resource/image/test.tiff ->/data/accounts/account_0/appdata/image",
"./resource/image/test.123 ->/data/accounts/account_0/appdata/image",
"./resource/image/test.bmp ->/data/accounts/account_0/appdata/image",
"./resource/image/test.png ->/data/accounts/account_0/appdata/image",
"./resource/image/test.gif ->/data/accounts/account_0/appdata/image",
"./resource/image/test.jpg ->/data/accounts/account_0/appdata/image",
"./resource/image/test_exif.jpg ->/data/accounts/account_0/appdata/image",
"./resource/image/moving_test.gif ->/data/accounts/account_0/appdata/image"
]
},
{
"test-file-name": [
"ActsImageJsTest.hap"
......
......@@ -56,6 +56,36 @@
"deliveryWithInstall": true,
"moduleName": "entry"
},
"reqPermissions": [
{
"name": "ohos.permission.GET_BUNDLE_INFO",
"reason": "use ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name" : "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
},
{
"name" : "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
"reason" : "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason":"use ohos.permission.MEDIA_LOCATION"
},
{
"name": "ohos.permission.READ_MEDIA",
"reason":"use ohos.permission.READ_MEDIA"
},
{
"name": "ohos.permission.WRITE_MEDIA",
"reason":"use ohos.permission.WRITE_MEDIA"
}
],
"package": "ohos.acts.multimedia.image",
"name": ".MyApplication",
"js": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册