|
|
@ -76,10 +76,6 @@ module.exports = { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
'test .PixelArray': function(){ |
|
|
|
assert.equal(typeof Canvas.PixelArray, 'function'); |
|
|
|
}, |
|
|
|
|
|
|
|
'test color serialization': function(){ |
|
|
|
var canvas = new Canvas(200, 200) |
|
|
|
, ctx = canvas.getContext('2d'); |
|
|
@ -169,7 +165,7 @@ module.exports = { |
|
|
|
|
|
|
|
ctx.fillStyle = 'hsl(10, 100%, 42%)'; |
|
|
|
assert.equal('#d62400', ctx.fillStyle); |
|
|
|
|
|
|
|
|
|
|
|
ctx.fillStyle = 'hsl(370, 120%, 42%)'; |
|
|
|
assert.equal('#d62400', ctx.fillStyle); |
|
|
|
|
|
|
|