未验证 提交 fe671774 编写于 作者: 冯泽悟 提交者: Gitee

自动化测试修复

Signed-off-by: N冯泽悟 <fengzewu@huawei.com>
上级 ff935760
...@@ -1667,7 +1667,7 @@ let bufferArr = new Uint8Array(color); ...@@ -1667,7 +1667,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => { image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 } let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts, data => { imagePackerApi.packing(pixelmap, packOpts, data => {
console.log('Succeeded in packing the image.'); console.log('Succeeded in packing the image.');
}) })
}) })
...@@ -1702,7 +1702,7 @@ let bufferArr = new Uint8Array(color); ...@@ -1702,7 +1702,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => { image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 } let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts) imagePackerApi.packing(pixelmap, packOpts)
.then( data => { .then( data => {
console.log('Succeeded in packing the image.'); console.log('Succeeded in packing the image.');
}).catch(error => { }).catch(error => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册