Browse Source

Added more measureText() tests

v1.x
Tj Holowaychuk 14 years ago
parent
commit
16b88709e3
  1. 5
      test/canvas.test.js

5
test/canvas.test.js

@ -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){

Loading…
Cancel
Save