未验证 提交 271ff71a 编写于 作者: O openharmony_ci 提交者: Gitee

!7199 modify image test pixelFormat to monthly

Merge pull request !7199 from renhw/monthly_20221018
......@@ -363,7 +363,7 @@ export default function imageJsTest() {
bufferArr[i] = i + 1;
}
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
let opts = { editable: true, pixelFormat: 4, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts)
.then(pixelmap => {
globalpixelmap = pixelmap;
......@@ -422,7 +422,7 @@ export default function imageJsTest() {
bufferArr[i] = i + 1;
}
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
let opts = { editable: true, pixelFormat: 4, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts, (err, pixelmap) => {
globalpixelmap = pixelmap;
if (pixelmap == undefined) {
......
......@@ -607,10 +607,10 @@ let testJpg = new Uint8Array([255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1
2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160,
2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 15, 255, 217])
let tcBuf020 = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96])
let tcBuf020_1 = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96])
let tcBuf020 = new Uint8Array([0,0,0,4,0,0,0,8,0,0,1,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,8,9,9,48,10,10,10,52,12,12,12,56,13,14,14,60,15,16,16,64,17,18,18,68,19,20,20,72,22,22,22,76,24,24,25,80,27,27,27,84,29,30,30,88,32,32,33,92,35,35,36,96])
let tcBuf020_1 = new Uint8Array([0,0,0,4,0,0,0,8,0,0,1,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,8,9,9,48,10,10,10,52,12,12,12,56,13,14,14,60,15,16,16,64,17,18,18,68,19,20,20,72,22,22,22,76,24,24,25,80,27,27,27,84,29,30,30,88,32,32,33,92,35,35,36,96])
let tcBuf021 = new Uint8Array([0,0,0,4,0,0,0,8])
let tcBuf021_1 = new Uint8Array([0,0,0,4,0,0,0,8])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册