Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
bdb0cf87
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,发现更多精彩内容 >>
未验证
提交
bdb0cf87
编写于
7月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4475 Image ScaleMode接口用例修改&增加opacity接口用例
Merge pull request !4475 from 秦莉文/master
上级
2b69936d
0f04a0c1
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
964 addition
and
47 deletion
+964
-47
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
...e_js_standard/imageExif/src/main/js/test/addImage.test.js
+9
-9
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
...imagePixelMapFramework/src/main/js/test/framework.test.js
+955
-38
未找到文件。
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
100644 → 100755
浏览文件 @
bdb0cf87
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -93,7 +93,7 @@ describe('AddImage', function () {
/**
* @tc.number : add_01_003
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
2
, alphaType: 2)
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
0
, alphaType: 2)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
...
...
@@ -103,13 +103,13 @@ describe('AddImage', function () {
* @tc.level : Level 0
*/
it
(
'
add_01_003
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
2
,
alphaType
:
2
}
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
2
}
createPixMapPromise
(
done
,
'
add_01_003
'
,
opts
);
})
/**
* @tc.number : add_01_004
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
2
, alphaType: 3)
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
0
, alphaType: 3)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
...
...
@@ -119,13 +119,13 @@ describe('AddImage', function () {
* @tc.level : Level 0
*/
it
(
'
add_01_004
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
2
,
alphaType
:
3
}
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
3
}
createPixMapPromise
(
done
,
'
add_01_004
'
,
opts
);
})
/**
* @tc.number : add_02_001
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
2
, alphaType: 0)
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
0
, alphaType: 0)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
...
...
@@ -135,13 +135,13 @@ describe('AddImage', function () {
* @tc.level : Level 0
*/
it
(
'
add_02_001
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
2
,
alphaType
:
0
}
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
0
}
createPixMapCb
(
done
,
'
add_02_001
'
,
opts
);
})
/**
* @tc.number : add_02_002
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
2
, alphaType: 1)
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode:
0
, alphaType: 1)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
...
...
@@ -151,7 +151,7 @@ describe('AddImage', function () {
* @tc.level : Level 0
*/
it
(
'
add_02_002
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
2
,
alphaType
:
1
}
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
1
}
createPixMapCb
(
done
,
'
add_02_002
'
,
opts
);
})
...
...
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
100644 → 100755
浏览文件 @
bdb0cf87
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录