Navigation Menu

Skip to content

Commit

Permalink
Added failing text shadow test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 8, 2010
1 parent 4d349ac commit 902d25b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions test/public/tests.js
Expand Up @@ -1083,7 +1083,7 @@ tests['shadowBlur values'] = function(ctx){
ctx.fillRect(150,150,20,20);
};

tests['shadowBlur strokeRect()'] = function(ctx){
tests['shadow strokeRect()'] = function(ctx){
ctx.strokeRect(150,10,20,20);

ctx.lineTo(20,5);
Expand Down Expand Up @@ -1111,7 +1111,7 @@ tests['shadowBlur strokeRect()'] = function(ctx){
ctx.strokeRect(150,150,20,20);
};

tests['shadowBlur fill()'] = function(ctx){
tests['shadow fill()'] = function(ctx){
ctx.strokeRect(150,10,20,20);

ctx.lineTo(20,5);
Expand Down Expand Up @@ -1140,7 +1140,7 @@ tests['shadowBlur fill()'] = function(ctx){
ctx.strokeRect(150,150,20,20);
};

tests['shadowBlur stroke()'] = function(ctx){
tests['shadow stroke()'] = function(ctx){
ctx.strokeRect(150,10,20,20);

ctx.lineTo(20,5);
Expand Down Expand Up @@ -1169,7 +1169,7 @@ tests['shadowBlur stroke()'] = function(ctx){
ctx.strokeRect(150,150,20,20);
};

tests['shadowBlur globalAlpha'] = function(ctx){
tests['shadow globalAlpha'] = function(ctx){
ctx.lineTo(0,0);
ctx.lineTo(50,0);
ctx.lineTo(50,150);
Expand All @@ -1185,3 +1185,13 @@ tests['shadowBlur globalAlpha'] = function(ctx){
ctx.lineTo(0,150);
ctx.stroke();
};

tests['shadow text'] = function(ctx){
ctx.shadowColor = '#00c';
ctx.shadowBlur = 2;
ctx.shadowOffsetX = 8;
ctx.shadowOffsetY = 8;
ctx.textAlign = 'center';
ctx.font = '20px Arial';
ctx.fillText("Shadow", 100, 100);
};

0 comments on commit 902d25b

Please sign in to comment.