未验证 提交 5c63861e 编写于 作者: O openharmony_ci 提交者: Gitee

!7159 modify image test pixelFormat

Merge pull request !7159 from renhw/OpenHarmony-3.1-Release
......@@ -303,7 +303,7 @@ describe('Image', function () {
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 => {
if (pixelmap == undefined) {
......@@ -361,7 +361,7 @@ describe('Image', function () {
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) => {
if (pixelmap == undefined) {
console.info('TC_020-1 createPixelMap failed');
......
......@@ -13,8 +13,9 @@
* limitations under the License.
*/
let tc_020buf = 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 tc_020_1buf = 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 tc_020buf = 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 tc_020_1buf = 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 tc_021buf = new Uint8Array([0,0,0,4,0,0,0,8])
let tc_021_1buf = new Uint8Array([0,0,0,4,0,0,0,8])
let tc_022buf = 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.
先完成此消息的编辑!
想要评论请 注册