提交 8b70e003 编写于 作者: F fengzewu

fix testcase

Signed-off-by: Nfengzewu <fengzewu@huawei.com>
上级 4fc13978
......@@ -332,15 +332,15 @@ describe('Image', function () {
const Color = new ArrayBuffer(96);
let opts = { editable: true, pixelFormat: 0, size: { height: -1, width: 8 } }
image.createPixelMap(Color, opts, (err, pixelmap) => {
if (err != undefined) {
if (err) {
console.info('RGBA_011 err: ' + err);
expect(false).assertTrue();
done();
return;
}
expect(pixelmap == undefined).assertTrue();
console.info('RGBA_011 pass');
done();
} else {
expect(true).assertTrue();
done();
}
})
})
......@@ -359,15 +359,15 @@ describe('Image', function () {
const Color = new ArrayBuffer(96);
let opts = { editable: true, pixelFormat: 1, size: { height: 6, width: -1 } }
image.createPixelMap(Color, opts, (err, pixelmap) => {
if (err != undefined) {
if (err) {
console.info('RGBA_012 err: ' + err);
expect(false).assertTrue();
done();
return;
}
expect(pixelmap == undefined).assertTrue();
console.info('RGBA_012 pass');
done();
} else {
expect(true).assertTrue();
done();
}
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册