|
|
@ -752,8 +752,9 @@ module.exports = { |
|
|
|
, ctx = canvas.getContext('2d'); |
|
|
|
|
|
|
|
ctx.font = 'normal 40px Impact'; |
|
|
|
var te = ctx.measureText('Wahoo'); |
|
|
|
assert.eql({ width: 111, height: 32 }, te); |
|
|
|
assert.eql({ width: 111, height: 32 }, ctx.measureText('Wahoo')); |
|
|
|
assert.eql(ctx.measureText(123), ctx.measureText('123')); |
|
|
|
assert.eql(ctx.measureText(), ctx.measureText('undefined')); |
|
|
|
}, |
|
|
|
|
|
|
|
'test Canvas#toBuffer()': function(assert){ |
|
|
|