Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More tests

  • Loading branch information...
commit 0ce4a8fb03ae62f7df86cf4ecc604451787684f7 1 parent 1c66807
@tj tj authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/public/tests.js
View
14 test/public/tests.js
@@ -1477,6 +1477,20 @@ tests['drawImage(img,0,0) globalAlpha'] = function(ctx, done){
img.src = 'state.png';
};
+tests['drawImage(img,0,0) clip'] = function(ctx){
+ ctx.arc(50,50,50,0,Math.PI * 2,false);
+ ctx.stroke();
+ ctx.clip();
+ var img = new Image;
+ ctx.fillRect(50,50,30,30);
+ ctx.globalAlpha = .5;
+ img.onload = function(){
+ ctx.drawImage(img, 0, 0);
+ done();
+ };
+ img.src = 'state.png';
+};
+
tests['putImageData()'] = function(ctx){
for (i=0;i<6;i++){
for (j=0;j<6;j++){
Please sign in to comment.
Something went wrong with that request. Please try again.