Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3b9441bb
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看板
未验证
提交
3b9441bb
编写于
9月 02, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 02, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5345 Modify XTS case name
Merge pull request !5345 from renhw/master
上级
b086ff93
105efcdf
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
2103 addition
and
2103 deletion
+2103
-2103
multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js
...image_js_standard/image/src/main/js/test/addImage.test.js
+43
-43
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
...ge/image_js_standard/image/src/main/js/test/image.test.js
+418
-418
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
...ndard/imageColorspace/src/main/js/test/colorspace.test.js
+39
-39
multimedia/image/image_js_standard/imageCreator/src/main/js/test/creator.test.js
...js_standard/imageCreator/src/main/js/test/creator.test.js
+105
-105
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
...tandard/imageDecodeOptions/src/main/js/test/image.test.js
+363
-363
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+135
-135
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+206
-206
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
...js_standard/imagePacking/src/main/js/test/packing.test.js
+136
-136
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
...imagePixelMapFramework/src/main/js/test/framework.test.js
+269
-269
multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js
...image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js
+54
-54
multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js
..._standard/imageReceiver/src/main/js/test/receiver.test.js
+140
-140
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
...image_js_standard/imageWebp/src/main/js/test/webp.test.js
+99
-99
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
...e/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
+96
-96
未找到文件。
multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js
浏览文件 @
3b9441bb
...
...
@@ -61,7 +61,7 @@ export default function addImage() {
}
/**
* @tc.number :
addImage_001
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0100
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 0)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
...
...
@@ -71,13 +71,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_001
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
0
}
createPixMapPromise
(
done
,
'
add_01_001
'
,
opts
);
createPixMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0100
'
,
opts
);
})
/**
* @tc.number :
add_01_002
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0200
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 1)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
...
...
@@ -87,13 +87,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_002
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
1
}
createPixMapPromise
(
done
,
'
add_01_002
'
,
opts
);
createPixMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0200
'
,
opts
);
})
/**
* @tc.number :
add_01_003
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0300
* @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
...
...
@@ -103,13 +103,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_003
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
2
}
createPixMapPromise
(
done
,
'
add_01_003
'
,
opts
);
createPixMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0300
'
,
opts
);
})
/**
* @tc.number :
add_01_004
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0400
* @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
...
...
@@ -119,13 +119,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_004
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
3
}
createPixMapPromise
(
done
,
'
add_01_004
'
,
opts
);
createPixMapPromise
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_PROMISE_0400
'
,
opts
);
})
/**
* @tc.number :
add_02_001
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0100
* @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
...
...
@@ -135,13 +135,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_001
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
0
}
createPixMapCb
(
done
,
'
add_02_001
'
,
opts
);
createPixMapCb
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0100
'
,
opts
);
})
/**
* @tc.number :
add_02_002
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0200
* @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
...
...
@@ -151,13 +151,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_002
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
1
}
createPixMapCb
(
done
,
'
add_02_002
'
,
opts
);
createPixMapCb
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0200
'
,
opts
);
})
/**
* @tc.number :
add_02_003
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0300
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 2)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
...
...
@@ -167,13 +167,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_003
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
2
}
createPixMapCb
(
done
,
'
add_02_003
'
,
opts
);
createPixMapCb
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0300
'
,
opts
);
})
/**
* @tc.number :
add_02_004
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0400
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 3)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
...
...
@@ -183,13 +183,13 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_004
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
3
}
createPixMapCb
(
done
,
'
add_02_004
'
,
opts
);
createPixMapCb
(
done
,
'
SUB_GRAPHIC_IMAGE_CREATEPIXELMAP_CALLBACK_0400
'
,
opts
);
})
/**
* @tc.number :
add_053
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
* @tc.name : createIncrementalSource-updateData-png-promise
* @tc.desc : 1.create imagesource
* 2.update data
...
...
@@ -198,38 +198,38 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
add_053
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
try
{
let
testimagebuffer
=
testPng
;
console
.
info
(
'
add_053
0003
'
+
testimagebuffer
.
length
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
0003
'
+
testimagebuffer
.
length
);
let
bufferSize
=
5000
;
let
offset
=
0
;
const
incSouce
=
image
.
createIncrementalSource
(
new
ArrayBuffer
(
1
));
let
ret
;
let
isFinished
=
false
;
while
(
offset
<
testimagebuffer
.
length
)
{
console
.
info
(
'
add_053
0006
'
+
testimagebuffer
.
length
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
0006
'
+
testimagebuffer
.
length
);
var
oneStep
=
testimagebuffer
.
slice
(
offset
,
offset
+
bufferSize
);
console
.
info
(
'
add_053
0007
'
+
oneStep
.
length
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
0007
'
+
oneStep
.
length
);
if
(
oneStep
.
length
<
bufferSize
)
{
isFinished
=
true
;
}
ret
=
await
incSouce
.
updateData
(
oneStep
,
isFinished
,
0
,
oneStep
.
length
);
if
(
!
ret
)
{
console
.
info
(
'
add_053
updateData failed
'
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
updateData failed
'
);
expect
(
ret
).
assertTrue
();
break
;
}
offset
=
offset
+
oneStep
.
length
;
console
.
info
(
'
add_053
0011
'
+
offset
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
0011
'
+
offset
);
}
if
(
ret
)
{
console
.
info
(
'
add_053
updateData success
'
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
updateData success
'
);
let
decodingOptions
=
{
sampleSize
:
1
};
incSouce
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
console
.
info
(
'
add_053
0014
'
+
pixelmap
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
0014
'
+
pixelmap
);
expect
(
pixelmap
!=
undefined
).
assertTrue
();
done
();
})
...
...
@@ -239,12 +239,12 @@ export default function addImage() {
}
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
console
.
info
(
'
add_053
updateData failed
'
+
error
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0100
updateData failed
'
+
error
);
}
})
/**
* @tc.number :
add_053-1
* @tc.number :
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
* @tc.name : createIncrementalSource-updateData-png-promise
* @tc.desc : 1.create imagesource
* 2.update data
...
...
@@ -253,10 +253,10 @@ export default function addImage() {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
add_053-1
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
try
{
let
testimagebuffer
=
testPng
;
console
.
info
(
'
add_053-1
0001
'
+
testimagebuffer
.
length
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
0001
'
+
testimagebuffer
.
length
);
let
bufferSize
=
5000
;
let
offset
=
0
;
const
incSouce
=
image
.
createIncrementalSource
(
new
ArrayBuffer
(
1
));
...
...
@@ -264,7 +264,7 @@ export default function addImage() {
let
isFinished
=
false
;
while
(
offset
<
testimagebuffer
.
length
)
{
var
oneStep
=
testimagebuffer
.
slice
(
offset
,
offset
+
bufferSize
);
console
.
info
(
'
add_053-1
0002
'
+
oneStep
.
length
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
0002
'
+
oneStep
.
length
);
if
(
oneStep
.
length
<
bufferSize
)
{
isFinished
=
true
;
}
...
...
@@ -274,20 +274,20 @@ export default function addImage() {
})
})
if
(
!
ret
)
{
console
.
info
(
'
add_053-1
updateData failed
'
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
updateData failed
'
);
expect
(
ret
).
assertTrue
();
break
;
}
offset
=
offset
+
oneStep
.
length
;
console
.
info
(
'
add_053-1
0003
'
+
offset
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
0003
'
+
offset
);
}
if
(
ret
)
{
console
.
info
(
'
add_053-1
updateData success
'
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
updateData success
'
);
let
decodingOptions
=
{
sampleSize
:
1
};
incSouce
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
console
.
info
(
'
add_053-1
0004
'
+
pixelmap
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
0004
'
+
pixelmap
);
expect
(
pixelmap
!=
undefined
).
assertTrue
();
done
();
})
...
...
@@ -297,7 +297,7 @@ export default function addImage() {
}
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
console
.
info
(
'
add_053-1
updateData failed
'
+
error
);
console
.
info
(
'
SUB_GRAPHIC_IMAGE_CREATEINCREMENTALSOURCE_UPDATEDATA_PNG_PROMISE_0200
updateData failed
'
+
error
);
}
})
})
...
...
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
浏览文件 @
3b9441bb
...
...
@@ -112,7 +112,7 @@ describe('imageColorSpace', function () {
}
/**
* @tc.number :
decodeP3_001
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_0100
* @tc.name : Decode
* @tc.desc : 1.create imagesource
* 2.create pixelmap
...
...
@@ -120,8 +120,8 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
decodeP3_001
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
decodeP3_001
'
)
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_0100
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_0100
'
)
try
{
let
imageSource
=
genPicSource
();
logger
.
log
(
"
ImageSource
"
+
(
imageSource
!=
undefined
));
...
...
@@ -141,7 +141,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number :
decodeP3_002
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_CALLBACK_0100
* @tc.name : Decode -callback
* @tc.desc : 1.create imagesource
* 2.create pixelmap
...
...
@@ -149,8 +149,8 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
decodeP3_002
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
decodeP3_002
'
)
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_DECODE_CALLBACK_0100
'
)
try
{
let
imageSource
=
genPicSource
();
logger
.
log
(
"
ImageSource
"
+
(
imageSource
!=
undefined
));
...
...
@@ -170,7 +170,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number :
encodeP3_001
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0100
* @tc.name : Encode -callback
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -179,9 +179,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_001
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
encodeP3_001
'
)
let
testNum
=
'
encodeP3_001
'
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0100
'
)
let
testNum
=
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0100
'
try
{
let
imageSource
=
genPicSource
();
logger
.
log
(
"
ImageSource
"
+
(
imageSource
!=
undefined
));
...
...
@@ -217,7 +217,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number :
encodeP3_002
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0100
* @tc.name : Encode -promise
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -226,9 +226,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_002
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
encodeP3_002
'
)
let
testNum
=
'
encodeP3_002
'
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
logger
=
loger
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0100
'
)
let
testNum
=
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0100
'
try
{
let
imageSource
=
genPicSource
();
logger
.
log
(
"
ImageSource
"
+
(
imageSource
!=
undefined
));
...
...
@@ -254,7 +254,7 @@ describe('imageColorSpace', function () {
done
();
}).
catch
(
error
=>
{
console
.
log
(
'
encodeP3_002
error:
'
+
error
);
console
.
log
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0100
error:
'
+
error
);
expect
(
false
).
assertTrue
();
done
();
})
...
...
@@ -268,7 +268,7 @@ describe('imageColorSpace', function () {
})
/**
* @tc.number :
encodeP3_003
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0200
* @tc.name : Encode -callback-
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -277,13 +277,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_003
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/gif
"
],
quality
:
90
}
packingCbFail
(
done
,
'
encodeP3_003
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_0200
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_004
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_ERROR_FORMAT_0100
* @tc.name : Encode -callback-wrong format
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -292,13 +292,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_004
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_ERROR_FORMAT_0100
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
],
quality
:
200
}
packingCbFail
(
done
,
'
encodeP3_004
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_ERROR_FORMAT_0100
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_005
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
* @tc.name : Encode -callback-no quality
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -307,13 +307,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_005
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
packingCbFail
(
done
,
'
encodeP3_005
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0100
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_006
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200
* @tc.name : Encode -callback-no format
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -322,13 +322,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_006
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
50
}
packingCbFail
(
done
,
'
encodeP3_006
'
,
packOpts
)
packingCbFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_CALLBACK_NO_0200
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_007
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0200
* @tc.name : Encode -promise
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -337,13 +337,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_007
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/gif
"
],
quality
:
90
}
packingPromiseFail
(
done
,
'
encodeP3_007
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0200
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_008
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0300
* @tc.name : Encode -promise
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -352,13 +352,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_008
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
],
quality
:
101
}
packingPromiseFail
(
done
,
'
encodeP3_008
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_0300
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_009
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
* @tc.name : Encode -promise -no quality
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -367,13 +367,13 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_009
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:[
"
image/jpeg
"
]
}
packingPromiseFail
(
done
,
'
encodeP3_009
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_0100
'
,
packOpts
)
})
/**
* @tc.number :
encodeP3_01
0
* @tc.number :
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_020
0
* @tc.name : Encode -promise -no format
* @tc.desc : 1.create imagesource
* 2.createImagePacker
...
...
@@ -382,9 +382,9 @@ describe('imageColorSpace', function () {
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
encodeP3_01
0
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_020
0
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
100
}
packingPromiseFail
(
done
,
'
encodeP3_01
0
'
,
packOpts
)
packingPromiseFail
(
done
,
'
SUB_GRAPHIC_IMAGE_COLORSPACE_ENCODE_PROMISE_NO_020
0
'
,
packOpts
)
})
})
...
...
multimedia/image/image_js_standard/imageCreator/src/main/js/test/creator.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageRGBA/src/main/js/test/RGBA.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageReceiver/src/main/js/test/receiver.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
浏览文件 @
3b9441bb
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录