Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
15ef0a2f
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看板
未验证
提交
15ef0a2f
编写于
6月 12, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 12, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8909 add exifndk testcases
Merge pull request !8909 from zhangqiang183/pr_8510
上级
154bcac7
b1b94b1b
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
1007 addition
and
36 deletion
+1007
-36
multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn
...ia/image/image_js_standard/imageGetImageProperty/BUILD.gn
+6
-6
multimedia/image/image_js_standard/imageGetImageProperty/Test.json
...a/image/image_js_standard/imageGetImageProperty/Test.json
+9
-10
multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b
...andard/imageGetImageProperty/signature/openharmony_sx.p7b
+0
-0
multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json
...ge_js_standard/imageGetImageProperty/src/main/config.json
+5
-9
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js
...dard/imageGetImageProperty/src/main/js/MainAbility/app.js
+1
-1
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js
...mageProperty/src/main/js/MainAbility/pages/index/index.js
+1
-1
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js
...dard/imageGetImageProperty/src/main/js/TestAbility/app.js
+1
-1
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js
...mageProperty/src/main/js/TestAbility/pages/index/index.js
+1
-1
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js
...eProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js
+5
-6
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js
...ndard/imageGetImageProperty/src/main/js/test/List.test.js
+3
-1
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js
...tImageProperty/src/main/js/test/getPropertySecond.test.js
+975
-0
未找到文件。
multimedia/image/image_js_standard/imageGetImageProperty/BUILD.gn
浏览文件 @
15ef0a2f
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
3
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# You may obtain a copy of the License at
...
@@ -16,20 +16,20 @@ import("//test/xts/tools/build/suite.gni")
...
@@ -16,20 +16,20 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("image_getProperty_js_hap") {
ohos_js_hap_suite("image_getProperty_js_hap") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":image_
getProperty_
js_assets",
":image_js_assets",
":image_
getProperty_
resources",
":image_resources",
]
]
certificate_profile = "./signature/openharmony_sx.p7b"
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsImageGetImagePropertyJsTest"
hap_name = "ActsImageGetImagePropertyJsTest"
subsystem_name = "multimedia"
subsystem_name = "multimedia"
part_name = "multimedia_image_
standard
"
part_name = "multimedia_image_
framework
"
}
}
ohos_js_assets("image_
getProperty_
js_assets") {
ohos_js_assets("image_js_assets") {
js2abc = true
js2abc = true
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
source_dir = "./src/main/js"
source_dir = "./src/main/js"
}
}
ohos_resources("image_
getProperty_
resources") {
ohos_resources("image_resources") {
sources = [ "./src/main/resources" ]
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
}
}
multimedia/image/image_js_standard/imageGetImageProperty/Test.json
浏览文件 @
15ef0a2f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
"type"
:
"OHJSUnitTest"
,
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"300000"
,
"test-timeout"
:
"300000"
,
"shell-timeout"
:
"120000"
,
"shell-timeout"
:
"120000"
,
"bundle-name"
:
"ohos.acts.multimedia.image
.GetImageProperty
"
,
"bundle-name"
:
"ohos.acts.multimedia.image"
,
"package-name"
:
"ohos.acts.multimedia.image
.GetImageProperty
"
"package-name"
:
"ohos.acts.multimedia.image"
},
},
"kits"
:
[
"kits"
:
[
{
{
...
@@ -18,27 +18,26 @@
...
@@ -18,27 +18,26 @@
{
{
"type"
:
"ShellKit"
,
"type"
:
"ShellKit"
,
"run-command"
:
[
"run-command"
:
[
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image
.GetImageProperty
/haps/entry/files/"
,
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/"
,
"chmod
777 /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty
/haps/entry/files/*"
"chmod
-R 666 /data/app/el2/100/base/ohos.acts.multimedia.image
/haps/entry/files/*"
],
],
"teardown-command"
:[
"teardown-command"
:
[]
]
},
},
{
{
"type"
:
"PushKit"
,
"type"
:
"PushKit"
,
"pre-push"
:
[],
"pre-push"
:
[],
"push"
:
[
"push"
:
[
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files"
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files"
,
"./resource/image/test_hw.jpg->/data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files"
]
]
},
},
{
{
"type"
:
"ShellKit"
,
"type"
:
"ShellKit"
,
"run-command"
:
[
"run-command"
:
[
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image
.GetImageProperty/haps/entry/files/test_exif.jpg
"
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image
/haps/entry/files/*
"
],
],
"teardown-command"
:
[
"teardown-command"
:
[
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image
.GetImageProperty/haps/entry/files
/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image/*"
]
]
}
}
]
]
...
...
multimedia/image/image_js_standard/imageGetImageProperty/signature/openharmony_sx.p7b
浏览文件 @
15ef0a2f
无法预览此类型文件
multimedia/image/image_js_standard/imageGetImageProperty/src/main/config.json
浏览文件 @
15ef0a2f
{
{
"app"
:
{
"app"
:
{
"apiVersion"
:
{
"apiVersion"
:
{
"compatible"
:
6
,
"compatible"
:
9
,
"releaseType"
:
"Beta1"
,
"releaseType"
:
"Beta1"
,
"target"
:
7
"target"
:
9
},
},
"vendor"
:
"acts"
,
"vendor"
:
"acts"
,
"bundleName"
:
"ohos.acts.multimedia.image
.GetImageProperty
"
,
"bundleName"
:
"ohos.acts.multimedia.image"
,
"version"
:
{
"version"
:
{
"code"
:
1000000
,
"code"
:
1000000
,
"name"
:
"1.0.0"
"name"
:
"1.0.0"
...
@@ -57,11 +57,7 @@
...
@@ -57,11 +57,7 @@
}
}
],
],
"deviceType"
:
[
"deviceType"
:
[
"tablet"
,
"default"
"phone"
,
"tablet"
,
"tv"
,
"wearable"
],
],
"mainAbility"
:
".MainAbility"
,
"mainAbility"
:
".MainAbility"
,
"distro"
:
{
"distro"
:
{
...
@@ -100,7 +96,7 @@
...
@@ -100,7 +96,7 @@
"reason"
:
"use ohos.permission.WRITE_MEDIA"
"reason"
:
"use ohos.permission.WRITE_MEDIA"
}
}
],
],
"package"
:
"ohos.acts.multimedia.image
.GetImageProperty
"
,
"package"
:
"ohos.acts.multimedia.image"
,
"name"
:
".entry"
,
"name"
:
".entry"
,
"js"
:
[
"js"
:
[
{
{
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/app.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/MainAbility/pages/index/index.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/app.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (c) 202
2
Huawei Device Co., Ltd.
* Copyright (c) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestAbility/pages/index/index.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (c) 202
2
Huawei Device Co., Ltd.
* Copyright (c) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/TestRunner/OpenHarmonyTestRunner.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (c) 202
2
Huawei Device Co., Ltd.
* Copyright (c) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
@@ -30,7 +30,7 @@ function translateParamsToString(parameters) {
...
@@ -30,7 +30,7 @@ function translateParamsToString(parameters) {
return
targetParams
.
trim
()
return
targetParams
.
trim
()
}
}
export
default
{
export
default
{
onPrepare
()
{
onPrepare
()
{
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
},
},
...
@@ -44,12 +44,11 @@ function translateParamsToString(parameters) {
...
@@ -44,12 +44,11 @@ function translateParamsToString(parameters) {
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
console
.
info
(
'
debug value :
'
+
debug
)
console
.
info
(
'
debug value :
'
+
debug
)
if
(
debug
==
'
true
'
)
if
(
debug
==
'
true
'
)
{
{
cmd
+=
'
-D
'
cmd
+=
'
-D
'
}
}
console
.
info
(
'
cmd :
'
+
cmd
)
console
.
info
(
'
cmd :
'
+
cmd
)
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
stdResult
);
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
stdResult
);
...
...
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/List.test.js
浏览文件 @
15ef0a2f
/*
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
3
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
imageGetImageProperty
from
"
./getProperty.test.js
"
;
import
imageGetImageProperty
from
"
./getProperty.test.js
"
;
import
imageGetImagePropertySecond
from
"
./getPropertySecond.test.js
"
;
export
default
function
testsuite
()
{
export
default
function
testsuite
()
{
imageGetImageProperty
();
imageGetImageProperty
();
imageGetImagePropertySecond
();
}
}
multimedia/image/image_js_standard/imageGetImageProperty/src/main/js/test/getPropertySecond.test.js
0 → 100644
浏览文件 @
15ef0a2f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录