From 7e17bfb8c162e1a4c9a9881bf12be2f8d175c2af Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 15 Nov 2010 20:44:56 -0800 Subject: [PATCH] More tests --- test/canvas.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/canvas.test.js b/test/canvas.test.js index dd80d26..20ad6cd 100644 --- a/test/canvas.test.js +++ b/test/canvas.test.js @@ -313,6 +313,11 @@ module.exports = { assert.equal(2, imageData.width); assert.equal(6, imageData.height); assert.equal(2 * 6 * 4, imageData.data.length); + + assert.equal(0, imageData.data[0]); + assert.equal(0, imageData.data[1]); + assert.equal(0, imageData.data[2]); + assert.equal(0, imageData.data[3]); }, 'test Context2d#createImageData(ImageData)': function(assert){