Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d4a0b716
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看板
未验证
提交
d4a0b716
编写于
7月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4296 Image monthly失败用例修改
Merge pull request !4296 from 秦莉文/cherry-pick-1657717696
上级
157d758d
d6884410
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
11 addition
and
8 deletion
+11
-8
multimedia/image/image_js_standard/imageExif/Test.json
multimedia/image/image_js_standard/imageExif/Test.json
+4
-2
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+7
-6
未找到文件。
multimedia/image/image_js_standard/imageExif/Test.json
浏览文件 @
d4a0b716
...
@@ -26,14 +26,16 @@
...
@@ -26,14 +26,16 @@
"pre-push"
:
[
"pre-push"
:
[
],
],
"push"
:
[
"push"
:
[
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
,
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
]
]
},
},
{
{
"type"
:
"ShellKit"
,
"type"
:
"ShellKit"
,
"run-command"
:
[
"run-command"
:
[
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif.jpg"
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif.jpg"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif1.jpg"
],
],
"teardown-command"
:[
"teardown-command"
:[
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
d4a0b716
...
@@ -22,6 +22,7 @@ import bundle from '@ohos.bundle'
...
@@ -22,6 +22,7 @@ import bundle from '@ohos.bundle'
describe
(
'
Image
'
,
function
()
{
describe
(
'
Image
'
,
function
()
{
var
pathExifJpg
=
'
/data/storage/el2/base/files/test_exif.jpg
'
;
var
pathExifJpg
=
'
/data/storage/el2/base/files/test_exif.jpg
'
;
var
pathExifJpg1
=
'
/data/storage/el2/base/files/test_exif1.jpg
'
;
let
globalpixelmap
;
let
globalpixelmap
;
beforeAll
(
async
function
()
{
beforeAll
(
async
function
()
{
await
applyPermission
();
await
applyPermission
();
...
@@ -1230,7 +1231,7 @@ describe('Image', function () {
...
@@ -1230,7 +1231,7 @@ describe('Image', function () {
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
TC_171
'
,
0
,
async
function
(
done
)
{
it
(
'
TC_171
'
,
0
,
async
function
(
done
)
{
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
);
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
1
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
'
TC_171 create image source failed
'
);
console
.
info
(
'
TC_171 create image source failed
'
);
...
@@ -1240,7 +1241,7 @@ describe('Image', function () {
...
@@ -1240,7 +1241,7 @@ describe('Image', function () {
imageSourceApi
.
getImageProperty
(
"
BitsPerSample
"
)
imageSourceApi
.
getImageProperty
(
"
BitsPerSample
"
)
.
then
(
data
=>
{
.
then
(
data
=>
{
console
.
info
(
'
TC_171 BitsPerSample
'
+
data
);
console
.
info
(
'
TC_171 BitsPerSample
'
+
data
);
expect
(
data
!=
undefined
).
assertTrue
();
expect
(
data
!=
undefined
&&
data
!=
''
).
assertTrue
();
done
();
done
();
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
...
@@ -1526,7 +1527,7 @@ describe('Image', function () {
...
@@ -1526,7 +1527,7 @@ describe('Image', function () {
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
TC_172
'
,
0
,
async
function
(
done
)
{
it
(
'
TC_172
'
,
0
,
async
function
(
done
)
{
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
);
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
1
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
'
TC_172 create image source failed
'
);
console
.
info
(
'
TC_172 create image source failed
'
);
...
@@ -1540,7 +1541,7 @@ describe('Image', function () {
...
@@ -1540,7 +1541,7 @@ describe('Image', function () {
done
();
done
();
}
else
{
}
else
{
console
.
info
(
'
TC_172 BitsPerSample
'
+
data
);
console
.
info
(
'
TC_172 BitsPerSample
'
+
data
);
expect
(
data
!=
undefined
).
assertTrue
();
expect
(
data
!=
undefined
&&
data
!=
''
).
assertTrue
();
done
();
done
();
}
}
})
})
...
@@ -1815,7 +1816,7 @@ describe('Image', function () {
...
@@ -1815,7 +1816,7 @@ describe('Image', function () {
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
TC_173
'
,
0
,
async
function
(
done
)
{
it
(
'
TC_173
'
,
0
,
async
function
(
done
)
{
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
);
let
fdNumber
=
fileio
.
openSync
(
pathExifJpg
1
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
const
imageSourceApi
=
image
.
createImageSource
(
fdNumber
);
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
'
TC_173 create image source failed
'
);
console
.
info
(
'
TC_173 create image source failed
'
);
...
@@ -1830,7 +1831,7 @@ describe('Image', function () {
...
@@ -1830,7 +1831,7 @@ describe('Image', function () {
done
();
done
();
}
else
{
}
else
{
console
.
info
(
'
TC_173 BitsPerSample
'
+
data
);
console
.
info
(
'
TC_173 BitsPerSample
'
+
data
);
expect
(
data
!=
'
9999
'
&&
data
!=
undefined
).
assertTrue
();
expect
(
data
!=
'
9999
'
&&
data
!=
undefined
&&
data
!=
''
).
assertTrue
();
done
();
done
();
}
}
})
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录