Browse Source

some clamping tests

Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
v1.x
atomizer 14 years ago
committed by Tj Holowaychuk
parent
commit
a9c6d318fd
  1. 6
      test/canvas.test.js

6
test/canvas.test.js

@ -153,6 +153,12 @@ module.exports = {
ctx.fillStyle = 'rgba( 255, 200, 90, .7555)';
assert.equal('rgba(255, 200, 90, 0.75)', ctx.fillStyle);
ctx.fillStyle = 'rgb(0, 0, 9000)';
assert.equal('#0000ff', ctx.fillStyle);
ctx.fillStyle = 'rgba(0, 0, 0, 13.42)';
assert.equal('#000000', ctx.fillStyle);
},
'test Canvas#getContext("2d")': function(assert){

Loading…
Cancel
Save