Browse Source

more tests

v1.x
Tj Holowaychuk 14 years ago
parent
commit
b6dd90fddb
  1. 12
      test/public/tests.js

12
test/public/tests.js

@ -1625,6 +1625,18 @@ tests['putImageData() 9'] = function(ctx){
ctx.putImageData(data,-10,-10,0,20,500,500);
};
tests['putImageData() 10'] = function(ctx){
ctx.fillStyle = 'rgba(255,0,0,1)'
ctx.fillRect(0,0,50,100);
ctx.fillStyle = 'rgba(0,255,0,1)'
ctx.fillRect(50,0,50,100);
ctx.fillStyle = 'rgba(0,0,255,1)'
ctx.fillRect(100,0,50,100);
var data = ctx.getImageData(0,0,120,20);
ctx.putImageData(data,20,120);
};
tests['putImageData() alpha'] = function(ctx){
ctx.fillStyle = 'rgba(255,0,0,0.5)'
ctx.fillRect(0,0,50,100);

Loading…
Cancel
Save